Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 08 Apr 2023 00:25:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        fs@FreeBSD.org
Subject:   [Bug 270632] [ext2fs] files <4096 bytes are corrupted on ext4 filesystems
Message-ID:  <bug-270632-3630-EoxOJZNz8y@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-270632-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-270632-3630@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270632

--- Comment #4 from Rajeev Pillai <rajeev_v_pillai@yahoo.com> ---
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-270632-3630-EoxOJZNz8y>