Re: [PATCH] new syscall: flink

H. Peter Anvin (hpa@zytor.com)
Mon, 07 Apr 2003 13:32:32 -0700


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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/