mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
vg_read: Remove unused READ_WITHOUT_LOCK.
Unused since 67a7b7a87d
:
report: Iterate over labels instead of PVs for label-only reports.
(included in 2.02.105).
This commit is contained in:
parent
c3bb9629a8
commit
7916cae697
@ -145,7 +145,6 @@
|
||||
/* vg_read and vg_read_for_update flags */
|
||||
#define READ_ALLOW_INCONSISTENT 0x00010000U
|
||||
#define READ_ALLOW_EXPORTED 0x00020000U
|
||||
#define READ_WITHOUT_LOCK 0x00040000U
|
||||
#define READ_WARN_INCONSISTENT 0x00080000U
|
||||
|
||||
/* A meta-flag, useful with toollib for_each_* functions. */
|
||||
|
@ -4256,7 +4256,7 @@ static struct volume_group *_vg_lock_and_read(struct cmd_context *cmd, const cha
|
||||
|
||||
already_locked = lvmcache_vgname_is_locked(vg_name);
|
||||
|
||||
if (!already_locked && !(misc_flags & READ_WITHOUT_LOCK) &&
|
||||
if (!already_locked &&
|
||||
!lock_vol(cmd, vg_name, lock_flags, NULL)) {
|
||||
log_error("Can't get lock for %s", vg_name);
|
||||
return _vg_make_handle(cmd, vg, FAILED_LOCKING);
|
||||
@ -4330,7 +4330,7 @@ static struct volume_group *_vg_lock_and_read(struct cmd_context *cmd, const cha
|
||||
return _vg_make_handle(cmd, vg, failure);
|
||||
|
||||
bad:
|
||||
if (!already_locked && !(misc_flags & READ_WITHOUT_LOCK))
|
||||
if (!already_locked)
|
||||
unlock_vg(cmd, vg_name);
|
||||
|
||||
bad_no_unlock:
|
||||
|
Loading…
Reference in New Issue
Block a user