Subject: Filesystems vs. device sector sizes
To: None <tech-kern@NetBSD.org>
From: Stephen M. Rumble <stephen.rumble@utoronto.ca>
List: tech-kern
Date: 07/24/2007 21:34:53
Hi all,
I've a quick question regarding how a filesystem should handle
underlying sector sizes. In my case, EFS uses 512-byte sectors, but
most cd-roms deal with 2048-byte blocks. For a read-only filesystem
this should be rather straightforward to handle in the EFS code
itself, although I think I'd have to be careful about deadlocking on
getblk if consecutively requested 512-byte blocks lived within the
same 2048-byte sector. Is this generally the right way to be thinking
about this (making it the concern of the filesystem itself), or should
I take some other approach?
Similarly, whatever happened to Koji Imada's work[1] on DEV_BSIZE and
Bill Studenmund's related changes[2]? Are these not pertinent to what
I'm looking at?
Thanks in advance,
Steve Rumble
[1] http://www.sra.co.jp/people/soda/koji/sectorsize-en.txt
[2] http://mail-index.netbsd.org/tech-kern/1999/10/05/0013.html