[uclibc-ng-devel,2/3] tst-statfs: print f_frsize if available

Message ID 20171104212621.3370-2-gene.devel@gmail.com
State New
Headers show
Series
  • Untitled series #11902
Related show

Commit Message

Eugene Rudoy Nov. 4, 2017, 9:26 p.m.
Follow-up of 68de9946e914d8c30dcc6667a059ea59e5b74cac

Signed-off-by: Eugene Rudoy <gene.devel@gmail.com>
---
 test/misc/tst-statfs.c | 3 +++
 1 file changed, 3 insertions(+)

Patch

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);
 }