A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update copyright lines.
[simgrid.git]
/
examples
/
c
/
io-file-system
/
io-file-system.c
diff --git
a/examples/c/io-file-system/io-file-system.c
b/examples/c/io-file-system/io-file-system.c
index
29b44e1
..
0403333
100644
(file)
--- a/
examples/c/io-file-system/io-file-system.c
+++ b/
examples/c/io-file-system/io-file-system.c
@@
-1,4
+1,4
@@
-/* Copyright (c) 2008-202
0
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2008-202
1
. The SimGrid Team. All rights reserved. */
/* 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. */
@@
-22,22
+22,22
@@
static void show_info(unsigned int disk_count, const sg_disk_t* disks)
XBT_INFO("Storage info on %s:", sg_host_self_get_name());
for (unsigned int i = 0; i < disk_count; i++) {
XBT_INFO("Storage info on %s:", sg_host_self_get_name());
for (unsigned int i = 0; i < disk_count; i++) {
- const
sg_disk_t d = disks[i];
+ const
_
sg_disk_t d = disks[i];
// Retrieve disk's information
// Retrieve disk's information
- XBT_INFO(" %s (%s) Used: %llu; Free: %llu; Total: %llu.", sg_disk_name(d), sg_disk_get_mount_point(d),
+ XBT_INFO(" %s (%s) Used: %llu; Free: %llu; Total: %llu.", sg_disk_
get_
name(d), sg_disk_get_mount_point(d),
sg_disk_get_size_used(d), sg_disk_get_size_free(d), sg_disk_get_size(d));
}
}
sg_disk_get_size_used(d), sg_disk_get_size_free(d), sg_disk_get_size(d));
}
}
-static void host(
XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED
char* argv[])
+static void host(
int argc,
char* argv[])
{
unsigned int disk_count;
sg_disk_t* disks;
{
unsigned int disk_count;
sg_disk_t* disks;
- sg_host_disks(sg_host_self(), &disk_count, &disks);
+ sg_host_
get_
disks(sg_host_self(), &disk_count, &disks);
show_info(disk_count, disks);
show_info(disk_count, disks);
- // Open a
n
non-existing file to create it
+ // Open a non-existing file to create it
const char* filename = "/scratch/tmp/data.txt";
sg_file_t file = sg_file_open(filename, NULL);
const char* filename = "/scratch/tmp/data.txt";
sg_file_t file = sg_file_open(filename, NULL);