[lvm-devel] [LVM2 PATCH] (1/3) Check cow != origin in commands

Jun'ichi Nomura j-nomura at ce.jp.nec.com
Thu Aug 9 17:54:35 UTC 2007


Hi,

Currently we can do this strange thing:
  # lvconvert -s testvg/lvol0 testvg/lvol0
  Logical volume lvol0 converted to snapshot.

It means testvg/lvol0 is both origin and cow of the snapshot.

Once we create such a LV, we cannot remove it.

lvconvert should check its parameter and
the attached patch does it.

Thanks,
-- 
Jun'ichi Nomura, NEC Corporation of America
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lvm2-lvconvert-snapshot-not-to-accept-origin-for-cow.patch
Type: text/x-patch
Size: 686 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20070809/2a89f3e9/attachment.bin>


More information about the lvm-devel mailing list