mirror of
git://sourceware.org/git/lvm2.git
synced 2024-11-12 15:21:25 +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:
parent
54e2de82c0
commit
a98f908c23
@ -59,7 +59,7 @@ lvresize \(em Resize a logical volume
|
||||
.br
|
||||
\fB--noudevsync\fP
|
||||
.br
|
||||
\fB--poolmetadatasize\fP [\fB+\fP|\fB-\fP]\fISize\fP[m|UNIT]
|
||||
\fB--poolmetadatasize\fP [\fB+\fP]\fISize\fP[m|UNIT]
|
||||
.br
|
||||
\fB--profile\fP \fIString\fP
|
||||
.br
|
||||
@ -111,7 +111,7 @@ Resize an LV by a specified size.
|
||||
.br
|
||||
[ \fB-r\fP|\fB--resizefs\fP ]
|
||||
.br
|
||||
[ \fB--poolmetadatasize\fP [\fB+\fP|\fB-\fP]\fISize\fP[m|UNIT] ]
|
||||
[ \fB--poolmetadatasize\fP [\fB+\fP]\fISize\fP[m|UNIT] ]
|
||||
.br
|
||||
[ \fB--fs\fP \fIString\fP ]
|
||||
.br
|
||||
@ -148,7 +148,7 @@ Resize an LV by specified PV extents.
|
||||
Resize a pool metadata SubLV by a specified size.
|
||||
.br
|
||||
.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
|
||||
.RS 4
|
||||
.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.
|
||||
.
|
||||
.HP
|
||||
\fB--poolmetadatasize\fP [\fB+\fP|\fB-\fP]\fISize\fP[m|UNIT]
|
||||
\fB--poolmetadatasize\fP [\fB+\fP]\fISize\fP[m|UNIT]
|
||||
.br
|
||||
Specifies the new size of the pool metadata LV.
|
||||
The plus prefix \fB+\fP can be used, in which case
|
||||
|
@ -1676,13 +1676,13 @@ static int _update_relative_opt(const char *name, int opt_enum, int val_enum)
|
||||
else if (!strcmp(name, "lvreduce"))
|
||||
switch (opt_enum) {
|
||||
case extents_ARG: return nextents_VAL;
|
||||
case poolmetadatasize_ARG:
|
||||
case size_ARG: return nsizemb_VAL;
|
||||
}
|
||||
else if (!strcmp(name, "lvresize"))
|
||||
switch (opt_enum) {
|
||||
case extents_ARG: return sextents_VAL;
|
||||
case poolmetadatasize_ARG:
|
||||
return psizemb_VAL;
|
||||
case size_ARG: return ssizemb_VAL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user