From: Brian Behlendorf Date: Fri, 3 Oct 2014 23:24:34 +0000 (-0700) Subject: Improve VERIFY() error in dmu_write() X-Git-Tag: zfs-0.6.4~138 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6659763c6069af794d66997a7f992dcdffa21b0;p=zfs 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 Signed-off-by: Ned Bass Issue #1440 --- 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++) {