<div dir="ltr"><div class="gmail_default" style="font-size:small">Thanks a lot for the solution.<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div class="gmail_default" style="font-size:small;display:inline">Mukul<br></div></div></div></div>
<br><div class="gmail_quote">On Wed, Nov 19, 2014 at 5:49 AM, Brian Foster <span dir="ltr"><<a href="mailto:bfoster@redhat.com" target="_blank">bfoster@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, Nov 19, 2014 at 09:35:18AM +1100, Dave Chinner wrote:<br>
> On Tue, Nov 18, 2014 at 08:32:07AM -0500, Brian Foster wrote:<br>
> > On Tue, Nov 18, 2014 at 06:05:58PM +0530, Mukul Malhotra wrote:<br>
> > > Hello,<br>
> > ><br>
> > > Does xfs have reserved blocks too, like ext* ? if yes, how can they be<br>
> > > determined ?<br>
> > ><br>
> ><br>
> > XFS reserves blocks internally such that it can perform operations when<br>
> > all free space is consumed, etc. It looks like 5% is the default.<br>
><br>
> Not quite.<br>
><br>
> /*<br>
> * We default to 5% or 8192 fsbs of space reserved, whichever is<br>
> * smaller. This is intended to cover concurrent allocation<br>
> * transactions when we initially hit enospc. These each require a 4<br>
> * block reservation. Hence by default we cover roughly 2000 concurrent<br>
> * allocation reservations.<br>
> */<br>
><br>
> So, in most cases, there are 32MB of reserved blocks available for<br>
> internal emergency use.<br>
><br>
<br>
</span>Yep, I glossed right over the hard cap... thanks. ;)<br>
<span class="HOEnZb"><font color="#888888"><br>
Brian<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
> > I don't think it's "like ext4," however, which reserves blocks for the<br>
> > root user. I don't believe the reserved blocks in XFS are accessible for<br>
> > file allocation by any user unless the reserve pool is modified as such.<br>
><br>
> Most definitely not "like ext4". The reserved blocks are considered<br>
> "used space" (i.e. not available to any user) and are reported as<br>
> such in statfs() output (e.g. via df).<br>
><br>
> Cheers,<br>
><br>
> Dave.<br>
> --<br>
> Dave Chinner<br>
> <a href="mailto:david@fromorbit.com">david@fromorbit.com</a><br>
</div></div></blockquote></div><br></div></div>