1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

command: correct lvresize

Code for supporting size reduction of pool metadata is not yet present
so don't pretend the option can work as pushed in previous commit.
This commit is contained in:
Zdenek Kabelac 2024-05-02 13:18:08 +02:00
parent 54e2de82c0
commit a98f908c23
2 changed files with 5 additions and 5 deletions

View File

@ -59,7 +59,7 @@ lvresize \(em Resize a logical volume
.br .br
\fB--noudevsync\fP \fB--noudevsync\fP
.br .br
\fB--poolmetadatasize\fP [\fB+\fP|\fB-\fP]\fISize\fP[m|UNIT] \fB--poolmetadatasize\fP [\fB+\fP]\fISize\fP[m|UNIT]
.br .br
\fB--profile\fP \fIString\fP \fB--profile\fP \fIString\fP
.br .br
@ -111,7 +111,7 @@ Resize an LV by a specified size.
.br .br
[ \fB-r\fP|\fB--resizefs\fP ] [ \fB-r\fP|\fB--resizefs\fP ]
.br .br
[ \fB--poolmetadatasize\fP [\fB+\fP|\fB-\fP]\fISize\fP[m|UNIT] ] [ \fB--poolmetadatasize\fP [\fB+\fP]\fISize\fP[m|UNIT] ]
.br .br
[ \fB--fs\fP \fIString\fP ] [ \fB--fs\fP \fIString\fP ]
.br .br
@ -148,7 +148,7 @@ Resize an LV by specified PV extents.
Resize a pool metadata SubLV by a specified size. Resize a pool metadata SubLV by a specified size.
.br .br
.P .P
\fBlvresize\fP \fB--poolmetadatasize\fP [\fB+\fP|\fB-\fP]\fISize\fP[m|UNIT] \fILV1\fP \fBlvresize\fP \fB--poolmetadatasize\fP [\fB+\fP]\fISize\fP[m|UNIT] \fILV1\fP
.br .br
.RS 4 .RS 4
.ad l .ad l
@ -445,7 +445,7 @@ in the background. Only use this if udev is not running or has rules that
ignore the devices LVM creates. ignore the devices LVM creates.
. .
.HP .HP
\fB--poolmetadatasize\fP [\fB+\fP|\fB-\fP]\fISize\fP[m|UNIT] \fB--poolmetadatasize\fP [\fB+\fP]\fISize\fP[m|UNIT]
.br .br
Specifies the new size of the pool metadata LV. Specifies the new size of the pool metadata LV.
The plus prefix \fB+\fP can be used, in which case The plus prefix \fB+\fP can be used, in which case

View File

@ -1676,13 +1676,13 @@ static int _update_relative_opt(const char *name, int opt_enum, int val_enum)
else if (!strcmp(name, "lvreduce")) else if (!strcmp(name, "lvreduce"))
switch (opt_enum) { switch (opt_enum) {
case extents_ARG: return nextents_VAL; case extents_ARG: return nextents_VAL;
case poolmetadatasize_ARG:
case size_ARG: return nsizemb_VAL; case size_ARG: return nsizemb_VAL;
} }
else if (!strcmp(name, "lvresize")) else if (!strcmp(name, "lvresize"))
switch (opt_enum) { switch (opt_enum) {
case extents_ARG: return sextents_VAL; case extents_ARG: return sextents_VAL;
case poolmetadatasize_ARG: case poolmetadatasize_ARG:
return psizemb_VAL;
case size_ARG: return ssizemb_VAL; case size_ARG: return ssizemb_VAL;
} }