diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2014-03-21 22:26:39 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2014-03-21 22:29:21 +0100 |
commit | fc280bcc42556ca1c78d897839d05b3688d9d65b (patch) | |
tree | 05f144322008bb972344b2e288a596a92c363217 /tools/vgrename.c | |
parent | bdd7baeab39f7ef61817b2c48008852aefdbcdb0 (diff) | |
download | lvm2-fc280bcc42556ca1c78d897839d05b3688d9d65b.tar.gz |
lvmcache: handle reinit without error
Since commit f12ee43f2eaba5d38b1925a5a34b1746c1d66985 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.
Diffstat (limited to 'tools/vgrename.c')
-rw-r--r-- | tools/vgrename.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vgrename.c b/tools/vgrename.c index b5e778f58..d97b871c7 100644 --- a/tools/vgrename.c +++ b/tools/vgrename.c @@ -185,7 +185,7 @@ static int vg_rename_path(struct cmd_context *cmd, const char *old_vg_path, /* FIXME lvmcache corruption - vginfo duplicated instead of renamed */ if (cmd->filter->wipe) cmd->filter->wipe(cmd->filter); - lvmcache_destroy(cmd, 1); + lvmcache_destroy(cmd, 1, 0); return 1; |