tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: >512bytes/sector support (Re: Support for 4KB sectors size disk ?)



On Jan 13, 2010, at 3:57 AM, Izumi Tsutsui wrote:

> As I wrote first, we should make a decision of buffercache(9)
> and physio(9) APIs for !512bytes/sector disks.
> Fixing file systems or disk drivers without it just generates
> yet another random inconsisntent patch because there is no "right" fix.
> We have to consider which should be used hardware sector size or
> min I/O size everywhere DEV_BSIZE and "disk block (fsbtodb, blkno etc)"
> are referred.

My preference would be to have the devices themselves report the physical block 
size to be used, and to refer to that value throughout the storage stack when 
performing I/O do that device.  I think the DEV_BSIZE constant should go away.

Perhaps you should write up a proposal to float by Core?

-- thorpej



Home | Main Index | Thread Index | Old Index