From: Ilya Dryomov <idryomov@gmail.com>
To: linux-btrfs@vger.kernel.org
Cc: Chris Mason <chris.mason@oracle.com>,
David Sterba <dsterba@suse.cz>,
idryomov@gmail.com
Subject: [PATCH] Btrfs-progs: make btrfs df report profiles for mixed block groups
Date: Sun, 9 Oct 2011 00:09:19 +0300 [thread overview]
Message-ID: <1318108159-26273-1-git-send-email-idryomov@gmail.com> (raw)
Profiles other than SINGLE for mixed chunks might sound a bit strange,
but there is nothing in the filesystem that prevents a crazy user from
doing it. So make "btrfs fi df" report them properly.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
---
btrfs_cmds.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/btrfs_cmds.c b/btrfs_cmds.c
index 32f6b25..0d7d4da 100644
--- a/btrfs_cmds.c
+++ b/btrfs_cmds.c
@@ -967,9 +967,9 @@ int do_df_filesystem(int nargs, char **argv)
if (flags & BTRFS_BLOCK_GROUP_DATA) {
if (flags & BTRFS_BLOCK_GROUP_METADATA) {
- snprintf(description, 15, "%s",
+ snprintf(description, 14, "%s",
"Data+Metadata");
- written += 14;
+ written += 13;
} else {
snprintf(description, 5, "%s", "Data");
written += 4;
--
1.7.5.4
reply other threads:[~2011-10-08 21:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1318108159-26273-1-git-send-email-idryomov@gmail.com \
--to=idryomov@gmail.com \
--cc=chris.mason@oracle.com \
--cc=dsterba@suse.cz \
--cc=linux-btrfs@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