From: Goffredo Baroncelli <kreijack@xxxxxxxxx>
Signed-off-by: Goffredo Baroncelli <kreijack@xxxxxxxx>
---
cmds/device.c | 1 +
cmds/filesystem.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/cmds/device.c b/cmds/device.c
index 401b32b9..d83f92a7 100644
--- a/cmds/device.c
+++ b/cmds/device.c
@@ -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)
diff --git a/cmds/filesystem.c b/cmds/filesystem.c
index 4f22089a..c4bb13dd 100644
--- a/cmds/filesystem.c
+++ b/cmds/filesystem.c
@@ -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;
}
--
2.26.0