Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Comment out a buggy line... Can't put a finger on what goes wrong here, but values...
authorAugustin Degomme <adegomme@users.noreply.github.com>
Thu, 18 Apr 2019 11:40:22 +0000 (13:40 +0200)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Thu, 18 Apr 2019 11:40:22 +0000 (13:40 +0200)
TODO : investigate

src/plugins/file_system/s4u_FileSystem.cpp

index b28d3d8..6eb42ee 100644 (file)
@@ -138,10 +138,10 @@ sg_size_t File::write(sg_size_t size)
     this_actor::parallel_execute(m_host_list, flops_amount, bytes_amount);
   }
 
-  XBT_DEBUG("WRITE %s on disk '%s'. size '%llu/%llu'", get_path(), local_storage_->get_cname(), size, size_);
+  XBT_DEBUG("WRITE %s on disk '%s'. size '%llu/%llu' '%llu:%llu'", get_path(), local_storage_->get_cname(), size, size_, sg_storage_get_size_used(local_storage_), sg_storage_get_size(local_storage_));
   // If the storage is full before even starting to write
-  if (sg_storage_get_size_used(local_storage_) >= sg_storage_get_size(local_storage_))
-    return 0;
+  // if (sg_storage_get_size_used(local_storage_) >= sg_storage_get_size(local_storage_))
+    // return 0;
   /* Substract the part of the file that might disappear from the used sized on the storage element */
   local_storage_->extension<FileSystemStorageExt>()->decr_used_size(size_ - current_position_);