xfs
[Top] [All Lists]

Re: [PATCH] xfsqa: define resblks for tests near ENOSPC

To: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Subject: Re: [PATCH] xfsqa: define resblks for tests near ENOSPC
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Fri, 5 Mar 2010 09:04:21 +1100
Cc: xfs@xxxxxxxxxxx
In-reply-to: <20100304135623.GB31753@xxxxxxxxxxxxx>
References: <1267667254-7971-1-git-send-email-david@xxxxxxxxxxxxx> <20100304135623.GB31753@xxxxxxxxxxxxx>
User-agent: Mutt/1.5.18 (2008-05-17)
On Thu, Mar 04, 2010 at 08:56:23AM -0500, Christoph Hellwig wrote:
> On Thu, Mar 04, 2010 at 12:47:34PM +1100, Dave Chinner wrote:
> > +   # fix the reserve block pool to a known size so that the enospc
> > +   # calculations work out correctly.
> > +   xfs_io -x -c "resblks 1024" $SCRATCH_MNT > /dev/null 2>&1
> 
> What about a _scratch_resvblks helper - that means we could also
> add noops for non-xfs filesystems there easily.

Good idea. I'll rework the patch to do this.

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>