From nobody Thu Jun 1 14:54:27 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 4QX8Kw3CJTz4Yc4j for ; Thu, 1 Jun 2023 14:54:28 +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 4QX8Kv4w43z3CKL for ; Thu, 1 Jun 2023 14:54:27 +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=1685631267; 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; bh=D+MnTe0QIOJClfK7PQATCVG617ksNs4dCNyIJzqvxqw=; b=MrnQ8dBsGQiOn+9HAwqknGrKjm6F4tUCFx8wTUATtk027cIi8dtV+Dvcud1lOzvK/LWTHi FulM8Ljn2eJs2f3VRnFQkj/gqoKFyCZfA8tLmGn6KWcWBOF3xP8hCGSj49Vwzcn21sewtB yBEsExvyBN+Egxsm33jspLW9WaUmXznT97BHuK+01L/UN5nBr9NrVsyN3vHNe9aAZ4moW3 nyHdNCslOWmA/4wZ4z8ekfIlAuPTSml8g97vOzeBSHi3Sfwo5qBRArgRF3pnOP3ibIeZxl GZSyrFXn0S5pFzXpQFgEhJ5gGUGTvtISzxkKJRElo90CNODkKiOCYhbZ+TqyyA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685631267; a=rsa-sha256; cv=none; b=XUUOWGPxWjlbWXCJ6XsvNS/DSJ/y/b0iKzksaa8gQEGawvIc2nvtvhp4ujjrogKpt3I2ai blTmU0O2o9jZGAeBGsQan3qSkUvHHq99pUXDd+bCN5tjEmjydscVeXDpHR5f691yIjchxM d9n0oZrCnUW2Fl8O7AtYbPkiQSzw8Bc343edAGJeEr56qsgPr3J9vVKPtz7CxPE3qCQLo+ WKLTp0FOrGY3zFv3WrTO354AEiJPwLH95LmazbFSbUL0hYadbNvVYbxUfT7NFmYIlSUpHo D3Dt6EpM4fbikd1H1VgJwjpMvQM8emt8LTzJrZ2Lr2WZzOLI8xqgPMBfWsPSYg== 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 4QX8Kv40FSzMJY for ; Thu, 1 Jun 2023 14:54:27 +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 351EsRP6099396 for ; Thu, 1 Jun 2023 14:54:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 351EsRZ8099395 for bugs@FreeBSD.org; Thu, 1 Jun 2023 14:54:27 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 271766] dumpfs fails on geli devices: cylinder group checks failed Date: Thu, 01 Jun 2023 14:54:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: bevan@bi-co.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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=3D271766 Bug ID: 271766 Summary: dumpfs fails on geli devices: cylinder group checks failed Product: Base System Version: 13.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: bevan@bi-co.net Running dumpfs on a UFS2 file system in a block device encrypted via geli l= eads to the following error message when attempting to list free fragments: dumpfs: /dev/md0.eli: cylinder group checks failed "dumpfs -s" works without issues. "dumpfs -f" immediately triggers the erro= r. I'm running FreeBSD 13.2-RELEASE. Here are instructions that should easily reproduce the issue. I'm using md = here only for easy reproducibility. The error occurs on actual hard drives as we= ll: # truncate -s 1G image # mdconfig image=20 md0 # geli init -s 4096 -e aes -l 256 /dev/md0=20 Enter new passphrase:=20 Reenter new passphrase:=20 Metadata backup for provider /dev/md0 can be found in /var/backups/md0.eli and can be restored with the following command: # geli restore /var/backups/md0.eli /dev/md0 # geli attach /dev/md0 Enter passphrase:=20 # newfs /dev/md0.eli=20 /dev/md0.eli: 1024.0MB (2097144 sectors) block size 32768, fragment size 40= 96 using 4 cylinder groups of 256.00MB, 8192 blks, 32768 inodes. super-block backups (for fsck_ffs -b #) at: 192, 524480, 1048768, 1573056 # dumpfs /dev/md0.eli=20 magic 19540119 (UFS2) last mounted time Thu Jan 1 01:00:00 1970 last modified time Thu Jun 1 16:39:30 2023 superblock location 65536 id [ 6478ada2 7c30d5d9 ] ncg 4 size 262143 blocks 253862 bsize 32768 shift 15 mask 0xffff8000 fsize 4096 shift 12 mask 0xfffff000 frag 8 shift 3 fsbtodb 3 minfree 8% optim time symlinklen 120 maxbsize 32768 maxbpg 4096 maxcontig 32 contigsumsize 16 nbfree 31729 ndir 2 nifree 131068 nffree 28 bpg 8192 fpg 65536 ipg 32768 unrefs 0 nindir 4096 inopb 128 maxfilesize 2252349704110079 sbsize 4096 cgsize 16384 csaddr 2088 cssize 4096 sblkno 24 cblkno 32 iblkno 40 dblkno 2088 cgrotor 0 fmod 0 ronly 0 clean 1 metaspace 2616 avgfpdir 64 avgfilesize 16384 flags=20=20=20 check hashes superblock cylinder-groups inodes=20 fsmnt=20=20=20 volname swuid 0 providersize 262143 cs[].cs_(nbfree,ndir,nifree,nffree): (7928,2,32764,21) (7934,0,32768,0) (7934,0,32768,0) (7933,0,32768,7= )=20 blocks in last group 8191 dumpfs: /dev/md0.eli: cylinder group checks failed I think it is this check that triggers the error: https://github.com/freebsd/freebsd-src/blob/525ecfdad597980ea4cd59238e24c85= 30dbcd31d/lib/libufs/cgroup.c#LL248C15-L248C15 fsck cannot find any issues: # fsck /dev/md0.eli=20 ** /dev/md0.eli ** Last Mounted on=20 ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 2 files, 2 used, 253860 free (28 frags, 31729 blocks, 0.0% fragmentation) ***** FILE SYSTEM IS CLEAN ***** --=20 You are receiving this mail because: You are the assignee for the bug.=