1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

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.
This commit is contained in:
Zdenek Kabelac 2014-10-31 20:25:25 +01:00
parent c1ee6d4ffc
commit dc11dcf11d

View 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)) { if (!dm_hash_get_num_entries(pf->devices)) {
log_very_verbose("Internal persistent device cache empty " log_very_verbose("Internal persistent device cache empty "
"- not writing to %s", pf->file); "- not writing to %s", pf->file);
return 0; return 1;
} }
if (!dev_cache_has_scanned()) { if (!dev_cache_has_scanned()) {
log_very_verbose("Device cache incomplete - not writing " log_very_verbose("Device cache incomplete - not writing "