mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-24 14:50:34 +03:00
file-locking: skip locking of VG_SYNC_NAMES
VG_SYNC_NAMES is internal name with different meaning, there is no point to search it in cache.
This commit is contained in:
parent
9351dca863
commit
ab94045693
@ -1,5 +1,6 @@
|
||||
Version 2.02.112 -
|
||||
=====================================
|
||||
Skip trying to file lock virtual internal vg name.
|
||||
Fix selection on {vg,lv}_permissions fields to properly match selection criteria.
|
||||
Fix lv_permissions reporting to display read-only{-override} instead of blank.
|
||||
Fix liblvm2cmd and lvm shell to respect quotes around args in cmd line string.
|
||||
|
@ -60,12 +60,11 @@ static int _file_lock_resource(struct cmd_context *cmd, const char *resource,
|
||||
return_0;
|
||||
break;
|
||||
case LCK_VG:
|
||||
/* Skip cache refresh for VG_GLOBAL - the caller handles it */
|
||||
if (strcmp(resource, VG_GLOBAL))
|
||||
lvmcache_drop_metadata(resource, 0);
|
||||
|
||||
if (!strcmp(resource, VG_SYNC_NAMES))
|
||||
if (!strcmp(resource, VG_SYNC_NAMES)) {
|
||||
fs_unlock();
|
||||
} else if (strcmp(resource, VG_GLOBAL))
|
||||
/* Skip cache refresh for VG_GLOBAL - the caller handles it */
|
||||
lvmcache_drop_metadata(resource, 0);
|
||||
|
||||
/* LCK_CACHE does not require a real lock */
|
||||
if (flags & LCK_CACHE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user