summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Rudoy <gene.devel@gmail.com>2017-11-04 21:26:20 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2017-11-22 21:22:33 (GMT)
commit217cc715ea99c17fe1706b28adf4ebbeb6fc83f1 (patch)
tree1d4499e4cddc728e5d27c80f954d86bbd721f5b6
parentf0567d67075ff7a27ada8ab5bce750fe8a739763 (diff)
tst-statfs: print f_frsize if available
Follow-up of 68de9946e914d8c30dcc6667a059ea59e5b74cac Signed-off-by: Eugene Rudoy <gene.devel@gmail.com>
-rw-r--r--test/misc/tst-statfs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/misc/tst-statfs.c b/test/misc/tst-statfs.c
index 6b501c0..87f4462 100644
--- a/test/misc/tst-statfs.c
+++ b/test/misc/tst-statfs.c
@@ -19,6 +19,9 @@ main(int argc, char* argv[])
++ret;
printf("statfs %s:\n\tblocks=%lld\n\tblkfree=%lld\n\tbsize=%d\n",
argv[i], s.f_blocks, s.f_bfree, s.f_bsize);
+#ifdef _STATFS_F_FRSIZE
+ printf("\tfrsize=%lld\n", s.f_frsize);
+#endif
}
exit(ret ? EXIT_SUCCESS : EXIT_FAILURE);
}