Skip to contentSkip to conversation

stable-2.02 - wipe_lv: make error a fatal event

PATCH Zdenek Kabelac 1 participant 1 message Oct 18, 2020

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=7a06bc240001a18db8da8a9befa5b6e9ddbcdcb5
Commit:        7a06bc240001a18db8da8a9befa5b6e9ddbcdcb5
Parent:        84f03e2b630c5266ed553fd7699955b4c52cbf7f
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Tue Jun 23 13:56:15 2020 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Sun Oct 18 21:27:51 2020 +0200

wipe_lv: make error a fatal event

Failure in wiping/zeroing stop the command.
If user wants to avoid command abortion he should use -Zn or -Wn to avoid wiping.

Note: there is no easy way to distinguish which kind of failure has happend - so it's safe to not proceed any futher.

---
 WHATS_NEW               |  1 +
 lib/metadata/lv_manip.c | 43 ++++++++++++++++++++++++-------------------
 2 files changed, 25 insertions(+), 19 deletions(-)
WHATS_NEW +1 -0
index 0a916438a..e7245447b 100644
@@ -1,5 +1,6 @@
 Version 2.02.188 - 
 ==================================
+  Failure in zeroing or wiping will fail command (bypass with -Zn, -Wn).
   Fix support for lvconvert --repair used by foreign apps (i.e. Docker).
   Support interruption for bcache waiting.
   Fix bcache when device has too many failing writes.
lib/metadata/lv_manip.c +24 -19

76 lines not on this page · raw message