SimGrid  3.13
Versatile Simulation of Distributed Systems
io-storage.c File Reference
#include "simgrid/msg.h"

Functions

 XBT_LOG_NEW_DEFAULT_CATEGORY (storage,"Messages specific for this simulation")
 
static int host (int argc, char *argv[])
 
int main (int argc, char *argv[])
 

Function Documentation

XBT_LOG_NEW_DEFAULT_CATEGORY ( storage  ,
"Messages specific for this simulation"   
)
static int host ( int  argc,
char *  argv[] 
)
static
  • Display information on the disks mounted by the current host
  • Retrieve all mount points of current host
  • For each disk mounted on host:
    • Retrieve disk's information
  • Create a 200,000 bytes file named './tmp/data.txt' on /sd1
  • Open an non-existing file which amounts to create it.
  • Check that sizes have changed
  • Retrieve the size of created file and read it completely
  • Then write 100,000 bytes in tmp/data.txt
  • Move file from ./tmp/data.txt to ./tmp/simgrid.readme
  • Attach some user data to the file
  • Then retrieve this data
  • Attach some user data to disk1
  • Finally dump disks contents
int main ( int  argc,
char *  argv[] 
)