Skip to contentSkip to conversation

stable-2.02 - blkdeactivate: add support for VDO in blkdeactivate script

PATCH Marian Csontos 1 participant 1 message Oct 19, 2020

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=2c048bd77d669f77825455b8e5110c80beff7da5
Commit:        2c048bd77d669f77825455b8e5110c80beff7da5
Parent:        e5af7bef223881134209b71f90240cdbf59d9ec1
Author:        Peter Rajnoha <[email protected]>
AuthorDate:    Thu Apr 9 15:23:58 2020 +0200
Committer:     Marian Csontos <[email protected]>
CommitterDate: Mon Oct 19 16:02:20 2020 +0200

blkdeactivate: add support for VDO in blkdeactivate script

Make it possible to tear down VDO volumes with blkdeactivate if VDO is part of a device stack (and if VDO binary is installed). Also, support optional -o|--vdooptions configfile=file.

(cherry picked from commit 0dd905c959a8f36ea627027336b6d5dafb015001)

Conflicts:
WHATS_NEW_DM

---
 WHATS_NEW_DM                |  1 +
 man/blkdeactivate.8_main    | 11 +++++++++++
 scripts/blkdeactivate.sh.in | 48 ++++++++++++++++++++++++++++++++++++++++++++-
 3 files changed, 59 insertions(+), 1 deletion(-)
WHATS_NEW_DM +1 -0
index 56d9e0684..06e65b7d3 100644
@@ -1,5 +1,6 @@
 Version 1.02.172 - 
 ==================================
+  Add support for VDO in blkdeactivate script.
   Try to remove all created devices on dm preload tree error path.
   Fix dm_list interators with gcc 10 optimization (-ftree-pta).
   Dmeventd handles timer without looping on short intervals.
man/blkdeactivate.8_main +11 -0
index f3c19a8c3..06af52e52 100644
@@ -9,6 +9,7 @@ blkdeactivate \(em utility to deactivate block devices
 .RB [ -l \  \fIlvm_options\fP ]
 .RB [ -m \  \fImpath_options\fP ]
 .RB [ -r \  \fImdraid_options\fP ]
+.RB [ -o \  \fIvdo_options\fP ]
 .RB [ -u ]
 .RB [ -v ]
 .RI [ device ]
@@ -70,6 +71,15 @@ Comma-separated list of MD RAID specific options:
 Wait MD device's resync, recovery or reshape action to complete
 before deactivation.
 .RE
+
+.TP
+.BR -o ", " --vdooptions \ \fIvdo_options\fP
+Comma-separated list of VDO specific options:
+.RS
+.IP \fIconfigfile=file\fP
+Use specified VDO configuration file.
+.RE
+
 .TP
 .BR -u ", " --umount
 Unmount a mounted device before trying to deactivate it.
@@ -120,4 +130,5 @@ of a device-mapper device fails, retry it and force removal.
 .BR lvm (8),
 .BR mdadm (8),
 .BR multipathd (8),
+.BR vdo (8),
 .BR umount (8)
scripts/blkdeactivate.sh.in +47 -1

113 lines not on this page · raw message