[Bug 284087] ZFS: empty usage when -o readonly set on import

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 15 Jan 2025 18:15:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284087

            Bug ID: 284087
           Summary: ZFS: empty usage when -o readonly set on import
           Product: Base System
           Version: 14.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: marck@FreeBSD.org

mostly, subject said it all

found while reviving pool on a dying HDD: alloc and other related statistics
are zero:

# zpool import -o readonly=on -R /mnt bext bext-old

# zpool list
NAME       SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH
 ALTROOT
bext-old  3.62T      0  3.62T        -         -     0%     0%  1.00x    ONLINE
 /mnt
# df -h | grep bext-old
bext-old/p/distfiles       3.1T    175G    3.0T     5%    /mnt/p/distfiles
bext-old/p/packages        3.3T    349G    3.0T    10%    /mnt/p/data/packages

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