Skip to contentSkip to conversation

master - dmsetup: Produce partial output if dev disappears.

PATCH Alasdair Kergon 1 participant 1 message Oct 18, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=34da83d729436d245e91e24e30b6996862fe7725
Commit:        34da83d729436d245e91e24e30b6996862fe7725
Parent:        5c55c4ac18f60822da6bf61dde9dec3467a9e79a
Author:        Alasdair G Kergon <[email protected]>
AuthorDate:    Tue Oct 18 18:01:52 2016 +0100
Committer:     Alasdair G Kergon <[email protected]>
CommitterDate: Tue Oct 18 18:01:52 2016 +0100

dmsetup: Produce partial output if dev disappears.

If a device disappears after obtaining the list of devices but before processing it as a member of that list, dmsetup exits with a failure code.

Most commands still produce what output they can in these circumstances, but 'ls --tree' and 'info -c' with fields depending on device dependencies didn't. Change this.

---
 WHATS_NEW_DM    |    1 +
 tools/dmsetup.c |   53 ++++++++++++++++++++++++++++++++++++-----------------
 2 files changed, 37 insertions(+), 17 deletions(-)
WHATS_NEW_DM +1 -0
index c69eb27..58a302e 100644
@@ -1,5 +1,6 @@
 Version 1.02.136 - 
 ======================================
+  Still produce output when dmsetup dependency tree building finds dev missing.
   Check and report pthread_sigmask() failure in dmeventd.
   Check mem alloc fail in _canonicalize_field_ids().
   Use unsigned math when checking more then 31 legs of raid.
tools/dmsetup.c +36 -17

111 lines not on this page · raw message