1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

lvmdbusd: Add a flag to activate LVs in shared mode to Lv.Activate

This commit is contained in:
Vojtech Trefny 2023-04-20 11:49:21 +02:00 committed by Tony Asleson
parent 317071ec53
commit 7807672975
2 changed files with 5 additions and 1 deletions

View File

@ -787,6 +787,10 @@ def activate_deactivate(op, name, activate, control_flags, options):
if (1 << 5) & control_flags:
cmd.append('--ignoreactivationskip')
# Shared locking (Cluster)
if (1 << 6) & control_flags:
op += 's'
if activate:
op += 'y'
else:

View File

@ -1243,7 +1243,7 @@ class TestDbusService(unittest.TestCase):
self._check_consistency()
# Try control flags
for i in range(0, 5):
for i in range(0, 6):
self.handle_return(lv_p.Lv.Activate(
dbus.UInt64(1 << i),