Skip to contentSkip to conversation

master - filters: change return code

PATCH Zdenek Kabelac 1 participant 1 message Nov 3, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=dc11dcf11d90f24c8d37988f3029e29cc6a45441
Commit:        dc11dcf11d90f24c8d37988f3029e29cc6a45441
Parent:        c1ee6d4ffc7d520e015a8e44f50392510fb85167
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Oct 31 20:25:25 2014 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Nov 3 14:19:32 2014 +0100

filters: change return code

No data for writing should be seen as 'dump' success. (reduces one <bactrace> in the log) - it has no other effect.

---
 lib/filters/filter-persistent.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/filters/filter-persistent.c +1 -1
index 600fa38..3c1701b 100644
@@ -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 "