mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
Improve VERIFY() error in dmu_write()
This is a debug patch designed to ensure an error code is logged to the console when this VERIFY() is hit. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ned Bass <bass6@llnl.gov> Issue #1440
This commit is contained in:
parent
8878261fc9
commit
e6659763c6
@ -814,7 +814,7 @@ dmu_write(objset_t *os, uint64_t object, uint64_t offset, uint64_t size,
|
|||||||
if (size == 0)
|
if (size == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
VERIFY(0 == dmu_buf_hold_array(os, object, offset, size,
|
VERIFY0(dmu_buf_hold_array(os, object, offset, size,
|
||||||
FALSE, FTAG, &numbufs, &dbp));
|
FALSE, FTAG, &numbufs, &dbp));
|
||||||
|
|
||||||
for (i = 0; i < numbufs; i++) {
|
for (i = 0; i < numbufs; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user