From 877c38ede51d3ee50e5cfc525f6467f1e09c2031 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Wed, 16 Mar 2022 23:04:43 +0100 Subject: [PATCH] Provide File::open with 3 arguments. --- include/simgrid/plugins/file_system.h | 1 + src/plugins/file_system/s4u_FileSystem.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/include/simgrid/plugins/file_system.h b/include/simgrid/plugins/file_system.h index 78a09240fe..5ecde650d0 100644 --- a/include/simgrid/plugins/file_system.h +++ b/include/simgrid/plugins/file_system.h @@ -109,6 +109,7 @@ public: ~File(); static File* open(const std::string& fullpath, void* userdata); + static File* open(const std::string& fullpath, const_sg_host_t host, void* userdata); void close() { delete this; }; /** Retrieves the path to the file */ diff --git a/src/plugins/file_system/s4u_FileSystem.cpp b/src/plugins/file_system/s4u_FileSystem.cpp index 75686e578f..20714da473 100644 --- a/src/plugins/file_system/s4u_FileSystem.cpp +++ b/src/plugins/file_system/s4u_FileSystem.cpp @@ -116,6 +116,11 @@ File* File::open(const std::string& fullpath, void* userdata) return new File(fullpath, userdata); } +File* File::open(const std::string& fullpath, const_sg_host_t host, void* userdata) +{ + return new File(fullpath, host, userdata); +} + void File::dump() const { XBT_INFO("File Descriptor information:\n" -- 2.20.1