]> sourceware.org Git - lvm2.git/commitdiff
filters: change return code
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 31 Oct 2014 19:25:25 +0000 (20:25 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 3 Nov 2014 13:19:32 +0000 (14:19 +0100)
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

index 600fa38a2b8f65a14eb42a2bd34caa47a42f3829..3c1701b300e35a3250a834089f7fe2ce916e0e6a 100644 (file)
@@ -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 "
This page took 0.031006 seconds and 5 git commands to generate.