aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Maiolino <cmaiolino@redhat.com>2017-08-04 16:33:45 -0500
committerEric Sandeen <sandeen@redhat.com>2017-08-04 16:33:45 -0500
commitb4056fed6eda8180153fb274733aec8ff5dd14c9 (patch)
treeff78b76d77cf0520d4b7c201433bccaed3709ac7
parent15a8bccc9403c0ab1dbe869aa3afce7be9e1dd49 (diff)
downloadxfsprogs-dev-b4056fed6eda8180153fb274733aec8ff5dd14c9.tar.gz
xfs_io: Print filesystem statfs flags in 'statfs' command
Sometimes printing the flags from the statfs structure is useful, so, make statfs command print them. Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com> Reviewed-by: Bill O'Donnell <billodo@redhat.com> Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
-rw-r--r--io/stat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/io/stat.c b/io/stat.c
index 783eb2e37a..060ff8330c 100644
--- a/io/stat.c
+++ b/io/stat.c
@@ -199,6 +199,7 @@ statfs_f(
printf(_("statfs.f_bavail = %lld\n"), (long long) st.f_bavail);
printf(_("statfs.f_files = %lld\n"), (long long) st.f_files);
printf(_("statfs.f_ffree = %lld\n"), (long long) st.f_ffree);
+ printf(_("statfs.f_fflags = 0x%llx\n"), (long long) st.f_flags);
}
if (file->flags & IO_FOREIGN)
return 0;