mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
Make lvchange --refresh only take a read lock on volume group.
This commit is contained in:
parent
1ee9677b8a
commit
2997acf9dc
@ -1,5 +1,6 @@
|
||||
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.
|
||||
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).
|
||||
|
@ -690,12 +690,11 @@ int lvchange(struct cmd_context *cmd, int argc, char **argv)
|
||||
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, readahead_ARG) || arg_count(cmd, persistent_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, resync_ARG) || arg_count(cmd, alloc_ARG));
|
||||
|
||||
if (arg_count(cmd, ignorelockingfailure_ARG) && !avail_only) {
|
||||
log_error("Only -a permitted with --ignorelockingfailure");
|
||||
|
Loading…
Reference in New Issue
Block a user