From owner-freebsd-fs@FreeBSD.ORG Wed Nov 28 08:47:50 2012 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 65B0E2EA for ; Wed, 28 Nov 2012 08:47:50 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 8E3848FC13 for ; Wed, 28 Nov 2012 08:47:49 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id KAA23331; Wed, 28 Nov 2012 10:47:46 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1TddJ4-000Oyy-Hh; Wed, 28 Nov 2012 10:47:46 +0200 Message-ID: <50B5CFAF.8070306@FreeBSD.org> Date: Wed, 28 Nov 2012 10:47:43 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Josh Beard Subject: Re: ZFS: Panic when attempting to delete certain data References: <50B50B04.8020109@FreeBSD.org> <50B52CEC.9080208@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-fs@FreeBSD.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Nov 2012 08:47:50 -0000 on 27/11/2012 23:47 Josh Beard said the following: > Thanks! Here we go: > > (kgdb) frame 7 > #7 0xffffffff80ebd45a in zfs_freebsd_remove (ap=Variable "ap" is not available. > ) at > /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c:1855 > 1855 dmu_tx_hold_sa(tx, xzp->z_sa_hdl, B_FALSE); > (kgdb) list > 1850 &xattr_obj, sizeof (xattr_obj)); > 1851 if (error == 0 && xattr_obj) { > 1852 error = zfs_zget(zfsvfs, xattr_obj, &xzp); > 1853 ASSERT3U(error, ==, 0); > 1854 dmu_tx_hold_sa(tx, zp->z_sa_hdl, B_TRUE); > 1855 dmu_tx_hold_sa(tx, xzp->z_sa_hdl, B_FALSE); > 1856 } > 1857 > 1858 mutex_enter(&zp->z_lock); > 1859 if ((acl_obj = zfs_external_acl(zp)) != 0 && may_delete_now) That's what I suspected. > (kgdb) frame 7 > #7 0xffffffff80ebd45a in zfs_freebsd_remove (ap=Variable "ap" is not available. > ) at > /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c:1855 > 1855 dmu_tx_hold_sa(tx, xzp->z_sa_hdl, B_FALSE); > (kgdb) info local > No locals. > (kgdb) A little bit unfortunate. > # ls -Pi /DSDK12_NHR.pax.gz (symlink to ../Archive.pax.gz) > 249868 > ./Imaging/Packages/DSDK12_NHR_2012-02-23.pkg/Contents/Resources/DSDK12_NHR.pax.gz > > # zdb -ddddd store/tdxs1 249868 > Dataset store/tdxs1 [ZPL], ID 109, cr_txg 35014, 1.33T, 1106389 objects, rootbp > DVA[0]=<0:8000204400:400> DVA[1]=<0:30800644400:400> [L0 DMU objset] fletcher4 > lzjb LE contiguous unique double size=800L/200P birth=1167710L/1167710P > fill=1106389 cksum=1966704b59:757ae6cb615:134bfd597bca9:254b2ee348393d > > Object lvl iblk dblk dsize lsize %full type > 249868 1 16K 512 0 512 0.00 ZFS plain file > 201 bonus System attributes > dnode flags: USERUSED_ACCOUNTED > dnode maxblkid: 0 > path > /tech/2012-09-14-01-00/Imaging/Packages/DSDK12_NHR_2012-02-23.pkg/Contents/Resources/DSDK12_NHR.pax.gz > uid 300002 > gid 80 > atime Tue Nov 27 14:43:00 2012 > mtime Thu Feb 23 08:59:21 2012 > ctime Fri Sep 14 01:12:37 2012 > crtime Fri Sep 14 01:11:50 2012 > gen 81430 > mode 120755 > size 17 > parent 249866 > links 1 > pflags 40800000104 > xattr 230 Could you please now run 'zdb -ddddd store/tdxs1 230' ? -- Andriy Gapon