diff options
author | Alasdair Kergon <agk@redhat.com> | 2010-08-17 16:25:32 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2010-08-17 16:25:32 +0000 |
commit | 2d6fcbf67d131c7969bd60798b2bfe3cc2316205 (patch) | |
tree | 60361dd2d3ea9dc9eb4f264eb6c65d1872caa572 /lib/locking/file_locking.c | |
parent | 85ed4030024b80335f03e0a1636b4a592b443425 (diff) | |
download | lvm2-2d6fcbf67d131c7969bd60798b2bfe3cc2316205.tar.gz lvm2-2d6fcbf67d131c7969bd60798b2bfe3cc2316205.tar.xz lvm2-2d6fcbf67d131c7969bd60798b2bfe3cc2316205.zip |
Allow internal suspend and resume of origin without its snapshots.
Diffstat (limited to 'lib/locking/file_locking.c')
-rw-r--r-- | lib/locking/file_locking.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/locking/file_locking.c b/lib/locking/file_locking.c index 1bf8f1bc..5972fdf7 100644 --- a/lib/locking/file_locking.c +++ b/lib/locking/file_locking.c @@ -279,7 +279,8 @@ static int _file_lock_resource(struct cmd_context *cmd, const char *resource, switch (flags & LCK_TYPE_MASK) { case LCK_UNLOCK: log_very_verbose("Unlocking LV %s", resource); - if (!lv_resume_if_active(cmd, resource)) + // FIXME Set origin_only + if (!lv_resume_if_active(cmd, resource, 0)) return 0; break; case LCK_NULL: @@ -297,7 +298,8 @@ static int _file_lock_resource(struct cmd_context *cmd, const char *resource, break; case LCK_WRITE: log_very_verbose("Locking LV %s (W)", resource); - if (!lv_suspend_if_active(cmd, resource)) + // FIXME Set origin_only + if (!lv_suspend_if_active(cmd, resource, 0)) return 0; break; case LCK_EXCL: |