[PATCH] 273: don't delete everything if $SCRATCH_MNT isn't set

Christoph Hellwig hch at infradead.org
Wed Apr 11 15:04:33 CDT 2012

On Tue, Apr 10, 2012 at 07:44:45AM +1000, Dave Chinner wrote:
> On Mon, Apr 09, 2012 at 02:36:21PM -0400, Bryan Schumaker wrote:
> > The cleanup function is trapped before _require_scratch() is called, and
> > then expands "rm -rf $SCRATCH_MNT/*" to "rm -rf /*"
> It doesn't need to clean up the scratch device - tests need to mkfs
> it first before using it, so just remove the $tmp* files. The sae
> fix is needed for tests 274 and 275.

Given his address I assume Bryan might test on NFS, which has funky
semantics for the scratch device.

Is that true Bryan?  I really need to dive back into how we handle NFS
in this respect to have a good judgement on this patch.

More information about the xfs mailing list