mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Make lvchange --refresh only take a read lock on volume group.
This commit is contained in:
parent
5d5e2bf8f6
commit
ea30184099
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.52 -
|
Version 2.02.52 -
|
||||||
=================================
|
=================================
|
||||||
|
Make lvchange --refresh only take a read lock on volume group.
|
||||||
Fix bug where non-blocking file locks could be granted in error.
|
Fix bug where non-blocking file locks could be granted in error.
|
||||||
Make lvm2app pv_t, lv_t, vg_t handle definitions consistent with lvm_t.
|
Make lvm2app pv_t, lv_t, vg_t handle definitions consistent with lvm_t.
|
||||||
Fix vgextend error path - if ORPHAN lock fails, unlock / release vg (2.02.49).
|
Fix vgextend error path - if ORPHAN lock fails, unlock / release vg (2.02.49).
|
||||||
|
@ -690,12 +690,11 @@ int lvchange(struct cmd_context *cmd, int argc, char **argv)
|
|||||||
return EINVALID_CMD_LINE;
|
return EINVALID_CMD_LINE;
|
||||||
}
|
}
|
||||||
|
|
||||||
int avail_only =
|
int avail_only = /* i.e. only one of -a or --refresh is given */
|
||||||
!(arg_count(cmd, contiguous_ARG) || arg_count(cmd, permission_ARG) ||
|
!(arg_count(cmd, contiguous_ARG) || arg_count(cmd, permission_ARG) ||
|
||||||
arg_count(cmd, readahead_ARG) || arg_count(cmd, persistent_ARG) ||
|
arg_count(cmd, readahead_ARG) || arg_count(cmd, persistent_ARG) ||
|
||||||
arg_count(cmd, addtag_ARG) || arg_count(cmd, deltag_ARG) ||
|
arg_count(cmd, addtag_ARG) || arg_count(cmd, deltag_ARG) ||
|
||||||
arg_count(cmd, refresh_ARG) || arg_count(cmd, alloc_ARG) ||
|
arg_count(cmd, resync_ARG) || arg_count(cmd, alloc_ARG));
|
||||||
arg_count(cmd, resync_ARG));
|
|
||||||
|
|
||||||
if (arg_count(cmd, ignorelockingfailure_ARG) && !avail_only) {
|
if (arg_count(cmd, ignorelockingfailure_ARG) && !avail_only) {
|
||||||
log_error("Only -a permitted with --ignorelockingfailure");
|
log_error("Only -a permitted with --ignorelockingfailure");
|
||||||
|
Loading…
Reference in New Issue
Block a user