- xbt_dict_remove(findStorageOnMountList(fd->mount)->p_content, fd->name);
-
- char *path = (char *) xbt_malloc ((strlen(fullpath)-strlen(fd->mount)+1));;
- strncpy(path, fullpath+strlen(fd->mount), strlen(fullpath)-strlen(fd->mount)+1);
- xbt_dict_set(findStorageOnMountList(fd->mount)->p_content, path, new_psize,NULL);
- XBT_DEBUG("Move file from %s to %s, size '%llu'",fd->name, fullpath, *psize);
- free(path);
- return MSG_OK;
- }
- else
- XBT_WARN("File %s doesn't exist", fd->name);
- return MSG_TASK_CANCELED;
+ xbt_dict_remove(findStorageOnMountList(fd->mount)->p_content, fd->name);
+ char *path = (char *) xbt_malloc ((strlen(fullpath)-strlen(fd->mount)+1));;
+ strncpy(path, fullpath+strlen(fd->mount),
+ strlen(fullpath)-strlen(fd->mount)+1);
+ xbt_dict_set(findStorageOnMountList(fd->mount)->p_content, path,
+ new_psize,NULL);
+ XBT_DEBUG("Move file from %s to %s, size '%llu'",fd->name, fullpath, *psize);
+ free(path);
+ return 0;
+ } else {
+ XBT_WARN("File %s doesn't exist", fd->name);
+ return -1;