[Bug 290205] ZFS: file stuck in delete queue

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 14 Sep 2026 19:19:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290205

--- Comment #19 from Tobias Bengtsson <me@tobiasbengtsson.se> ---
(In reply to Mark Millard from comment #18)

# zfs list -o
name,mountpoint,used,usedbydataset,refer,usedbysnapshots,usedbychildren,available,origin
nucroot/ROOT/default
NAME                  MOUNTPOINT   USED  USEDDS  REFER  USEDSNAP  USEDCHILD 
AVAIL  ORIGIN
nucroot/ROOT/default  /           39.4G   39.4G  39.4G        0B         0B  
404G  -

# du -d 0 -x -h /
2.1G    /

# zdb -ddd nucroot/ROOT/default 0:-1:A | sort -h -b -k 5 | tail -5
      3721    2   128K   128K  42.7M     512  67.2M  100.00  ZFS plain file
        46    2   128K   128K  44.7M     512    70M  100.00  ZFS plain file
         0    6   128K    16K  54.6M     512   464M   15.28  DMU dnode
    497845    3   128K   128K  18.0G     512  18.0G  100.00  ZFS plain file
    166951    3   128K   128K  19.4G     512  19.4G  100.00  ZFS plain file

Passing -ddddd to zdb prints way too much to fit here, but here's with -dddd:

# zdb -dddd nucroot/ROOT/default 497845
Dataset nucroot/ROOT/default [ZPL], ID 1905, cr_txg 16562626, 39.4G, 145173
objects, rootbp DVA[0]=<0:3763686000:1000> DVA[1]=<0:3d62a50000:1000> [L0 DMU
objset] fletcher4 uncompressed unencrypted LE contiguous unique double
size=1000L/1000P birth=16579403L/16579403P fill=145173
cksum=00000011647c4283:000032acf814c6e7:004e380c044c0eee:5478a3487a093098

    Object  lvl   iblk   dblk  dsize  dnsize  lsize   %full  type
    497845    3   128K   128K  18.0G     512  18.0G  100.00  ZFS plain file
                                               176   bonus  System attributes
        dnode flags: USED_BYTES USERUSED_ACCOUNTED USEROBJUSED_ACCOUNTED 
        dnode maxblkid: 147167
        uid     0
        gid     0
        atime   Tue Mar 10 08:06:24 2026
        mtime   Fri Mar 27 08:52:43 2026
        ctime   Fri Mar 27 08:52:43 2026
        crtime  Tue Mar 10 08:06:24 2026
        gen     13364221
        mode    100600
        size    19289505820
        parent  164105
        links   0
        pflags  840800000004
        projid  0

# zdb -dddd nucroot/ROOT/default 166951
Dataset nucroot/ROOT/default [ZPL], ID 1905, cr_txg 16562626, 39.4G, 145173
objects, rootbp DVA[0]=<0:3763686000:1000> DVA[1]=<0:3d62a50000:1000> [L0 DMU
objset] fletcher4 uncompressed unencrypted LE contiguous unique double
size=1000L/1000P birth=16579403L/16579403P fill=145173
cksum=00000011647c4283:000032acf814c6e7:004e380c044c0eee:5478a3487a093098

    Object  lvl   iblk   dblk  dsize  dnsize  lsize   %full  type
    166951    3   128K   128K  19.4G     512  19.4G  100.00  ZFS plain file
                                               176   bonus  System attributes
        dnode flags: USED_BYTES USERUSED_ACCOUNTED USEROBJUSED_ACCOUNTED 
        dnode maxblkid: 158556
        uid     0
        gid     0
        atime   Wed Aug 12 02:36:59 2026
        mtime   Wed Aug 12 06:12:40 2026
        ctime   Wed Aug 12 06:12:40 2026
        crtime  Wed Aug 12 02:36:59 2026
        gen     16001009
        mode    100600
        size    20782346636
        parent  164105
        links   0
        pflags  840800000004
        projid  0

-- 
You are receiving this mail because:
You are the assignee for the bug.