All of lore.kernel.org
 help / color / mirror / Atom feed
From: Xing Gu <gux.fnst@cn.fujitsu.com>
To: fstests@vger.kernel.org
Cc: Xing Gu <gux.fnst@cn.fujitsu.com>
Subject: [PATCH v2] xfs/111: fix cp of missing file
Date: Mon, 22 Dec 2014 16:41:03 +0800	[thread overview]
Message-ID: <1419237663-11015-1-git-send-email-gux.fnst@cn.fujitsu.com> (raw)
In-Reply-To: <1419061802-27324-1-git-send-email-gux.fnst@cn.fujitsu.com>

After installing the test suite, src directory only contains binary
programs in the final building directory. Here executing "cp src/itrash.c
$SCRATCH_MNT/${I}" will output "cp: cannot stat 'src/itrash.c': No
such file or directory" error message. Fix it.

Signed-off-by: Xing Gu <gux.fnst@cn.fujitsu.com>
---
 tests/xfs/111 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/xfs/111 b/tests/xfs/111
index bedead8..f33f339 100755
--- a/tests/xfs/111
+++ b/tests/xfs/111
@@ -53,7 +53,7 @@ echo Create some files
 I=0
 while [ $I -lt 1000 ]
 do
-    cp src/itrash.c $SCRATCH_MNT/${I}
+    $XFS_IO_PROG -f -c "pwrite 0 512" $SCRATCH_MNT/${I} > /dev/null
     let I=$I+1
 done
 umount $SCRATCH_DEV
-- 
1.9.3


      parent reply	other threads:[~2014-12-22  8:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-20  7:50 [PATCH] xfs/111: fix cp of missing file Xing Gu
2014-12-21 22:09 ` Dave Chinner
2014-12-22  2:09   ` gux.fnst
2014-12-22  8:41 ` Xing Gu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1419237663-11015-1-git-send-email-gux.fnst@cn.fujitsu.com \
    --to=gux.fnst@cn.fujitsu.com \
    --cc=fstests@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.