mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Reduce chunksize limit to 512k.
This commit is contained in:
parent
b277f1e95d
commit
2b96712ab7
@ -1,5 +1,6 @@
|
||||
Version 2.01.15 -
|
||||
=================================
|
||||
Reduce chunksize limit to 512k.
|
||||
Fix chunksize field in reports.
|
||||
Don't hide snapshots from default 'lvs' output.
|
||||
Add is_dm_major() for use in duplicate device detection in lvmcache_add().
|
||||
|
@ -42,7 +42,7 @@ keep the contents of the original logical volume for backup purposes.
|
||||
See \fBlvm\fP for common options.
|
||||
.TP
|
||||
.I \-c, \-\-chunksize ChunkSize
|
||||
Power of 2 chunk size for the snapshot logical volume between 4k and 1024k.
|
||||
Power of 2 chunk size for the snapshot logical volume between 4k and 512k.
|
||||
.TP
|
||||
.I \-C, \-\-contiguous y/n
|
||||
Sets or resets the contiguous allocation policy for
|
||||
|
@ -303,6 +303,7 @@ static int _read_params(struct lvcreate_params *lp, struct cmd_context *cmd,
|
||||
return 0;
|
||||
}
|
||||
lp->chunk_size = 2 * arg_uint_value(cmd, chunksize_ARG, 8);
|
||||
// FIXME Restrict chunk_size to power of 2 in range PAGE_SIZE up to 512k (=1024)
|
||||
log_verbose("Setting chunksize to %d sectors.", lp->chunk_size);
|
||||
|
||||
if (!(lp->segtype = get_segtype_from_string(cmd, "snapshot"))) {
|
||||
|
Loading…
Reference in New Issue
Block a user