A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update MSG_storage_file_rename
[simgrid.git]
/
src
/
simix
/
smx_io.c
diff --git
a/src/simix/smx_io.c
b/src/simix/smx_io.c
index
aa0d016
..
6755bba
100644
(file)
--- a/
src/simix/smx_io.c
+++ b/
src/simix/smx_io.c
@@
-300,19
+300,16
@@
xbt_dynar_t SIMIX_file_get_info(smx_process_t process, smx_file_t fd)
fd->surf_file);
}
fd->surf_file);
}
-void SIMIX_pre_
file_rename(smx_simcall_t simcall, smx_file_t fd, const char* new_name
)
+void SIMIX_pre_
storage_file_rename(smx_simcall_t simcall, smx_storage_t storage, const char* src, const char* dest
)
{
{
- return SIMIX_
file_rename(simcall->issuer, fd, new_name
);
+ return SIMIX_
storage_file_rename(simcall->issuer, storage, src, dest
);
}
}
-void SIMIX_
file_rename(smx_process_t process, smx_file_t fd, const char* new_name
)
+void SIMIX_
storage_file_rename(smx_process_t process, smx_storage_t storage, const char* src, const char* dest
)
{
{
- smx_host_t host = process->smx_host;
- return surf_workstation_model->extension.workstation.rename(host,
- fd->surf_file, new_name);
+ return surf_workstation_model->extension.storage.rename(storage, src, dest);
}
}
-
sg_storage_size_t SIMIX_pre_storage_get_free_size(smx_simcall_t simcall, const char* name)
{
return SIMIX_storage_get_free_size(simcall->issuer, name);
sg_storage_size_t SIMIX_pre_storage_get_free_size(smx_simcall_t simcall, const char* name)
{
return SIMIX_storage_get_free_size(simcall->issuer, name);