X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/77bbf3027c4240a2e833209a3a3f186589da8577..e3fd04d9bd31fdb473e914c7084f3866fcf314b0:/teshsuite/s4u/storage_client_server/storage_client_server.cpp diff --git a/teshsuite/s4u/storage_client_server/storage_client_server.cpp b/teshsuite/s4u/storage_client_server/storage_client_server.cpp index 9ef8840fa8..3e0169b071 100644 --- a/teshsuite/s4u/storage_client_server/storage_client_server.cpp +++ b/teshsuite/s4u/storage_client_server/storage_client_server.cpp @@ -107,11 +107,8 @@ static void storage_info(simgrid::s4u::Host* host) simgrid::s4u::Storage* storage = elm.second; XBT_INFO("\tStorage name: %s, mount name: %s", storage->getCname(), mount_name.c_str()); - sg_size_t free_size = storage->getSizeFree(); - sg_size_t used_size = storage->getSizeUsed(); - - XBT_INFO("\t\tFree size: %llu bytes", free_size); - XBT_INFO("\t\tUsed size: %llu bytes", used_size); + XBT_INFO("\t\tFree size: %llu bytes", sg_storage_get_size_free(storage)); + XBT_INFO("\t\tUsed size: %llu bytes", sg_storage_get_size_used(storage)); display_storage_properties(storage); dump_storage_by_name(storage->getCname()); @@ -157,6 +154,7 @@ static void server() int main(int argc, char* argv[]) { simgrid::s4u::Engine e(&argc, argv); + sg_storage_file_system_init(); xbt_assert(argc == 2, "Usage: %s platform_file\n", argv[0]); e.loadPlatform(argv[1]);