From nobody Sat Apr 8 00:25:46 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 4PtbcW4942z44NkS for ; Sat, 8 Apr 2023 00:25:47 +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 4PtbcV74fMz3hVK for ; Sat, 8 Apr 2023 00:25:46 +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=1680913547; 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=qiVuc22Bj3d8AloGqY3fArt2/ktgQwZFvnz55gceBJI=; b=JQjs8VuFQytKvJ1SCtbG+9cOVGxUYJ3wImstg25TlATdVEXuydfM/jJt9rZBRavDbmPjs9 qJOk1AX5Q5dHIIQ9DP+2laKkTL5JoJNx/is8KtqM9EpcAhEPuDA8Qd7cyXZK/PWHJEY0bl ApDsXDPHD4ds88cSCWt179BZpZ2oaBViDwTW7lTzkKODrn2gcl1Yr2pfvFYGVACkiSY7Ou qpGOOrdcrAFgG5wjinrscKlqfapnmlkc9/3vXj+aNwgIeazxu0FAF6GkYIQ8knzu63sYP2 aEVDX1JdmmChVm8aaYK2+Q8izuleN0vxvIaTjCs4f9koMC3UoWcx8wykZFsd1g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1680913547; a=rsa-sha256; cv=none; b=mVULNc+VmqBtLRRQ/8k39/GdWVsvB0GOu0Sq8kfbmP+4zXNizsjETQc346wc3IejHaeIx7 eHrdTjWHsBzAWVFclMDNYZ+MYe+ApPXMgpWlqBs5d/yh2eClVMXy4d7J6Ws+7gAYA0Ngog APx4+amAdQ/0UvIy1ZMOuB24YiyS9UzyIuC5SEWNlvcNEXHK6lthpOPSdQIvXNKZcokQa3 usTmGPIHQZFwAuSNfgei/d8C20IL1CgVR3XcBoC71kcG8tnHAEx3J/QnXWwaK7ZfDaSTXE 8AI82jQuf8yO4bbBvlqUC2yMczXDdAU/t19NoZDrku3tda5AfFZ63bNca0oqIw== 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 4PtbcV5mH3z154t for ; Sat, 8 Apr 2023 00:25:46 +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 3380PkaF068209 for ; Sat, 8 Apr 2023 00:25:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3380PkLh068207 for fs@FreeBSD.org; Sat, 8 Apr 2023 00:25:46 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 270632] [ext2fs] files <4096 bytes are corrupted on ext4 filesystems Date: Sat, 08 Apr 2023 00:25:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: rajeev_v_pillai@yahoo.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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=3D270632 --- Comment #4 from Rajeev Pillai --- I don't think the type of drive matters. Here's the result on: ``` $ uname -a FreeBSD x202e.localdomain 13.1-RELEASE-p6 FreeBSD 13.1-RELEASE-p6 GENERIC a= md64 $=20 ``` Using an md(4) device as you have: ``` root@x202e:/tmp # mdconfig -s 512M md0 root@x202e:/tmp # mke2fs -t ext4 /dev/md0 mke2fs 1.47.0 (5-Feb-2023) Creating filesystem with 131072 4k blocks and 32768 inodes Filesystem UUID: 72469c07-7520-4c45-ae18-4a0129c7300b Superblock backups stored on blocks:=20 32768, 98304 Allocating group tables: done=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 Writing inode tables: done=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 Creating journal (4096 blocks): done Writing superblocks and filesystem accounting information: done root@x202e:/tmp # mount -t ext2fs /dev/md0 /mnt root@x202e:/tmp # echo 'hello world' >/mnt/a.txt root@x202e:/tmp # ed -s /mnt/a.txt <<\EoF > 1s/./&/ > wq > EoF root@x202e:/tmp # cat /mnt/a.txt hello world root@x202e:/tmp # umount /mnt root@x202e:/tmp # mount -r -t ext2fs /dev/md0 /mnt root@x202e:/tmp # hd /mnt/a.txt=20 00000000 00 00 00 00 00 00 00 00 00 00 00 00 |............| 0000000c root@x202e:/tmp #=20 ``` I will try with the latest -CURRENT snapshot tomorrow. --=20 You are receiving this mail because: You are the assignee for the bug.=