From 992fd231807d123bb8d39a26579aa2440fd57f4c Mon Sep 17 00:00:00 2001 From: David Sterba Date: Tue, 17 Sep 2013 16:54:01 +0200 Subject: btrfs-progs: add nodiscard option to device add Same as for mkfs. Signed-off-by: David Sterba Signed-off-by: Chris Mason --- utils.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils.c') diff --git a/utils.c b/utils.c index bb1bcdb3..68aa5341 100644 --- a/utils.c +++ b/utils.c @@ -597,6 +597,8 @@ int btrfs_prepare_device(int fd, char *file, int zero_end, u64 *block_count_ret, } if (discard) { + fprintf(stderr, "Performing full device TRIM (%s) ...\n", + pretty_size(block_count)); /* * We intentionally ignore errors from the discard ioctl. It is * not necessary for the mkfs functionality but just an optimization. -- cgit v1.2.3