diff options
author | Milan Broz <mbroz@redhat.com> | 2010-01-05 16:06:42 +0000 |
---|---|---|
committer | Milan Broz <mbroz@redhat.com> | 2010-01-05 16:06:42 +0000 |
commit | d37be0b86571c6d46816d30638faef75e123f30d (patch) | |
tree | c809b01c50f99db935c0c3d95c977e19e8d2c3bd /lib/locking/file_locking.c | |
parent | ac85c2e75bc3b2ecdf3bb8063ac473069adc4244 (diff) | |
download | lvm2-d37be0b86571c6d46816d30638faef75e123f30d.tar.gz lvm2-d37be0b86571c6d46816d30638faef75e123f30d.tar.xz lvm2-d37be0b86571c6d46816d30638faef75e123f30d.zip |
Add possibility to handle precommitted metadata in lvmcache.
- Add drop_precommitted flag to force drop precommitted metadata
- add lvmcache_commit_metadata() which upgrades precommitted metadata in cache
No functional change in this patch - just preparation for following change.
Diffstat (limited to 'lib/locking/file_locking.c')
-rw-r--r-- | lib/locking/file_locking.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/locking/file_locking.c b/lib/locking/file_locking.c index 0ee8bbf8..f47961df 100644 --- a/lib/locking/file_locking.c +++ b/lib/locking/file_locking.c @@ -259,7 +259,7 @@ static int _file_lock_resource(struct cmd_context *cmd, const char *resource, case LCK_VG: /* Skip cache refresh for VG_GLOBAL - the caller handles it */ if (strcmp(resource, VG_GLOBAL)) - lvmcache_drop_metadata(resource); + lvmcache_drop_metadata(resource, 0); /* LCK_CACHE does not require a real lock */ if (flags & LCK_CACHE) |