[lvm-devel] [PATCH lvconvert] Fix missing warning on '-R|--regionsize' for already mirrored LV

Jun'ichi Nomura j-nomura at ce.jp.nec.com
Mon Feb 11 21:22:05 UTC 2008


-R|--regionsize options for lvconvert only work when
converting from non-mirrored to mirrored.

        /*
         * Region size must not change on existing mirrors
         */
        if (arg_count(cmd, regionsize_ARG) && (lv->status & MIRRORED) &&
            (lp->region_size != seg->region_size)) {
                log_error("Mirror log region size cannot be changed on "
                          "an existing mirror.");
                return 0;
        }

However, the change in 2.02.30 about lvconvert to start polling if
no action specified, has missed the regionsize_ARG check
so it decided that 'no action was specified' before the warning.

Thanks,
-- 
Jun'ichi Nomura, NEC Corporation of America
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-lvconvert-warn-on-wrong-regionsize-param.patch
Type: text/x-patch
Size: 1108 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20080211/2bc90dec/attachment.bin>


More information about the lvm-devel mailing list