[lkml]   [1997]   [Nov]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: file ID redesign proposal

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 :)


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

-- mingo

 \ /
  Last update: 2005-03-22 13:40    [W:0.079 / U:7.560 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site