[Bug 270632] [ext2fs] files <4096 bytes are corrupted on ext4 filesystems

[email protected] Sun, 24 May 2026 01:08:55 +0000
Newsgroups gmane.os.freebsd.devel.file-systems
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270632

--- Comment #26 from Mark Millard <[email protected]> ---
(In reply to Mark Linimon from comment #25)

# uname -apKU
FreeBSD generic 14.3-RELEASE FreeBSD 14.3-RELEASE
releng/14.3-n271432-8c9ce319fef7 GENERIC arm64 aarch64 1403000 1403000

# freebsd-version -kru
14.3-RELEASE
14.3-RELEASE
14.3-RELEASE

So: pre-patches even.

With e2fsprogs already installed for use by my old
test script . . .

# kldload ext2fs
# ./writes_nulls_check.sh 
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating FreeBSD-kmods repository catalogue...
FreeBSD-kmods repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
mke2fs 1.47.4 (6-Mar-2025)
warning: Unable to get device geometry for /dev/md0
Creating filesystem with 131072 4k blocks and 32768 inodes
Filesystem UUID: a951abbd-fdb3-44db-b2ae-d839b448d7b9
Superblock backups stored on blocks: 
        32768, 98304

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

00000000  68 65 6c 6c 6f 20 77 6f  72 6c 64 0a              |hello world.|
0000000c

That last 2 (non-blank) lines are correct.

After freebsd-update:

# uname -apKU
FreeBSD generic 14.3-RELEASE-p14 FreeBSD 14.3-RELEASE-p14 GENERIC arm64 aarch64
1403000 1403000

# freebsd-version -kru
14.3-RELEASE-p14
14.3-RELEASE-p14
14.3-RELEASE-p14

# kldload ext2fs

# ./writes_nulls_check.sh
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating FreeBSD-kmods repository catalogue...
FreeBSD-kmods repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
mke2fs 1.47.4 (6-Mar-2025)
warning: Unable to get device geometry for /dev/md0
Creating filesystem with 131072 4k blocks and 32768 inodes
Filesystem UUID: 8646a459-ac0e-4740-bd16-79ac1ca532d3
Superblock backups stored on blocks: 
        32768, 98304

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

00000000  68 65 6c 6c 6f 20 77 6f  72 6c 64 0a              |hello world.|
0000000c

So: Still working.

-- 
You are receiving this mail because:
You are the assignee for the bug.