Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Provide File::open with 3 arguments.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 16 Mar 2022 22:04:43 +0000 (23:04 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 16 Mar 2022 22:09:22 +0000 (23:09 +0100)
include/simgrid/plugins/file_system.h
src/plugins/file_system/s4u_FileSystem.cpp

index 78a0924..5ecde65 100644 (file)
@@ -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 */
index 75686e5..20714da 100644 (file)
@@ -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"