diff --git a/WHATS_NEW b/WHATS_NEW index 378150cd0..524fea466 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.144 - ===================================== + Fix regresion when lvresize accepted zero sizes (2.02.141). Always warn user about PV in use even when pvremove uses --force --force. Use uninitilized pool header detection in all cases. Fir read error detection when checking for uninitialized thin-pool header. diff --git a/tools/lvresize.c b/tools/lvresize.c index 2c2df366c..a35a03d99 100644 --- a/tools/lvresize.c +++ b/tools/lvresize.c @@ -47,6 +47,16 @@ static int _lvresize_params(struct cmd_context *cmd, int argc, char **argv, */ lp->sizeargs = arg_count(cmd, extents_ARG) + arg_count(cmd, size_ARG); + if (arg_from_list_is_zero(cmd, "may not be zero", + chunksize_ARG, extents_ARG, + poolmetadatasize_ARG, + regionsize_ARG, + size_ARG, + stripes_ARG, stripesize_ARG, + virtualsize_ARG, + -1)) + return_0; + if (arg_count(cmd, poolmetadatasize_ARG)) { lp->poolmetadatasize = arg_uint64_value(cmd, poolmetadatasize_ARG, 0); lp->poolmetadatasign = arg_sign_value(cmd, poolmetadatasize_ARG, SIGN_NONE);