diff --git a/WHATS_NEW b/WHATS_NEW index dc31ad18e..f31aed983 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.90 - =================================== + Do not print warning for pv_min_size set in range between 512KB and 2MB. Clean up systemd unit ordering and requirements. Fix lcov reports when srcdir != builddir. Allow ALLOC_NORMAL to track reserved extents for log and data on same PV. diff --git a/lib/commands/toolcontext.c b/lib/commands/toolcontext.c index 3a5beb923..94564a5a1 100644 --- a/lib/commands/toolcontext.c +++ b/lib/commands/toolcontext.c @@ -377,10 +377,10 @@ static int _process_config(struct cmd_context *cmd) DEFAULT_METADATA_READ_ONLY); pv_min_kb = find_config_tree_int64(cmd, "devices/pv_min_size", DEFAULT_PV_MIN_SIZE_KB); - if (pv_min_kb < DEFAULT_PV_MIN_SIZE_KB) { + if (pv_min_kb < PV_MIN_SIZE_KB) { log_warn("Ignoring too small pv_min_size %" PRId64 "KB, using default %dKB.", - pv_min_kb, DEFAULT_PV_MIN_SIZE_KB); - pv_min_kb = DEFAULT_PV_MIN_SIZE_KB; + pv_min_kb, PV_MIN_SIZE_KB); + pv_min_kb = PV_MIN_SIZE_KB; } /* LVM stores sizes internally in units of 512-byte sectors. */ init_pv_min_size((uint64_t)pv_min_kb * (1024 >> SECTOR_SHIFT)); diff --git a/lib/misc/lvm-globals.h b/lib/misc/lvm-globals.h index ba104177f..3ffdec4a5 100644 --- a/lib/misc/lvm-globals.h +++ b/lib/misc/lvm-globals.h @@ -18,6 +18,7 @@ #define VERBOSE_BASE_LEVEL _LOG_WARN #define SECURITY_LEVEL 0 +#define PV_MIN_SIZE_KB 512 void init_verbose(int level); void init_test(int level);