[linux-lvm] [PATCH] remove stripe chunk size limitation for striped volumes in LVM2
AJ Lewis
aj at terrascale.net
Tue Apr 11 16:35:23 UTC 2006
This patch removes the artificial limitation on stripe size that lvm2
had for backwards compatibility with lvm1. It is now only limited by
the size of the variable used to store the chunk size.
o Adds a new flag 'FMT_UNLIMITED_STRIPESZ' and sets it for format_text.
lvcreate checks the flag and if it is set, ignores the
MAX_STRIPE_SIZE.
o There is also a check added in lvcreate.c:_read_stripe_params to
prevent
lp->stripe_size from overflowing, but this is not absolutely
necessary for
the rest of the patch.
o The 2^30 limitation for stripe chunk size in lvm2 is because of the
32-bit
variable that holds the chunks size. See the comment in
lvcreate.c for more
details.
o Note that the check for MAX_STRIPE_SIZE has been moved into
_lvcreate() so
that the format flag for the VG can be checked - if there's a way
to get a
valid flag in _read_stripe_params() it should be moved back
there, but the
cmd->fmt structure there always is format_text.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lvm2_stripe_size_unlimited.patch
Type: application/octet-stream
Size: 4728 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20060411/a98da773/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20060411/a98da773/attachment.sig>
More information about the linux-lvm
mailing list