btrfs-progs: add further checks for multiple profiles

Add the warning to 'device usage' and 'filesystem df'.

Signed-off-by: Goffredo Baroncelli <kreijack@inwid.it>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Goffredo Baroncelli 2020-04-04 12:32:11 +02:00 committed by David Sterba
parent 6b535a04ee
commit 843b3c7bdc
2 changed files with 2 additions and 0 deletions

View file

@ -661,6 +661,7 @@ static int cmd_device_usage(const struct cmd_struct *cmd, int argc, char **argv)
}
ret = _cmd_device_usage(fd, argv[i], unit_mode);
btrfs_check_for_mixed_profiles_by_fd(fd);
close_file_or_dir(fd, dirstream);
if (ret)

View file

@ -111,6 +111,7 @@ static int cmd_filesystem_df(const struct cmd_struct *cmd,
error("get_df failed: %m");
}
btrfs_check_for_mixed_profiles_by_fd(fd);
close_file_or_dir(fd, dirstream);
return !!ret;
}