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:
Brian Behlendorf 2014-10-03 16:24:34 -07:00
parent 8878261fc9
commit e6659763c6

View File

@ -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++) {