xfs
[Top] [All Lists]

[PATCH] xfstests: 275, Don't remove all the files in SCRATCH_MNT.

To: xfs@xxxxxxxxxxx
Subject: [PATCH] xfstests: 275, Don't remove all the files in SCRATCH_MNT.
From: Tao Ma <tm@xxxxxx>
Date: Fri, 14 Sep 2012 19:03:12 +0800
Cc: Eric Sandeen <sandeen@xxxxxxxxxxx>
Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tao.ma; s=default; h=Message-Id:Date:Subject:Cc:To:From; bh=HGe+hq3B14QoyWYHklqmSyN9kafQgYXES2n5dWR5Mxk=; b=pO1G4Fwx10mCvqeseqTpw8zi13hpxaXVk2Xu9CmyufhFcWW7eQSM4/HOi7FQKbgohE+9c36LwjcJYwFWzHwuvWx+W3WgIjQY8Zg+/wpk6bxAtkWKqWHmozwFy+8FfOc0;
From: Tao Ma <boyu.mt@xxxxxxxxxx>

After the volume is mkfsed, it should have no other files that
need to be rmed. And what's more, it makes ext4 complain since
lost+found is also removed.

So remove this useless "rm -rf $SCRATCH_MNT/*".

Cc: Eric Sandeen <sandeen@xxxxxxxxxxx>
Signed-off-by: Tao Ma <boyu.mt@xxxxxxxxxx>
---
 275 |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/275 b/275
index 69b2895..06db775 100755
--- a/275
+++ b/275
@@ -57,8 +57,6 @@ umount $SCRATCH_DEV 2>/dev/null
 _scratch_mkfs_sized $((2 * 1024 * 1024 * 1024)) >>$seq.full 2>&1
 _scratch_mount
 
-rm -rf $SCRATCH_MNT/*
-
 dd if=/dev/zero of=$SCRATCH_MNT/tmp1 bs=256K count=1 >>$seq.full 2>&1
 [ $? -ne 0 ] && _fail "Error creating file"
 
-- 
1.7.1

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