Re: [PATCH] new syscall: flink

H. Peter Anvin
2003-04-07T20:20:58Z

Bill Rugolsky Jr. wrote:
>
> We discussed this previously; I described the problems with
> existing semantics, and on 2000/020/29 you wrote:
>
> http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=fa.iqoa6kv.flii0q%40ifi.uio.no&rnum=1&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26q%3Dhpa%2Brugolsky%26btnG%3DGoogle%2BSearch
>
> "I'm hoping to fix this in 2.5. The problem is that the way open() is
> done in the VFS *requires* the creation of a new filestructure."
>
> I'm still open to suggestions. ;-)
>

I suggested at one point the following change:

Instead of having the filesystem open() method being passed in a pointer
to already allocated, partially initialized file structure, that code
should be moved to a library function, and instead let the open() method
return a struct file *. That way open() could either return a reference
to an already-allocated file or a new one.

-hpa