X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/77bbf3027c4240a2e833209a3a3f186589da8577..4c7ee8190b86e9eb2adb13479325f586ead44ed0:/examples/s4u/io/s4u-io.cpp diff --git a/examples/s4u/io/s4u-io.cpp b/examples/s4u/io/s4u-io.cpp index 46a50133c6..dc3e5e3cad 100644 --- a/examples/s4u/io/s4u-io.cpp +++ b/examples/s4u/io/s4u-io.cpp @@ -7,6 +7,7 @@ #include #include "simgrid/s4u.hpp" +#include "src/plugins/file_system/FileSystem.hpp" XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_test, "a sample log category"); @@ -21,12 +22,8 @@ public: simgrid::s4u::Storage* storage = kv.second; // Retrieve disk's information - sg_size_t free_size = storage->getSizeFree(); - sg_size_t used_size = storage->getSizeUsed(); - sg_size_t size = storage->getSize(); - - XBT_INFO(" %s (%s) Used: %llu; Free: %llu; Total: %llu.", storage->getCname(), mountpoint.c_str(), used_size, - free_size, size); + XBT_INFO(" %s (%s) Used: %llu; Free: %llu; Total: %llu.", storage->getCname(), mountpoint.c_str(), + sg_storage_get_size_used(storage), sg_storage_get_size_free(storage), sg_storage_get_size(storage)); } } @@ -86,6 +83,7 @@ public: int main(int argc, char **argv) { simgrid::s4u::Engine e(&argc, argv); + sg_storage_file_system_init(); e.loadPlatform("../../platforms/storage/storage.xml"); simgrid::s4u::Actor::createActor("host", simgrid::s4u::Host::by_name("denise"), MyHost()); e.run();