2006-08-13: Keith Bennett dixit:
> Finally got a bit of time to do some hacking today so I've
> added the non-dupe code which works by testing the file rid as
> discussed a couple of weeks ago.
>
> This patch also changes rio_rw so that the file type is
> discovered based on its contents rather than just testing the
> suffix. This will be needed by lkarmafs if it uses files in the
> fids0/ directory for generating properties since those files
> don't have suffixes.
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.
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...
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