mirror of
https://github.com/kdave/btrfs-progs
synced 2025-05-11 20:38:11 +00:00
btrfs-progs: mkfs: print device name while trimming
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
f49fb67a25
commit
206ae800dd
4
utils.c
4
utils.c
@ -1869,8 +1869,8 @@ int btrfs_prepare_device(int fd, const char *file, u64 *block_count_ret,
|
|||||||
*/
|
*/
|
||||||
if (discard_range(fd, 0, 0) == 0) {
|
if (discard_range(fd, 0, 0) == 0) {
|
||||||
if (opflags & PREP_DEVICE_VERBOSE)
|
if (opflags & PREP_DEVICE_VERBOSE)
|
||||||
printf("Performing full device TRIM (%s) ...\n",
|
printf("Performing full device TRIM %s (%s) ...\n",
|
||||||
pretty_size(block_count));
|
file, pretty_size(block_count));
|
||||||
discard_blocks(fd, 0, block_count);
|
discard_blocks(fd, 0, block_count);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user