]> sourceware.org Git - lvm2.git/commit
thin: enhance lvcreate error paths
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 25 Sep 2020 20:43:57 +0000 (22:43 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 25 Sep 2020 20:56:40 +0000 (22:56 +0200)
commitef59c83f2df61b0f0263b0e32dac66eb0cb75488
treee6f79e7fa6d1680bfdee6d1db7a9d7eb27cb77c3
parente2eb1dc501aca4b11997b31978c9ce62916a7c98
thin: enhance lvcreate error paths

Improve error response and reporting, when creating thin snapshots.
If the thin pool kernel metadata already have device with ID lvm2
tries to create, give more meanigful error message and also properly
restore transaction id to the value known to thin-pool in this case.

Before it's been possible to divert by one from kernel TID value,
and lvm2 stacked delete message for such thin device.
WHATS_NEW
lib/metadata/lv_manip.c
This page took 0.039373 seconds and 5 git commands to generate.