From: Carlos Maiolino Date: Fri, 4 Aug 2017 21:33:45 +0000 (-0500) Subject: xfs_io: Print filesystem statfs flags in 'statfs' command X-Git-Tag: v4.13.0-rc1~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4056fed6eda8180153fb274733aec8ff5dd14c9;p=thirdparty%2Fxfsprogs-dev.git 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 Reviewed-by: Bill O'Donnell Signed-off-by: Eric Sandeen --- diff --git a/io/stat.c b/io/stat.c index 783eb2e37..060ff8330 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;