From nobody Fri May 19 05:16:35 2023 X-Original-To: fs@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 4QMw7747lPz4BT5b 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 4QMw770wzrz3PwL 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=jyAQi/lg1/AL/+U5e1fhLCJLYfjz9dsp6L4MjAyf47tZrZhWUyIsrScy1M7BKqrUCdBWEA SacGC7eMbBxAVt5ng5MAoK7/htGJTrtXEUzQ8wf4FbRvXzz12O5OOVSWBXlgVTwLXQtrg3 oAhVtbKEEM3ePYb7jyRDgfGHoITXrW84UzHOulQbZDzfKnAr6zg75KgIlA0/gQAsTXQopZ 56owelPXy+arhUpWa6Tai8imfd4rLqP7lH3ckS11AiqxYzAy9HplD40PpAZPDbbfDjNrsJ nLfQeFtDqwYPqm1gA4Dh6EfCPCMM1q9nubUL3CpyoL7Wdjv51mRIevINMu0rkw== 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=hqtUeSiBPvoZSyknXsAMcD8IOpZG4XgPonCVHxTbPbpnH+0Eou7ABDNW4safKwYgRRDgen BJSyexLgNMC/w07nWO5nogYWbbzP8Tt6a2+XwQuHdeW1N22eibLmcM7geHcfvxZhDTlFw8 J8TUh0dWDzmixukBko6JxGfvPp6wab9Jadts6OpSbwLJqznNo0jKGX7T4U2keLcnT4qUUK /HNAum0B/vJGrfeSLDRW6TNw1qXMOCH4Goc4LyL378nWlYVYGdmdtBV85TA1NubbtgpNXV /p1eTOREH3jXh8LdEUlVghZftLLS1aQLXpx5ykdRRR3OAAjjvhWxvXtCYHnTMw== 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 4QMw7701B0zFst 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 34J5GY91017961 for ; Fri, 19 May 2023 05:16:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34J5GYlL017960 for fs@FreeBSD.org; Fri, 19 May 2023 05:16:34 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: fs@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: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@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.=