diff options
author | mav <mav@FreeBSD.org> | 2015-10-03 07:47:33 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2015-10-03 07:47:33 +0000 |
commit | 5905fe5beb455e465566b756e9681baf6ad2df9e (patch) | |
tree | 16c2c2c196b4140fcd0d60b6bacda8adcf57360b /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/bpobj.c | |
parent | 5db6c492e1d64424a78a764000e6ffc19bb1e534 (diff) | |
download | FreeBSD-src-5905fe5beb455e465566b756e9681baf6ad2df9e.zip FreeBSD-src-5905fe5beb455e465566b756e9681baf6ad2df9e.tar.gz |
MFC r286603: 5810 zdb should print details of bpobj
Reviewed by: Prakash Surya <prakash.surya@delphix.com>
Reviewed by: Alex Reece <alex@delphix.com>
Reviewed by: George Wilson <george@delphix.com>
Reviewed by: Will Andrews <will@freebsd.org>
Reviewed by: Simon Klinkert <simon.klinkert@gmail.com>
Approved by: Gordon Ross <gwr@nexenta.com>
Author: Matthew Ahrens <mahrens@delphix.com>
illumos/illumos-gate@732885fca09e11183dd0ea69aaaab5588fb7dbff
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/bpobj.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/bpobj.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/bpobj.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/bpobj.c index da4d38a..7d20096 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/bpobj.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/bpobj.c @@ -20,7 +20,7 @@ */ /* * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. - * Copyright (c) 2013 by Delphix. All rights reserved. + * Copyright (c) 2011, 2014 by Delphix. All rights reserved. */ #include <sys/bpobj.h> @@ -256,9 +256,8 @@ bpobj_iterate_impl(bpobj_t *bpo, bpobj_itor_t func, void *arg, dmu_tx_t *tx, dbuf = NULL; } if (free) { - i++; VERIFY3U(0, ==, dmu_free_range(bpo->bpo_os, bpo->bpo_object, - i * sizeof (blkptr_t), -1ULL, tx)); + (i + 1) * sizeof (blkptr_t), -1ULL, tx)); } if (err || !bpo->bpo_havesubobj || bpo->bpo_phys->bpo_subobjs == 0) goto out; |