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:
parent
317071ec53
commit
7807672975
@ -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:
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user