From nobody Fri May 19 05:16:35 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QMw776l75z4BT0Y for ; Fri, 19 May 2023 05:16:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QMw775cvvz3Prb for ; Fri, 19 May 2023 05:16:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684473395; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bkdAEp+R6UsAV/849WyoNPaviXl6XABntwSjdcj5vhQ=; b=D0oQ+Rx6sAIrnSqbODEzomoLytyiSuENaUsBJ64neFCo1NNfO/6yN+r3cba0NkEOPjK6wl VFt1BZlBoRvjiMA0L9miw5yReOnzTScUsbm6kEXXDGXFFn6nYfspVMulJclESV9j8NG1Xu a/UsofaaWhsnaOQ/wfKXRbVkBiJ3g4aGvcVa8ORi5gsmaYJhkyW4EIpxxq+28P/cHZnDH3 xY/CmHHKUhbJ/8MgnK8ZCo3PYzN+qlH0qd0ral6CPxLCEvlwNJr27J8oFotvXx8vE0UVVy XCy8Lp5Tkd8NHcKFfmpAkwi5YpgX6K10ZejE3dpdIfHr8eLlHzkjpNZ8FZS4Dg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684473395; a=rsa-sha256; cv=none; b=EYUB66O19ULmy4lSUCwEvE2mcjLp+23DFHRc08cQiXhFYnVSNolDtKgKw7ryTHPdQFOjIf synlNrnVHx9QosCrHRaRJ+t+OAd1AI0uOy6ykvBNQZQnANE3a2SvYEkZ3Q+/rYHM2VBzuh S8YenYG1OvqR6OxAul/YdZjz/OisFfy84Y86n4jyMeUko/xNgnlzTComt4XAqY5U4kkt+H m1jLV/wj3GufI5qQd4eAdHaJdmmLXyj4qtGDq2rYlzDlZ8qAQ3ml4wo8Q/16gdNbP7Dffv DPucVDp+LsLm9GSdfBrXL3iHDiipME0DSm/MFMKR8/eMqRMcM3XTDyr6pS+dfw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QMw774gz7zGCP for ; Fri, 19 May 2023 05:16:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 34J5GZi0017976 for ; Fri, 19 May 2023 05:16:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34J5GZCe017975 for bugs@FreeBSD.org; Fri, 19 May 2023 05:16:35 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 271462] If readonly=on when a pool is imported, then zpool list will wrongly report zero bytes allocated Date: Fri, 19 May 2023 05:16:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: grahamperrin@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to bug_file_loc short_desc bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271462 Graham Perrin changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@FreeBSD.org |fs@FreeBSD.org URL| |https://openzfs.github.io/o | |penzfs-docs/man/8/zpool-imp | |ort.8.html Summary|zpool list may wrongly |If readonly=3Don when a po= ol |report allocation of zero |is imported, then zpool |bytes |list will wrongly report | |zero bytes allocated Status|New |Open --- Comment #2 from Graham Perrin --- Reproducible on 14.0-CURRENT:=20 root@mowa219-gjp4-8570p-freebsd:~ # zpool import -o readonly=3Don Transcend= ; zfs load-key Transcend/VirtualBox && zfs mount Transcend/VirtualBox ; zpool list NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP=20= =20=20 HEALTH ALTROOT Transcend 928G 0 928G - - 0% 0% 1.00x=20= =20=20 ONLINE - august 912G 732G 180G - - 66% 80% 1.00x=20= =20=20 ONLINE - root@mowa219-gjp4-8570p-freebsd:~ # zpool export Transcend root@mowa219-gjp4-8570p-freebsd:~ # zpool import Transcend ; zpool status Transcend && zfs load-key Transcend/VirtualBox && zfs mount Transcend/VirtualBox ; zpool list pool: Transcend state: ONLINE status: Some supported and requested features are not enabled on the pool. The pool can still be used, but some features are unavailable. action: Enable all features using 'zpool upgrade'. Once this is done, the pool may no longer be accessible by software that does not supp= ort the features. See zpool-features(7) for details. scan: scrub repaired 0B in 03:25:04 with 0 errors on Sat Apr 15 23:16:47 = 2023 config: NAME STATE READ WRITE CKSUM Transcend ONLINE 0 0 0 gpt/Transcend ONLINE 0 0 0 errors: No known data errors NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP=20= =20=20 HEALTH ALTROOT Transcend 928G 390G 538G - - 4% 42% 1.00x=20= =20=20 ONLINE - august 912G 732G 180G - - 66% 80% 1.00x=20= =20=20 ONLINE - root@mowa219-gjp4-8570p-freebsd:~ # date ; uname -aKU Fri May 19 06:08:56 BST 2023 FreeBSD mowa219-gjp4-8570p-freebsd 14.0-CURRENT FreeBSD 14.0-CURRENT #40 main-n262942-e0e24ae5d658-dirty: Sat May 13 23:51:09 BST 2023=20=20=20=20 grahamperrin@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GE= NERIC-NODEBUG amd64 1400088 1400088 root@mowa219-gjp4-8570p-freebsd:~ # --=20 You are receiving this mail because: You are the assignee for the bug.=