+ storage_name = xbt_strdup("Disk4");
+ storage = MSG_storage_get_by_name(storage_name);
+
+ // Now rename file from ./tmp/data.txt to ./tmp/simgrid.readme
+ XBT_INFO("*** Move '/tmp/data.txt' into '/tmp/simgrid.readme'");
+ MSG_file_move(file, "/home/tmp/simgrid.readme");
+
+ // Attach some user data to the file
+ MSG_file_set_data(file, xbt_strdup("777"));
+ // Retrieve these data
+ char *data = MSG_file_get_data(file);
+ XBT_INFO("User data attached to the file: %s", data);
+