ext3/ext4 maximum file size experiments

Michael Z
Erstie
Erstie
Beiträge: 12
Registriert: 18. Apr 2011 13:53

ext3/ext4 maximum file size experiments

Beitrag von Michael Z »

It easy to test using holes, but you have to run the tests on a filesystem that has larger maximum file sizes than ext3/ext4, for example btrfs.

Ext3:

Code: Alles auswählen

dd if=/dev/zero of=zero.img bs=1M count=1 seek=5024k
losetup /dev/loop0 zero.img
mkfs.ext3 -N 1000 /dev/loop0
mkdir ext3
mount /dev/loop0 ext3
cd ext3

dd if=/dev/zero of=test bs=1M count=1 seek=2047k # doesn't work
dd if=/dev/zero of=test bs=1M count=1 seek=2043k # works

cd ..
umount ext3
losetup -d /dev/loop0
rm -ri ext3
rm zero.img
Ext4:

Code: Alles auswählen

dd if=/dev/zero of=zero.img bs=1M count=1 seek=5024k
losetup /dev/loop0 zero.img
mkfs.ext4 -N 1000 /dev/loop0
mkdir ext4
mount /dev/loop0 ext4
cd ext3

dd if=/dev/zero of=test bs=1M count=1 seek=16383k # works
dd if=/dev/zero of=test bs=1M count=1 seek=16384k # doesn't work

cd ..
umount ext4
losetup -d /dev/loop0
rm -ri ext4
rm zero.img

Zurück zu „Archiv“