On Tue, Aug 22, 2006, Keith Bennett wrote: > On Tue, Aug 22, 2006, EV wrote: > > 2006-08-22: EV dixit: > > > However, the temp file will be just a head-tail copy of the > > > whole file; just enough data for libtag to work properly. > > > Since this does not allow computing the rid, as mantioned in my > > > previous message about duplicates, my current idea is to > > > compute the rid incrementally in kfs_readdir(). > > > > Mistake: Rather than kfs_readdir(), I wanted to say: kfs_write() > > Okay. That makes sense. > In that case, I think that the implementation should go into > lk_karma_write_file_chunk() rather than kfs_write().
I know that you're on holiday, but I'll have forgotten by the time you get back! I had a quick look at this last night and it seems that you are out of luck. The algorithm makes use of the md5 sum from half-way through the file. In lkarmafs there is no way of knowing where that is until after you've finished writing the file. So I think that the options (for ethernet devices) are as follows: 1. Make ethernet mounted devices read-only. 2. Provide a utility for copying files to the filesystem which calculates the rid and sets it after the file has been copied. 3. Use temporary files and fail on any files larger than a given size. 4. Use temporary files and fail to write the correct rid on any files larger than a given size. If (2) is implemented, then it might as well extract all the other aswell. Note that some kind of utility is also required if the path property is to be set properly. This will be equally true for USB devices. Keith. ------------------------------------------------------------------------- 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
