linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Why LVM doesn't send the dm-thin delete message immediately after volume creation failure
@ 2017-12-04  4:30 Ming-Hung Tsai
  2017-12-04 10:50 ` Zdenek Kabelac
  0 siblings, 1 reply; 2+ messages in thread
From: Ming-Hung Tsai @ 2017-12-04  4:30 UTC (permalink / raw)
  To: linux-lvm

Hi All,

I'm not sure if it is a bug or an intention. If there's error in
volume creation, the function _lv_create_an_lv() invokes lv_remove()
to delete the newly created volume. However, in the case of creating
thin volumes, it just queues a "delete" message without sending it
immediately. The pending message won't be process until the next
lvcreate.

Why not send it before the end of _lv_create_an_lv(), to ensure the
synchronization between LVM and kernel? (i.e., no dangling volume in
kernel metadata, and the transaction ID is also synced)


Thanks,
Ming-Hung Tsai

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-04 10:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-04  4:30 [linux-lvm] Why LVM doesn't send the dm-thin delete message immediately after volume creation failure Ming-Hung Tsai
2017-12-04 10:50 ` Zdenek Kabelac

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).