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>
This commit is contained in:
Ilya Dryomov 2011-10-09 00:09:19 +03:00 committed by Chris Mason
parent bd7d6d45d4
commit 0758da29a6
1 changed files with 2 additions and 2 deletions

View File

@ -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;