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.
Attachment:
lvm2_stripe_size_unlimited.patch
Description: Binary data
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________ linux-lvm mailing list linux-lvm@redhat.com https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/