xfs
[Top] [All Lists]

[PATCH 15/20] xfstests: fix unreferenced variables in generic/186 and ge

To: david@xxxxxxxxxxxxx, darrick.wong@xxxxxxxxxx
Subject: [PATCH 15/20] xfstests: fix unreferenced variables in generic/186 and generic/187
From: "Darrick J. Wong" <darrick.wong@xxxxxxxxxx>
Date: Thu, 16 Jun 2016 18:47:36 -0700
Cc: linux-btrfs@xxxxxxxxxxxxxxx, Christoph Hellwig <hch@xxxxxx>, fstests@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <146612796204.25024.18254357523133394284.stgit@xxxxxxxxxxxxxxxx>
References: <146612796204.25024.18254357523133394284.stgit@xxxxxxxxxxxxxxxx>
User-agent: StGit/0.17.1-dirty
From: Christoph Hellwig <hch@xxxxxx>

There is not i variable in scope, and the comments suggest the operation
is to be done on ${file}.

Signed-off-by: Christoph Hellwig <hch@xxxxxx>
---
 tests/generic/186 |    2 +-
 tests/generic/187 |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/tests/generic/186 b/tests/generic/186
index 70a0280..5de120a 100755
--- a/tests/generic/186
+++ b/tests/generic/186
@@ -87,7 +87,7 @@ _fragment_freesp()
 
        # Try again anyway
        avail=`_get_available_space $SCRATCH_MNT`
-       $XFS_IO_PROG -fc "pwrite -S 0x65 0 $avail" ${file}.${i}
+       $XFS_IO_PROG -fc "pwrite -S 0x65 0 $avail" ${file}
 
        # Punch out whatever we need
        seq 1 $((nr * 4)) | while read f; do
diff --git a/tests/generic/187 b/tests/generic/187
index 25cbcd9..3f534c8 100755
--- a/tests/generic/187
+++ b/tests/generic/187
@@ -88,7 +88,7 @@ _fragment_freesp()
 
        # Try again anyway
        avail=`_get_available_space $SCRATCH_MNT`
-       $XFS_IO_PROG -fc "pwrite -S 0x65 0 $avail" ${file}.${i}
+       $XFS_IO_PROG -fc "pwrite -S 0x65 0 $avail" ${file}
 
        # Punch out whatever we need
        seq 1 $((nr * 4)) | while read f; do

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