Re: File system blocks alignment

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Fri, 01 Jan 2010 11:26:10 +0000
In message <200912311712.18347.pieter_at_degoeje.nl>, Pieter de Goeje writes:

>Ok, as Miroslav wrote, it does not report 4k sectors:

If you care to, and have the time, try the following:


for N in (0...7)
	for M in (0..2)
		create partition starting at byte offset N*512
		newfs -f 4096 -b 32768 /dev/foo
		mount /dev/foo /mnt
		time restore(8) a filesystem into it.
		unmount /mnt
		time fsck_ffs /dev/foo
		mount /dev/foo /mnt
		time tar cf /dev/null  /mnt
		unmount /mnt

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk_at_FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
Received on Fri Jan 01 2010 - 10:25:34 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:59 UTC