Don't delete test files if they are corrupt.
authorLachlan McIlroy <lachlan@sgi.com>
Thu, 20 Sep 2007 04:15:11 +0000 (04:15 +0000)
committerLachlan McIlroy <lachlan@sgi.com>
Thu, 20 Sep 2007 04:15:11 +0000 (04:15 +0000)
Merge of master-melb:xfs-cmds:29726a by kenmcd.

  Don't delete test files if they are corrupt.

137
138
139

diff --git a/137 b/137
index 28352ebe016198c0622e0337cf6bb7650d84638b..a1caed3ed56395f62b625448edfcf4c6a9ee90dd 100755 (executable)
--- a/137
+++ b/137
@@ -71,9 +71,12 @@ do
                        elif xfs_bmap $file | grep 'hole' > /dev/null
                        then
                                echo corrupt file $file - contains holes
+                       else
+                               rm -f $file
                        fi
+               else
+                       rm -f $file
                fi
-               rm -f $file
        fi
        i=`expr $i + 1`
 done
diff --git a/138 b/138
index c0c37719ee86302c134399f17b4e679923a78550..282ba5d792945e2b999527776948f5d9d6d39ecd 100755 (executable)
--- a/138
+++ b/138
@@ -72,9 +72,12 @@ do
                        elif xfs_bmap $file | grep 'hole' > /dev/null
                        then
                                echo corrupt file $file - contains holes
+                       else
+                               rm -f $file
                        fi
+               else
+                       rm -f $file
                fi
-               rm -f $file
        fi
        i=`expr $i + 1`
 done
diff --git a/139 b/139
index 386dcbc433c5b928ad2eb9ca3ff8e6b437187cf6..ed1d6b93234741a1259b2e2275cf34af16e90a13 100755 (executable)
--- a/139
+++ b/139
@@ -72,9 +72,12 @@ do
                        elif xfs_bmap $file | grep 'hole' > /dev/null
                        then
                                echo corrupt file $file - contains holes
+                       else
+                               rm -f $file
                        fi
+               else
+                       rm -f $file
                fi
-               rm -f $file
        fi
        i=`expr $i + 1`
 done