mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Require non-zero regionsize and document parameter on lvcreate man page.
This commit is contained in:
parent
6aa17fe8d2
commit
12ccdb25e4
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.06 -
|
Version 2.02.06 -
|
||||||
=================================
|
=================================
|
||||||
|
Require non-zero regionsize and document parameter on lvcreate man page.
|
||||||
Invalidate cache if composition of VG changed externally.
|
Invalidate cache if composition of VG changed externally.
|
||||||
|
|
||||||
Version 2.02.05 - 21st April 2006
|
Version 2.02.05 - 21st April 2006
|
||||||
|
@ -13,6 +13,7 @@ lvcreate \- create a logical volume in an existing volume group
|
|||||||
[\-M/\-\-persistent y/n] [\-\-minor minor]
|
[\-M/\-\-persistent y/n] [\-\-minor minor]
|
||||||
[\-n/\-\-name LogicalVolumeName]
|
[\-n/\-\-name LogicalVolumeName]
|
||||||
[\-p/\-\-permission r/rw] [\-r/\-\-readahead ReadAheadSectors]
|
[\-p/\-\-permission r/rw] [\-r/\-\-readahead ReadAheadSectors]
|
||||||
|
[-R|--regionsize MirrorLogRegionSize]
|
||||||
[\-t/\-\-test]
|
[\-t/\-\-test]
|
||||||
[\-v/\-\-verbose] [\-Z/\-\-zero y/n]
|
[\-v/\-\-verbose] [\-Z/\-\-zero y/n]
|
||||||
VolumeGroupName [PhysicalVolumePath...]
|
VolumeGroupName [PhysicalVolumePath...]
|
||||||
@ -91,6 +92,10 @@ Default is read and write.
|
|||||||
Set read ahead sector count of this logical volume to a value between 2 and 120.
|
Set read ahead sector count of this logical volume to a value between 2 and 120.
|
||||||
Ignored by device-mapper.
|
Ignored by device-mapper.
|
||||||
.TP
|
.TP
|
||||||
|
.I \-R \-\-regionsize MirrorLogRegionSize
|
||||||
|
A mirror is divided into regions of this size (in KB), and the mirror log
|
||||||
|
uses this granularity to track which regions are in sync.
|
||||||
|
.TP
|
||||||
.I \-s, \-\-snapshot
|
.I \-s, \-\-snapshot
|
||||||
Create a snapshot logical volume (or snapshot) for an existing, so called
|
Create a snapshot logical volume (or snapshot) for an existing, so called
|
||||||
original logical volume (or origin).
|
original logical volume (or origin).
|
||||||
|
@ -184,6 +184,12 @@ static int _read_params(struct lvconvert_params *lp, struct cmd_context *cmd,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (!lp->region_size) {
|
||||||
|
log_error("Non-zero region size must be supplied.");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (!(lp->segtype = get_segtype_from_string(cmd, "striped")))
|
if (!(lp->segtype = get_segtype_from_string(cmd, "striped")))
|
||||||
return_0;
|
return_0;
|
||||||
}
|
}
|
||||||
|
@ -258,6 +258,11 @@ static int _read_mirror_params(struct lvcreate_params *lp,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!lp->region_size) {
|
||||||
|
log_error("Non-zero region size must be supplied.");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user