Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=55b8204ca3ca9fe05bc04…
Commit: 55b8204ca3ca9fe05bc04cb1e1f3fc24ebbdfe48
Parent: 1ac7fde67b10c2bdfa37d1cf3f2ce48033f27baf
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Fri Nov 10 13:28:33 2017 +0100
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Sat Nov 11 00:58:11 2017 +0100
reload: do not take backup with suspended devices
If the suspend/resume sequence would leave some device in suspend
for possible later resume, backup cannot be takes (fs holding backups
could be still frozen in critical section())
---
lib/metadata/lv_manip.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c
index 41b52ec..d06b459 100644
--- a/lib/metadata/lv_manip.c
+++ b/lib/metadata/lv_manip.c
@@ -6413,7 +6413,7 @@ static int _lv_update_and_reload(struct logical_volume *lv, int origin_only)
r = 0;
}
- if (do_backup)
+ if (do_backup && !critical_section())
backup(vg);
return r;
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=512b2adc7773d302895d0…
Commit: 512b2adc7773d302895d01dbc1bccfb66dd94d6a
Parent: cd3b5e60a82f745030e2a976832a1490494851dc
Author: Marian Csontos <mcsontos(a)redhat.com>
AuthorDate: Thu Nov 9 10:56:15 2017 +0100
Committer: Marian Csontos <mcsontos(a)redhat.com>
CommitterDate: Thu Nov 9 11:57:59 2017 +0100
test: D-Bus test_nesting requires filter
---
test/api/dbustest.sh | 3 +++
test/dbus/lvmdbustest.py | 3 +++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/test/api/dbustest.sh b/test/api/dbustest.sh
index 5817e01..9da4fe0 100644
--- a/test/api/dbustest.sh
+++ b/test/api/dbustest.sh
@@ -18,6 +18,9 @@ SKIP_WITH_CLVMD=1
aux prepare_pvs 6
+# Required by test_nesting:
+aux extend_filter_LVMTEST
+
# We need the lvmdbusd.profile for the daemon to utilize JSON
# output
mkdir -p "$TESTDIR/etc/profile"
diff --git a/test/dbus/lvmdbustest.py b/test/dbus/lvmdbustest.py
index 3dca9d5..0914b7a 100755
--- a/test/dbus/lvmdbustest.py
+++ b/test/dbus/lvmdbustest.py
@@ -1868,6 +1868,9 @@ class TestDbusService(unittest.TestCase):
def test_nesting(self):
# check to see if we handle an LV becoming a PV which has it's own
# LV
+ #
+ # NOTE: This needs an equivalent of aux extend_filter_LVMTEST
+ # when run from lvm2 testsuite. See dbustest.sh.
pv_object_path = self.objs[PV_INT][0].object_path
for i in range(0, 5):