mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Add backtraces for errors
Add stack; backtraces when error is reported from dev_set() or dev_close_immediate().
This commit is contained in:
parent
250238d04c
commit
166597d998
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.78 -
|
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 unlink() error in clvmd remove_lockfile().
|
||||||
Add logging for pipe write() and close() error in clvmd child_init_signal().
|
Add logging for pipe write() and close() error in clvmd child_init_signal().
|
||||||
Add test for existance of orphan vginfo in _lvmcache_update_vgname().
|
Add test for existance of orphan vginfo in _lvmcache_update_vgname().
|
||||||
|
@ -3033,9 +3033,13 @@ int set_lv(struct cmd_context *cmd, struct logical_volume *lv,
|
|||||||
if (sectors > lv->size)
|
if (sectors > lv->size)
|
||||||
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_flush(dev);
|
||||||
dev_close_immediate(dev);
|
|
||||||
|
if (!dev_close_immediate(dev))
|
||||||
|
stack;
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user