2006-08-14: Keith Bennett dixit:
> On Mon, Aug 14, 2006, EV wrote:
> > > I was going to implement the temporary file stuff for ethernet
> > > this evening but was suprised to find that the fuse_file_info
> > > structure doesn't have an entry for filesystem-specific data. I
> > > guess that the filehandle could be pressed into action, but
> > > I'll leave it a few days in case you find a better way from
> > > within FUSE.
> > 
> > The standard approach is to interpret the fuse_file_info
> > filehandle field (fi->fh) as a pointer to some ad-hoc structure
> > which is allocated on open() and freed on release().  This allows
> > passing along everything needed. In our case, another possibility
> > is to give the temporary file a name derived from the pathname
> > (e.g., changing the '/' with '+' or something).
> 
> But if that is the intention then why wasn't it made a pointer
> in the first place?

Historic reasons, I guess...

> Creating a structure would be easier. That way you can pass
> around the fid, open filehandle and filename.

Yes, I'll pobably go this way.

> > I'll take care of this myself.  I want first to convince
> > myself that it is not possible to access the just created
> > (virtual) lkarmafs file...
> 
> Okay. If a temporary file is used then the whole thing must be
> copied in order to generate a correct rid.

Thanks for remainding!

Best,
EV.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-karma-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-karma-devel

Reply via email to