Blame SOURCES/0012-tests-pv-ext-flags-work-with-devices-file.patch

b6fb8c
From 9c9bf13186d387d807f279c112745768c8b32513 Mon Sep 17 00:00:00 2001
b6fb8c
From: David Teigland <teigland@redhat.com>
b6fb8c
Date: Tue, 16 Nov 2021 14:21:07 -0600
b6fb8c
Subject: [PATCH 12/23] tests pv-ext-flags: work with devices file
b6fb8c
b6fb8c
---
b6fb8c
 test/shell/pv-ext-flags.sh | 4 ++++
b6fb8c
 1 file changed, 4 insertions(+)
b6fb8c
b6fb8c
diff --git a/test/shell/pv-ext-flags.sh b/test/shell/pv-ext-flags.sh
b6fb8c
index 3e6bcff76..ae4d6b7ff 100644
b6fb8c
--- a/test/shell/pv-ext-flags.sh
b6fb8c
+++ b/test/shell/pv-ext-flags.sh
b6fb8c
@@ -57,9 +57,11 @@ dd if="$dev1" of=dev1_backup bs=1M
b6fb8c
 
b6fb8c
 # pvcreate and pvremove can be forced even if the PV is marked as used
b6fb8c
 pvremove -ff -y "$dev1"
b6fb8c
+lvmdevices --deldev "$dev1" || true
b6fb8c
 dd if=dev1_backup of="$dev1" bs=1M
b6fb8c
 pvcreate -ff -y "$dev1"
b6fb8c
 dd if=dev1_backup of="$dev1" bs=1M
b6fb8c
+lvmdevices --adddev "$dev1" || true
b6fb8c
 
b6fb8c
 # prepare a VG with $dev1 and $dev both having 1 MDA
b6fb8c
 aux enable_dev "$dev2"
b6fb8c
@@ -116,9 +118,11 @@ dd if="$dev1" of=dev1_backup bs=1M
b6fb8c
 
b6fb8c
 # pvcreate and pvremove can be forced even if the PV is marked as used
b6fb8c
 pvremove -ff -y "$dev1"
b6fb8c
+lvmdevices --deldev "$dev1" || true
b6fb8c
 dd if=dev1_backup of="$dev1" bs=1M
b6fb8c
 pvcreate -ff -y "$dev1"
b6fb8c
 dd if=dev1_backup of="$dev1" bs=1M
b6fb8c
+lvmdevices --adddev "$dev1" || true
b6fb8c
 
b6fb8c
 # prepare a VG with $dev1 and $dev both having 1 MDA
b6fb8c
 aux enable_dev "$dev2"
b6fb8c
-- 
b6fb8c
2.31.1
b6fb8c