diff options
author | Brian Behlendorf <[email protected]> | 2014-10-03 16:24:34 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2014-10-08 09:18:14 -0700 |
commit | e6659763c6069af794d66997a7f992dcdffa21b0 (patch) | |
tree | fe15e5a9e5bc38f679e181003dc2ceee317cc0eb | |
parent | 8878261fc9447592844db5f7eb3df9ed3b088871 (diff) |
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 <[email protected]>
Signed-off-by: Ned Bass <[email protected]>
Issue #1440
-rw-r--r-- | module/zfs/dmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/dmu.c b/module/zfs/dmu.c index a6fe4fb3d..b2def0d80 100644 --- a/module/zfs/dmu.c +++ b/module/zfs/dmu.c @@ -814,7 +814,7 @@ dmu_write(objset_t *os, uint64_t object, uint64_t offset, uint64_t size, if (size == 0) return; - VERIFY(0 == dmu_buf_hold_array(os, object, offset, size, + VERIFY0(dmu_buf_hold_array(os, object, offset, size, FALSE, FTAG, &numbufs, &dbp)); for (i = 0; i < numbufs; i++) { |