Hi!
I used code from Theodore Ts'o filefrag to determine the number of
fragments of a file. Im not sure how well it works on other filesystems than
ext2, but it seems to give sane results on jfs at least. To copy using
O_DIRECT i wrote my own copy-routine using C++. I will release the code when
its usable.
//Simon
On 10/30/07, Christian Kujau <[EMAIL PROTECTED]> wrote:
>
> On Tue, October 30, 2007 12:52, Simon Lundell wrote:
> > That O_DIRECT worked pretty well:
> >
> > Discontinuities before: 1445
> > Discontinuities after: 398
>
> How did you measure the discontinuities on a file/filesystem? And how did
> you copy files with O_DIRECT set? Did you recompile cp(1) with some magic
> flags or did you use special mountflags? If I read
> http://kerneltrap.org/node/7563 correctly, there's no mountoption...
>
> Thanks,
> Christian.
> --
> BOFH excuse #442:
>
> Trojan horse ran out of hay
>
>
-------------------------------------------------------------------------
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