mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-16 17:56:51 +00:00
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:
parent
6b535a04ee
commit
843b3c7bdc
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user