diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2011-10-09 00:09:19 +0300 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-10-25 09:19:00 -0400 |
commit | 0758da29a6f0d41dd7243f329882252b8c6f7286 (patch) | |
tree | 85577060af93b87f5d73751111b9817a8f2f1794 | |
parent | bd7d6d45d4305eaf8efa25bf0fd44fb39d3c22e3 (diff) | |
download | btrfs-progs-0758da29a6f0d41dd7243f329882252b8c6f7286.tar.gz |
Btrfs-progs: make btrfs df report profiles for mixed block groups
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>
-rw-r--r-- | btrfs_cmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/btrfs_cmds.c b/btrfs_cmds.c index ecdae169..f2b63551 100644 --- a/btrfs_cmds.c +++ b/btrfs_cmds.c @@ -1083,9 +1083,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; |