Re: block discard.

Chris Mason
2008-08-08T13:56:32Z

On Fri, 2008-08-08 at 14:43 +0100, David Woodhouse wrote:
> Playing with the trim/punch/discard support, I tried the patch below. It
> see it getting invoked at times, but when I create a large file and then
> delete it, I don't see it getting invoked _enough_. And when I grep the
> block device for the contents of the file, they're still there.
>
> I have a suspicion my added code is only getting invoked for
> metadata/tree extents, not the actual data extents. What'd I miss?
>

So you mkfs ; dd large file ; rm large file ; look for discards?

Try rm large file ; sync ; sync; look for discards

-chris