From: Carlos Maiolino <cmaiolino@redhat.com>
To: linux-xfs@vger.kernel.org
Subject: [PATCH] xfs_io: Print filesystem statfs flags in 'statfs' command
Date: Mon, 3 Jul 2017 10:28:30 +0200 [thread overview]
Message-ID: <20170703082830.22967-1-cmaiolino@redhat.com> (raw)
Sometimes printing the flags from the statfs structure is useful, so,
make statfs command print them.
Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
---
io/stat.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/io/stat.c b/io/stat.c
index 783eb2e..060ff83 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;
--
2.9.4
next reply other threads:[~2017-07-03 8:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-03 8:28 Carlos Maiolino [this message]
2017-07-13 12:41 ` [PATCH] xfs_io: Print filesystem statfs flags in 'statfs' command Carlos Maiolino
2017-07-13 15:46 ` Bill O'Donnell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170703082830.22967-1-cmaiolino@redhat.com \
--to=cmaiolino@redhat.com \
--cc=linux-xfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).