Re: file ID redesign proposal

Ingo Molnar (mingo@pc7537.hil.siemens.at)
Wed, 26 Nov 1997 16:02:54 +0100 (MET)


On Wed, 26 Nov 1997, Jeremy Fitzhardinge wrote:

> In other words, I really don't think you can get away without
> reproducing this behaviour.

thinking about it (iBCS, lotsa legacy apps), what about Plan B :)

sys_old_open()
sys_new_open()

old_open() scans the 'free IDs' ringlist, which will be somewhat slower
than a bitmap scan, but i expect it to be reasonably fast for most/all
apps. old_open() is the default open() syscall, compatibility interfaces
(iBCS2) use it as a default as well.

new_open() returns a random file ID. Eg. Apache and all the
highperformance servers could use this one.

everything would be O(1), 'except' old_open() and old_dup()/dup2(). Bad
idea?

-- mingo