From: suter Date: Tue, 27 May 2014 14:47:16 +0000 (+0200) Subject: when doing two consecutive write, each one should have the full X-Git-Tag: v3_11~22 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b204443a59e6cf38383b0e86b7fadf3be7e54945 when doing two consecutive write, each one should have the full bandwidth. It wasn't the case with the lines that were commented in storage_n11.cpp --- diff --git a/examples/msg/io/file_unlink.c b/examples/msg/io/file_unlink.c index 04e7bddc3d..c07e7112d4 100644 --- a/examples/msg/io/file_unlink.c +++ b/examples/msg/io/file_unlink.c @@ -48,6 +48,10 @@ int host(int argc, char *argv[]) write = MSG_file_write(file,100000); // Write for 100Ko XBT_INFO("\tHave written %llu on %s",write,MSG_file_get_name(file)); + // Write into the new file + write = MSG_file_write(file,100000); // Write for 100Ko + XBT_INFO("\tHave written %llu on %s",write,MSG_file_get_name(file)); + // Close the file XBT_INFO("\tClose file '%s'",MSG_file_get_name(file)); MSG_file_close(file);