xfs
[Top] [All Lists]

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

To: xfs@xxxxxxxxxxx
Subject: [PATCH v2 03/12] xfstests: increase tmpfs memory size
From: Junho Ryu <jayr@xxxxxxxxxx>
Date: Tue, 17 Dec 2013 14:18:33 -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=QMeWXNMv623dgsiluH6JjnT/x3Sr6ftxziB1dSudKk8=; b=b07gYTICjBDcsIfaNNPsmAl1Ynz6TWPSaKUUw6JOet4Z2fXJRuTBWPQ5ajHzkshcck oFiBi+q8US+FQSOGqfG62HD7NrsW/P8ytW7CVltcqtlYinG/5ioPeKrFzr+/AvX8FDic qX21gI/aF9hFxRPaW4eUOdtEWn8LvH/TjM4MwTFxXHurxoTrn4bZKqEf9nvgLCCCutJo sT69VZt9D/6uiuyfrAufsJ9/ddtq5zpNbnXdOih9oZwriUjG6XWFpSmrTbHBId0Inj1Y 7pFmo1qKCXDVhsGTrUoqqjKyRYRWsyJtEH8RtIf7I2BstdnMuW9XbxfkgrgL4J+TQxCd LWaA==
In-reply-to: <1387318722-3050-1-git-send-email-jayr@xxxxxxxxxx>
References: <1387318722-3050-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 c78356e..45a45b0 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>