xfs
[Top] [All Lists]

[PATCH v3 03/12] xfstests: increase tmpfs memory size

To: xfs@xxxxxxxxxxx
Subject: [PATCH v3 03/12] xfstests: increase tmpfs memory size
From: Junho Ryu <jayr@xxxxxxxxxx>
Date: Wed, 18 Dec 2013 10:15:54 -0800
Cc: branto@xxxxxxxxxx, hughd@xxxxxxxxxx, tytso@xxxxxxx, Junho Ryu <jayr@xxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3VWWA5/YUB5/dDJ86eRThSdD2+7gFFZSzbPGYVv7Y1Q=; b=KTteahuGgih8UqSFNkGecM+fSXqpktx2ra+buGsKPgroya6PPTYcaLCIBUXq0WH4nU dRIMokIX/h7TfG6zUrhbhtl/GZ7vxtbwdiZjkCsz4ekv7mKJxZqoSh9wCa+YF3sFapzG E80dvOhdcBS8/Fo8arvAKYJ8uac/GLkMl8sqq3uiAvinWUUs84J9YSd5+YlsESH/83CK iqzh4SICM7J8hWHOLSRj4z6pC1xEtWbGgPvInR8Xq5EpbIv/x5yiP5ZdIXvyxItKR2zV 2NYHT6uyuwwYu9j9Ilr2ZSU74LwF0AQy5glxHiXxuiAnVsqGasaC55S6GiQM+nD6/Pw0 8GVg==
In-reply-to: <1387390563-27064-1-git-send-email-jayr@xxxxxxxxxx>
References: <1387390563-27064-1-git-send-email-jayr@xxxxxxxxxx>
512M is not enough for generic/129, generic/213 and generic/247.  Raise
default tmpfs size to 1G.

Signed-off-by: Hugh Dickins <hughd@xxxxxxxxxx>
Signed-off-by: Junho Ryu <jayr@xxxxxxxxxx>
---

v2: same as v1

 common/rc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/common/rc b/common/rc
index bfd29c7..73e9f34 100644
--- a/common/rc
+++ b/common/rc
@@ -113,8 +113,8 @@ _mount_opts()
        export MOUNT_OPTIONS="-o acl $GFS2_MOUNT_OPTIONS"
        ;;
     tmpfs)
-       # We need to specify the size at mount, use 512 MB by default
-       export MOUNT_OPTIONS="-o size=512M $TMPFS_MOUNT_OPTIONS"
+       # We need to specify the size at mount
+       export MOUNT_OPTIONS="-o size=${DEFAULT_TMPFS_SIZE_MB}M 
$TMPFS_MOUNT_OPTIONS"
        ;;
     *)
        ;;
@@ -168,6 +168,8 @@ _fsck_opts()
 }
 
 [ -z "$FSTYP" ] && FSTYP=xfs
+# Default tmpfs size in megabytes.
+[ -z "$DEFAULT_TMPFS_SIZE_MB" ] && DEFAULT_TMPFS_SIZE_MB=1024
 [ -z "$MOUNT_OPTIONS" ] && _mount_opts
 [ -z "$MKFS_OPTIONS" ] && _mkfs_opts
 [ -z "$FSCK_OPTIONS" ] && _fsck_opts
-- 
1.8.5.1

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