/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
for (const auto&kv : mounts) {
const char* mountpoint = kv.first.c_str();
simgrid::s4u::Storage* storage = kv.second;
// Retrieve disk's information
for (const auto&kv : mounts) {
const char* mountpoint = kv.first.c_str();
simgrid::s4u::Storage* storage = kv.second;
// Retrieve disk's information
- sg_size_t free_size = storage->sizeFree();
- sg_size_t used_size = storage->sizeUsed();
- sg_size_t size = storage->size();
+ 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->name(), mountpoint, used_size, free_size,
+ XBT_INFO(" %s (%s) Used: %llu; Free: %llu; Total: %llu.", storage->getName(), mountpoint, used_size, free_size,
// Now rename file from ./tmp/data.txt to ./tmp/simgrid.readme
const char *newpath = "/home/tmp/simgrid.readme";
// Now rename file from ./tmp/data.txt to ./tmp/simgrid.readme
const char *newpath = "/home/tmp/simgrid.readme";
- XBT_INFO("User data attached to the file: %s", (char*)file->userdata());
- xbt_free(file->userdata());
+ XBT_INFO("User data attached to the file: %s", (char*)file->getUserdata());
+ xbt_free(file->getUserdata());
- XBT_INFO("Get/set data for storage element: %s", storage->name());
- XBT_INFO(" Uninitialized storage data: '%s'", (char*)storage->userdata());
+ XBT_INFO("Get/set data for storage element: %s", storage->getName());
+ XBT_INFO(" Uninitialized storage data: '%s'", (char*)storage->getUserdata());
e->loadPlatform("../../platforms/storage/storage.xml");
simgrid::s4u::Actor::createActor("host", simgrid::s4u::Host::by_name("denise"), MyHost());
e->run();
e->loadPlatform("../../platforms/storage/storage.xml");
simgrid::s4u::Actor::createActor("host", simgrid::s4u::Host::by_name("denise"), MyHost());
e->run();