From dc11dcf11d90f24c8d37988f3029e29cc6a45441 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 31 Oct 2014 20:25:25 +0100 Subject: [PATCH] filters: change return code No data for writing should be seen as 'dump' success. (reduces one in the log) - it has no other effect. --- lib/filters/filter-persistent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/filters/filter-persistent.c b/lib/filters/filter-persistent.c index 600fa38a2..3c1701b30 100644 --- a/lib/filters/filter-persistent.c +++ b/lib/filters/filter-persistent.c @@ -193,7 +193,7 @@ static int _persistent_filter_dump(struct dev_filter *f, int merge_existing) if (!dm_hash_get_num_entries(pf->devices)) { log_very_verbose("Internal persistent device cache empty " "- not writing to %s", pf->file); - return 0; + return 1; } if (!dev_cache_has_scanned()) { log_very_verbose("Device cache incomplete - not writing "