xfs
[Top] [All Lists]

[PATCH 2/3] xfstests: fix typo in 260'th test

To: linux-fsdevel@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx
Subject: [PATCH 2/3] xfstests: fix typo in 260'th test
From: Dmitry Monakhov <dmonakhov@xxxxxxxxxx>
Date: Tue, 8 Nov 2011 12:41:54 +0400
Cc: hch@xxxxxx, david@xxxxxxxxxxxxx, Dmitry Monakhov <dmonakhov@xxxxxxxxxx>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=IoM1ykMLVPD6GbFdGN7V0fBc11lG3scNXoxHC5o6kEA=; b=YT1t9Pb2RbvFxtNdhajCtbclRy8yECk1/9dtl5atHH4XFu3JXgFk12SoEkk+U+Em39 juOEiv4G87IVTLcbDcyh3UOLTBEalSy2j3+fmyuAsXyr1iSUmAOmc2vQJgyoPB14NQVP 8T/xA2yPzyO6R+isKBLH4GPLS7jrnKGU3p8rE=
In-reply-to: <1320741715-32692-1-git-send-email-dmonakhov@xxxxxxxxxx>
References: <1320741715-32692-1-git-send-email-dmonakhov@xxxxxxxxxx>
Sender: Dmitry Monakhov <dmonlist@xxxxxxxxx>
dd should not have count argument because it suposed to work untill ENOSPC.
Also it is reasonable to log dd's output, do that for both 269'th and 270'th
tests

Signed-off-by: Dmitry Monakhov <dmonakhov@xxxxxxxxxx>
---
 269 |    4 ++--
 270 |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/269 b/269
index 61e83ad..206492b 100755
--- a/269
+++ b/269
@@ -53,8 +53,8 @@ _workout()
        for ((i=0; i < num_iterations; i++))
        do
                # File will be opened with O_TRUNC each time
-               dd if=/dev/zero of=$SCRATCH_MNT/SPACE_CONSUMER bs=1M count=1 \
-                       > /dev/null 2>&1
+               dd if=/dev/zero of=$SCRATCH_MNT/SPACE_CONSUMER bs=1M \
+                       >> $here/$seq.full 2>&1
                sleep $enospc_time
        done
        kill $pid
diff --git a/270 b/270
index ed1e31e..e45029f 100755
--- a/270
+++ b/270
@@ -63,7 +63,7 @@ _workout()
                # File will be opened with O_TRUNC each time
                su $qa_user -c "dd if=/dev/zero \
                        of=$SCRATCH_MNT/SPACE_CONSUMER bs=1M " \
-                       > /dev/null 2>&1
+                       >> $here/$seq.full 2>&1
                sleep $enospc_time
        done
 
-- 
1.7.1

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