[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Nbd] TRIM stuff



On Fri, Sep 16, 2011 at 09:35:25AM +0100, Alex Bligh wrote:
> 
> 
> --On 16 September 2011 10:26:09 +0200 Wouter Verhelst <w@...112...> wrote:
> 
> > So yesterday I implemented the fallocate(FALLOC_FL_PUNCH_HOLE) stuff for
> > NBD_CMD_TRIM. It's compile-tested, but not yet functionally tested. To
> > be honest, I'm not entirely sure how to test whether a file is sparse in
> > a particular region; anyone?
> 
> I think you can use debugfs's dump_extents command (from memory).

Yes, but that requires an unmounted filesystem. If I want to add this to
the test suite, that's not going to work.

-- 
The volume of a pizza of thickness a and radius z can be described by
the following formula:

pi zz a



Reply to: