1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-10-29 16:23:49 +03:00

lvmcache: handle reinit without error

Since commit f12ee43f2e call destroy,
it start to check all VGs are unlocked. However when we become_daemon,
we simply reset locking (since lock is still kept by parent process).
So implement a simple 'reset' flag.
This commit is contained in:
Zdenek Kabelac
2014-03-21 22:26:39 +01:00
parent bdd7baeab3
commit fc280bcc42
8 changed files with 14 additions and 11 deletions

View File

@@ -42,7 +42,7 @@ struct lvmcache_vginfo;
int lvmcache_init(void);
void lvmcache_allow_reads_with_lvmetad(void);
void lvmcache_destroy(struct cmd_context *cmd, int retain_orphans);
void lvmcache_destroy(struct cmd_context *cmd, int retain_orphans, int reset);
/* Set full_scan to 1 to reread every filtered device label or
* 2 to rescan /dev for new devices */