A sample tool how to use the new ioctl

2011-12-19 Thread David Sterba
This is a standalone tool I've used to exercise the ioctl, simply pass the name of a file and see the result. The numbers are a rough estimate. It also takes the range arguments, but the ratio will be bogus due to comparison to whole file (st_blocks), an exact extent length from fiemap/filefrag is

Re: A sample tool how to use the new ioctl

2011-12-19 Thread Chris Mason
On Mon, Dec 19, 2011 at 03:25:39PM +0100, David Sterba wrote: This is a standalone tool I've used to exercise the ioctl, simply pass the name of a file and see the result. The numbers are a rough estimate. It also takes the range arguments, but the ratio will be bogus due to comparison to

Re: A sample tool how to use the new ioctl

2011-12-19 Thread David Sterba
On Mon, Dec 19, 2011 at 09:47:06AM -0500, Chris Mason wrote: On Mon, Dec 19, 2011 at 03:25:39PM +0100, David Sterba wrote: This is a standalone tool I've used to exercise the ioctl, simply pass Could you please add this to btrfs filesystem stat filename Here it is, but I haven't really