mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvconvert: use log_print_unless_silent
For better -qq.
This commit is contained in:
parent
501cc19034
commit
fb930c2165
@ -4357,7 +4357,7 @@ static int _lv_create_cachevol(struct cmd_context *cmd,
|
||||
if (!arg_is_set(cmd, yes_ARG) &&
|
||||
yes_no_prompt("Use all %s from %s for cache? [y/n]: ",
|
||||
display_size(cmd, pv_size_sectors), device_name) == 'n') {
|
||||
log_print("Use --cachesize SizeMB to use a part of the cachedevice.");
|
||||
log_print_unless_silent("Use --cachesize SizeMB to use a part of the cachedevice.");
|
||||
log_error("Conversion aborted.");
|
||||
return 0;
|
||||
}
|
||||
@ -4407,7 +4407,7 @@ static int _lv_create_cachevol(struct cmd_context *cmd,
|
||||
lp.pvh = use_pvh;
|
||||
lp.extents = cache_size_sectors / vg->extent_size;
|
||||
|
||||
log_print("Creating cachevol LV %s with size %s.",
|
||||
log_print_unless_silent("Creating cachevol LV %s with size %s.",
|
||||
cvname, display_size(cmd, cache_size_sectors));
|
||||
|
||||
dm_list_init(&lp.tags);
|
||||
@ -5783,7 +5783,7 @@ static int _lvconvert_detach_writecache_when_clean(struct cmd_context *cmd,
|
||||
stack;
|
||||
}
|
||||
|
||||
log_print("Detaching writecache completed cleaning.");
|
||||
log_print_unless_silent("Detaching writecache completed cleaning.");
|
||||
|
||||
lv_fast = first_seg(lv)->writecache;
|
||||
|
||||
@ -5977,7 +5977,7 @@ static int _set_writecache_block_size(struct cmd_context *cmd,
|
||||
else
|
||||
block_size = 512;
|
||||
|
||||
log_print("Using writecache block size %u for thin pool data, logical block size %u, physical block size %u.",
|
||||
log_print_unless_silent("Using writecache block size %u for thin pool data, logical block size %u, physical block size %u.",
|
||||
block_size, lbs_4k ? 4096 : 512, pbs_4k ? 4096 : 512);
|
||||
|
||||
goto out;
|
||||
@ -5990,7 +5990,7 @@ static int _set_writecache_block_size(struct cmd_context *cmd,
|
||||
}
|
||||
|
||||
if (test_mode()) {
|
||||
log_print("Test mode skips checking fs block size.");
|
||||
log_print_unless_silent("Test mode skips checking fs block size.");
|
||||
fs_block_size = 0;
|
||||
goto skip_fs;
|
||||
}
|
||||
@ -6016,7 +6016,7 @@ skip_fs:
|
||||
else
|
||||
block_size = 4096;
|
||||
|
||||
log_print("Using writecache block size %u for unknown file system block size, logical block size %u, physical block size %u.",
|
||||
log_print_unless_silent("Using writecache block size %u for unknown file system block size, logical block size %u, physical block size %u.",
|
||||
block_size, lbs_4k ? 4096 : 512, pbs_4k ? 4096 : 512);
|
||||
|
||||
if (block_size != 512) {
|
||||
|
Loading…
Reference in New Issue
Block a user