Re: getting the openmode in netfs callbacks

2002-06-05 Thread Thomas Bushnell, BSG
Roland McGrath <[EMAIL PROTECTED]> writes: > Oh, and people should look at treefs for whatever that's worth. I'm not > sure anyone around knows exactly what Miles's design plans were in that. > To my knowledge it's never been used for anything. But it's obviously related. treefs is supposed to

Re: getting the openmode in netfs callbacks

2002-06-05 Thread Thomas Bushnell, BSG
Roland McGrath <[EMAIL PROTECTED]> writes: > > I would encourage thought about just where netfs is inadequate (more > > broadly than this one issue) and think about a new library that works > > well for it--and for other localish things that aren't really netfs's > > area of expertise. > > netfs

Re: getting the openmode in netfs callbacks

2002-06-05 Thread Roland McGrath
Oh, and people should look at treefs for whatever that's worth. I'm not sure anyone around knows exactly what Miles's design plans were in that. To my knowledge it's never been used for anything. But it's obviously related. ___ Bug-hurd mailing list [

Re: getting the openmode in netfs callbacks

2002-06-05 Thread Roland McGrath
> I would encourage thought about just where netfs is inadequate (more > broadly than this one issue) and think about a new library that works > well for it--and for other localish things that aren't really netfs's > area of expertise. netfs doesn't do a lot. a similar library addressing its ina

Re: getting the openmode in netfs callbacks

2002-06-04 Thread Thomas Bushnell, BSG
Marcus Brinkmann <[EMAIL PROTECTED]> writes: > how am I supposed to get the openmodes in netfs callbacks like > netfs_attempt_read? To echo Roland's comments, and call for something new: netfs is being stretched *way* beyond its intentions here. I would much rather see a *new* library, paralle

Re: getting the openmode in netfs callbacks

2002-06-04 Thread Thomas Bushnell, BSG
Marcus Brinkmann <[EMAIL PROTECTED]> writes: > how am I supposed to get the openmodes in netfs callbacks like > netfs_attempt_read? > > This is critical to implement O_NONBLOCK behaviour correctly. > But the interface is giving me user->user and user->po->np, > but I need user->po->openmodes. N

Re: getting the openmode in netfs callbacks

2002-06-04 Thread Roland McGrath
> how am I supposed to get the openmodes in netfs callbacks like > netfs_attempt_read? You're not. The callback interface just isn't designed to work at that level. netfs was intended for filesystems that work like disk filesystems in their assumptions, like NFS. It would be reasonable to chan

getting the openmode in netfs callbacks

2002-06-04 Thread Marcus Brinkmann
Hi, how am I supposed to get the openmodes in netfs callbacks like netfs_attempt_read? This is critical to implement O_NONBLOCK behaviour correctly. But the interface is giving me user->user and user->po->np, but I need user->po->openmodes. Shall I override the RPC stub, or should we fix the in