From 88fc506bf04d40c253f3df7a624c06bcffcb7cc3 Mon Sep 17 00:00:00 2001 From: Patrick Caulfield Date: Thu, 23 Aug 2007 12:19:13 +0000 Subject: [PATCH] Call init_full_scan_done() when refreshing the cache. This should fix clvmd -R. --- WHATS_NEW | 1 + daemons/clvmd/lvm-functions.c | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index ceb5b7360..89be83840 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.28 - ================================ + Fix clvmd -R, so it fully refreshes the caches. Change lvconvert_mirrors to use mirror segtype not striped. Fix lvconvert_mirrors detection of number of existing mirrors. Clean up numerous compiler warnings that crept in recently. diff --git a/daemons/clvmd/lvm-functions.c b/daemons/clvmd/lvm-functions.c index b8da034de..d8539e0f3 100644 --- a/daemons/clvmd/lvm-functions.c +++ b/daemons/clvmd/lvm-functions.c @@ -442,9 +442,14 @@ int do_check_lvm1(const char *vgname) int do_refresh_cache() { + int ret; DEBUGLOG("Refreshing context\n"); log_notice("Refreshing context"); - return refresh_toolcontext(cmd)==1?0:-1; + + ret = refresh_toolcontext(cmd); + init_full_scan_done(0); + + return ret==1?0:-1; }