On Tue, 2007-10-30 at 12:35 +0000, Dave Kleikamp wrote: > > > > That is on a directory that the ordinary 'copy' could not defragment > > more. I had a little trouble aligning buffers and writing files whose > > length was not a multiple of the required alignment. > > I didn't think about those limitations when I suggested it, but that is > something you need to be careful about. Allocating the buffers with > posix_memalign() should take care of the first concern.
As far as the file length, you could pad the file to the next full block, then truncate it to the correct size. -- David Kleikamp IBM Linux Technology Center ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Jfs-discussion mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jfs-discussion
