xfs
[Top] [All Lists]

[PATCH 1/2] xfstests: 083 make variable filesize as size in bytes

To: xfs@xxxxxxxxxxx
Subject: [PATCH 1/2] xfstests: 083 make variable filesize as size in bytes
From: Eryu Guan <guaneryu@xxxxxxxxx>
Date: Fri, 4 Nov 2011 10:38:03 +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=WRjEdOt4mi6zkiiaqYJ3k3klu3DYqchPrgetfzNO07s=; b=rfg9TA5Q9ey8V6A0GWNtDPOG8hzYxMoq0keH9nU4nSYmgFXqj9TjqxsK59JrzOh+Br SNGTmS1IiFiRhQfEqbKjfBoYicXMGLs/349qAJZ5HF8XSYCxXMoI0hyQHgEMDYawx1/a To1zge3PrXbXsARfWgMX3kzJTxv8fx5npeZRU=
The first argument of _scratch_mkfs_sized() should be file system size
in bytes, so '100m' is not a valid number, and the 'expr' expression in
_scratch_mkfs_sized() complains 'non-numeric argument' about it.

Signed-off-by: Eryu Guan <guaneryu@xxxxxxxxx>
---
 083 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/083 b/083
index 441284e..e0670b9 100755
--- a/083
+++ b/083
@@ -91,7 +91,7 @@ workout()
 
 echo "*** test out-of-space handling for random write operations"
 
-filesize=100m
+filesize=`expr 100 \* 1024 \* 1024`
 agcount=6
 numprocs=15
 numops=1500
-- 
1.7.7.1

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