From 5407ee85fcaba91c9a0207ffad97a9b8b1c45c8c Mon Sep 17 00:00:00 2001 From: David Sterba Date: Thu, 28 Jul 2016 01:47:40 +0200 Subject: btrfs-progs: refactor and extend btrfs_prepare_device arguments The message about discard is printed unconditionally and does not conform to the --quite option eg. in mkfs. Consolidate the operation flags into one argument and add support for verbosity. Signed-off-by: David Sterba --- cmds-replace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmds-replace.c') diff --git a/cmds-replace.c b/cmds-replace.c index 6036e2f9..d1bf057e 100644 --- a/cmds-replace.c +++ b/cmds-replace.c @@ -254,8 +254,8 @@ static int cmd_replace_start(int argc, char **argv) } strncpy((char *)start_args.start.tgtdev_name, dstdev, BTRFS_DEVICE_PATH_NAME_MAX); - ret = btrfs_prepare_device(fddstdev, dstdev, 1, &dstdev_block_count, 0, - 0); + ret = btrfs_prepare_device(fddstdev, dstdev, &dstdev_block_count, 0, + PREP_DEVICE_ZERO_END | PREP_DEVICE_VERBOSE); if (ret) goto leave_with_error; -- cgit v1.2.3