stable-2.02 - label: use open_rw
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=ba7740df50e93d9a7a2ec919511ba2541e9cc52c Commit: ba7740df50e93d9a7a2ec919511ba2541e9cc52c Parent: 8792d417f3bcec4b9142234786c9a8d9474db3ae Author: Zdenek Kabelac <[email protected]> AuthorDate: Sun Oct 18 00:25:33 2020 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Sun Oct 18 21:26:38 2020 +0200
label: use open_rw
Add missing declaration for label_scan_open_rw() which has been already introduced without declaration and use it for wiping LV.
--- lib/label/label.h | 2 ++ lib/metadata/lv_manip.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)
lib/label/label.h +2 -0
@@ -118,6 +118,8 @@ void label_scan_confirm(struct device *dev);int label_scan_setup_bcache (void );int label_scan_open (struct device *dev);int label_scan_open_excl (struct device *dev); +int label_scan_open_rw (struct device *dev); +int label_scan_pvscan_all (struct cmd_context *cmd,struct dm_list *scan_devs);/*
lib/metadata/lv_manip.c +1 -1
@@ -7219,7 +7219,7 @@ int wipe_lv(struct logical_volume *lv, struct wipe_params wp)return 0 ; } -if (!label_scan_open (dev)) { +if (!label_scan_open_rw (dev)) {log_error ("Failed to open %s/%s for wiping and zeroing." , lv->vg->name, lv->name); goto out; }