]> sourceware.org Git - lvm2.git/commit
device_mapper: deactive new nodes when load fails
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 29 Jun 2018 15:25:38 +0000 (17:25 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 2 Jul 2018 08:25:35 +0000 (10:25 +0200)
commitd56e400d448c79a269591ac065e087bc2cc69609
tree8ec5ef26eceb356b86f8da8d8a5185a3af8eddd0
parentf2b856c9940cf3b4cf4bb35bf1a145a8f5f76e13
device_mapper: deactive new nodes when load fails

When node loading fails, there is not much the caller can do,
since there is 'unknown' set of devices preloaded.

Only suspend during preload knows future precommitted 'metadata',
so it's non-trivial to drop 'preloaded' entries with any later call.

However dm tree tracks newly loaded entries - so in this case it
may simplify the recovery path by dropping preloaded entries so
they are not leaked in the DM table.
device_mapper/libdm-deptree.c
This page took 0.036261 seconds and 5 git commands to generate.