On Mon, Feb 10, 2014 at 01:41:23PM -0500, Josef Bacik wrote:
> 
> 
> On 02/10/2014 01:36 PM, cwillu wrote:
> >IMO, used should definitely include metadata, especially given that we
> >inline small files.
> >
> >I can convince myself both that this implies that we should roll it
> >into b_avail, and that we should go the other way and only report the
> >actual used number for metadata as well, so I might just plead
> >insanity here.
> >
> 
> I could be convinced to do this.  So we have
> 
> total: (total disk bytes) / (raid multiplier)
> used: (total used in data block groups) +
>       (total used in metadata block groups)
> avail: total - (total used in data block groups +
>               total metadata block groups)

The size of global block reserve should be IMO subtracted from 'avail',
this reports the space as free, but is in fact not.

The "used" amount of the global reserve might be included into
filesystem 'used', but I've observed the global reserve used for short
periods of time under some heavy stress, I'm convinced it needs to be
accounted in the df report.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to