tech-kern archive

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

Re: blocksizes

On Mon, Feb 01, 2010 at 02:53:20AM +0900, Izumi Tsutsui wrote:

> Why do you leave fsbtodb() to use fs_fsbtodb for userland?
> To have less changes?

Kernel uses DEV_BSIZE devices and needs a proper translations function.
Userland uses device block sizes and needs a proper translation function.
Only the translation function (==fsbtodb()) needs to be implemented
differently because of the different environment. Other parts of the code,
shared by kernel and userland, simply use this abstraction.

This is not about redesigning the driver API and only marginally about
cleaning up old code.

                                Michael van Elst
                                "A potential Snark may lurk in every tree."

Home | Main Index | Thread Index | Old Index