diff mbox series

[4/5] Add further check in btrfs subcommand

Message ID 20200404103212.40986-5-kreijack@libero.it (mailing list archive)
State New, archived
Headers show
Series [1/5] btrfs-progs: Add code for checking mixed profile function | expand

Commit Message

Goffredo Baroncelli April 4, 2020, 10:32 a.m. UTC
From: Goffredo Baroncelli <kreijack@inwind.it>

Signed-off-by: Goffredo Baroncelli <kreijack@inwid.it>
---
 cmds/device.c     | 1 +
 cmds/filesystem.c | 1 +
 2 files changed, 2 insertions(+)
diff mbox series

Patch

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