2006-08-14: Keith Bennett dixit:
> On Sun, Aug 13, 2006, EV wrote:
> > Thanks!  I'll give it a try tomorrow.
> > 
> > So now "rio_rw.c" has almost all the needed code to get the tags
> > of a (temporary or fids0/*/??0) file and update the requiered
> > properties of some fid.  Therefore, in order to implement full
> > tune copy-to capabilities in lkarmafs, I propose to add a new
> > function in rio_rw.c such as:
> > 
> >   int lk_rio_updatePropsFromTags(
> >              int rio, uint32_t fid, const char *filename);
> > 
> > For a given `fid', lkarmafs will decide whether to create a
> > (head-tail) temp file somewhere or to just use the fids0/*/??0
> > name for the `filename' argument.  Unless someone has some 
> > comments against, I'll start with this idea tomorrow.
> 
> I already implemented this at the weekend. I haven't submitted
> anything yet because I didn't know what you wanted to do about
> ethernet files. The easiest and most reliable method would be
> to create temporary files but I didn't know if you were happy
> to settle for the extra overhead.  I'll post some code this
> evening.

O.K. I wait for it, thanks.  The patch is only for libkarma? or 
also for lkarmafs?

> > It's a pity that we can not use the just-uploaded file under
> > the (virtual) lkarmafs filesystem hierarchy, because this
> > would make things much simpler (in lkarmafs).  I'll dig a bit
> > more into the low-level FUSE lib functions to see if there is
> > some additional possibility that we've missed so far...
> 
> Okay.

There seem to be some possibilities.  The FUSE lib has some calls 
to process (low-level) fuse commands; for instance:

  /** Process a single command */
  void fuse_process_cmd(struct fuse *f, struct fuse_cmd *cmd);

On the other hand, with the -d option, fuse prints all the
processed commands.  So I'm trying to do all the work carried out
after return from kfs_release() using individual command calls.  
The hope is to get the (virtual) file accesible before returning
from kfs_release().  I'll let you know how it goes.

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