| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH] xfstests 271: use xfs_io to truncate file instead of truncate(1) |
| From: | Eryu Guan <guaneryu@xxxxxxxxx> |
| Date: | Wed, 11 Jan 2012 00:37:48 +0800 |
| Cc: | Eryu Guan <guaneryu@xxxxxxxxx> |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; bh=g8Cxdw+QCZZ5C+dbStIdl+dNp0MIQvDi2+pyXhxS+Ik=; b=IqUEgy4fq99X6wJc+KuHKbl4p7DzVodtASvt3TZ9fKWy7C+o6RQkIlpXqaWicDJ3LO PJCs0jXKaoMPTmsbPHNi6ZV7e18R3zFDXCF92s6S0mrYNzowtjYTdSeJSmLKBUxlqyPQ MOro462TbYu2YCiirCP+nshC6qrMdsbEjvKfw= |
Distros(eg. RHEL5) with older version of coreutils have no truncate(1)
command. Use xfs_io instead to avoid "command not found" failures.
Signed-off-by: Eryu Guan <guaneryu@xxxxxxxxx>
---
271 | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/271 b/271
index 58a7f91..b96d702 100755
--- a/271
+++ b/271
@@ -55,7 +55,7 @@ do
dd if=/dev/zero of=$SCRATCH_MNT/file bs=4k count=1 seek=$((i*10))
done
# truncate last extent
-truncate $SCRATCH_MNT/file --size $((4096* 200))
+$XFS_IO_PROG -F -f -c "truncate $((4096*200))" $SCRATCH_MNT/file
if ! _scratch_unmount; then
echo "failed to umount"
--
1.7.8.2
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | NotificaciÃn webmaster!!, Webmaster ActualizaciÃn Departamento |
|---|---|
| Next by Date: | [PATCH] xfstests 273: Create lost+found to pass _check_scratch_fs, Eryu Guan |
| Previous by Thread: | NotificaciÃn webmaster!!, Webmaster ActualizaciÃn Departamento |
| Next by Thread: | [PATCH] xfstests 273: Create lost+found to pass _check_scratch_fs, Eryu Guan |
| Indexes: | [Date] [Thread] [Top] [All Lists] |