Add stack; backtraces when error is reported from dev_set() or
dev_close_immediate().
Version 2.02.78 -
====================================
+ Add backtraces for dev_set() and dev_close_immediate() errors in set_lv().
Add logging for unlink() error in clvmd remove_lockfile().
Add logging for pipe write() and close() error in clvmd child_init_signal().
Add test for existance of orphan vginfo in _lvmcache_update_vgname().
if (sectors > lv->size)
sectors = lv->size;
- dev_set(dev, UINT64_C(0), (size_t) sectors << SECTOR_SHIFT, value);
+ if (!dev_set(dev, UINT64_C(0), (size_t) sectors << SECTOR_SHIFT, value))
+ stack;
+
dev_flush(dev);
- dev_close_immediate(dev);
+
+ if (!dev_close_immediate(dev))
+ stack;
return 1;
}