Skip to contentSkip to conversation

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

PATCH In review Tao Ma 3 participants 3 messages Sep 14, 2012 – Sep 21, 2012

lore
Share & tools
lore

Tao Ma

author
#0 lore raw

PATCH 1/1 xfstests: 275, Don't remove all the files in SCRATCH_MNT.

From: Tao Ma <[email protected]>

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 <[email protected]>
---
 275 |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
275 +0 -2
index 69b2895..06db775 100755
@@ -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"
 
Signature · 6 lines
1.7.1

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Tao Ma

From: Tao Ma <[email protected]>

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/*".

Oh, sigh, after all the review how did I miss that :/

SGI: I won't be pushing this to kernel.org trees per the emails yesterday.

Thanks,
-Eric

Quoted 12 lines
Cc Eric Sandeen <[email protected]>
---
 275 |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
275 +0 -0
index 69b2895..06db775 100755

275 umount $SCRATCH_DEV 2>/dev/null · line 62

Quoted 8 lines
275 +0 -2
@@ -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"
 

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#2 lore raw
In reply to Tao Ma
Quoted 10 lines · Tao Ma

From: Tao Ma <[email protected]>

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 <[email protected]>

Committed to git://oss.sgi.com/xfs/cmds/xfstests.git, master branch.

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs