Skip to contentSkip to conversation

Remove LV if zeroing was requested but failed

PATCH New Jun'ichi Nomura 1 participant 1 message Nov 9, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove LV if zeroing was requested but failed

If zeroing of LV was requested for lvcreate but failed,
it seems nicer if the lvcreate fails and the (incomplete) LV is removed.

Attached patch changes lvcreate to abort in the following cases:
- if zeroing was requested but activation was disabled
- if zeroing was requested but activation failed,
- if zeroing was requested but zeroing failed

A test script is also attached.

Thanks,

Signature · 15 lines
Jun'ichi Nomura, NEC Corporation of America
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lvm2-align-result-on-zerofill-failure.patch
Type: text/x-patch
Size: 1366 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20071109/b45ae157/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cleanup-lvcreate.sh
Type: application/x-sh
Size: 1766 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20071109/b45ae157/attachment.sh>