/** Rename a file. WARNING: It is forbidden to move the file to another mount point */
void move(std::string fullpath);
+ int remoteCopy(sg_host_t host, const char* fullpath);
+ int remoteMove(sg_host_t host, const char* fullpath);
int unlink(); /** Remove a file from the contents of a disk */
void dump();
void* userdata_ = nullptr;
};
-class FileSystemStorageExt {
+XBT_PUBLIC_CLASS FileSystemStorageExt {
public:
static simgrid::xbt::Extension<Storage, FileSystemStorageExt> EXTENSION_ID;
explicit FileSystemStorageExt(Storage* ptr);
sg_size_t size_ = 0;
};
-class FileDescriptorHostExt {
+XBT_PUBLIC_CLASS FileDescriptorHostExt
+{
public:
static simgrid::xbt::Extension<Host, FileDescriptorHostExt> EXTENSION_ID;
FileDescriptorHostExt() = default;