X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/19e4a01d6e38e856dafa1a08942143a8ec7f5e34..14ad54e6f735bfec4e8feb60a6089ef866fd2554:/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 78598bcd5f..1f14a3e873 100644 --- a/teshsuite/s4u/storage_client_server/storage_client_server.cpp +++ b/teshsuite/s4u/storage_client_server/storage_client_server.cpp @@ -4,6 +4,7 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "simgrid/s4u.hpp" +#include "src/plugins/file_system/FileSystem.hpp" #include #include @@ -58,7 +59,7 @@ static void hsm_put(const std::string& remote_host, const std::string& src, cons static void display_storage_content(simgrid::s4u::Storage* storage) { XBT_INFO("Print the content of the storage element: %s", storage->getCname()); - std::map* content = storage->getContent(); + std::map* content = storage->extension()->getContent(); if (not content->empty()) { for (auto const& entry : *content) XBT_INFO("\t%s size: %llu bytes", entry.first.c_str(), entry.second); @@ -89,7 +90,8 @@ static void get_set_storage_data(const std::string& storage_name) static void dump_platform_storages() { - std::map* storages = simgrid::s4u::allStorages(); + std::map* storages = new std::map; + simgrid::s4u::getStorageList(storages); for (auto const& storage : *storages) { XBT_INFO("Storage %s is attached to %s", storage.first.c_str(), storage.second->getHost()->getCname()); @@ -107,11 +109,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());