Re: block discard.

David Woodhouse
2008-08-08T14:10:17Z

On Fri, 2008-08-08 at 15:05 +0100, David Woodhouse wrote:
> On Fri, 2008-08-08 at 09:56 -0400, Chris Mason wrote:
> > So you mkfs ; dd large file ; rm large file ; look for discards?
> >
> > Try rm large file ; sync ; sync; look for discards
>
> Yeah, I did that. The actual data extent isn't getting removed.

Oh, you really did mean _two_ syncs. And then yes, I see why it isn't
working; mea culpa.

__free_extent for 0xc00000-0xc65000
num_bytes 413696, map_length 8388608, stripes 1
Discard from stripe 0: 24576-808
bio too big device ftla (808 > 255)

--
David Woodhouse Open Source Technology Centre
David.Woodhouse@intel.com Intel Corporation