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:
|
if (1 << 5) & control_flags:
|
||||||
cmd.append('--ignoreactivationskip')
|
cmd.append('--ignoreactivationskip')
|
||||||
|
|
||||||
|
# Shared locking (Cluster)
|
||||||
|
if (1 << 6) & control_flags:
|
||||||
|
op += 's'
|
||||||
|
|
||||||
if activate:
|
if activate:
|
||||||
op += 'y'
|
op += 'y'
|
||||||
else:
|
else:
|
||||||
|
@ -1243,7 +1243,7 @@ class TestDbusService(unittest.TestCase):
|
|||||||
self._check_consistency()
|
self._check_consistency()
|
||||||
|
|
||||||
# Try control flags
|
# Try control flags
|
||||||
for i in range(0, 5):
|
for i in range(0, 6):
|
||||||
|
|
||||||
self.handle_return(lv_p.Lv.Activate(
|
self.handle_return(lv_p.Lv.Activate(
|
||||||
dbus.UInt64(1 << i),
|
dbus.UInt64(1 << i),
|
||||||
|
Loading…
Reference in New Issue
Block a user