xfs
[Top] [All Lists]

[PATCH 04/10] xfstests: increase tmpfs memory size

To: xfs@xxxxxxxxxxx
Subject: [PATCH 04/10] xfstests: increase tmpfs memory size
From: Junho Ryu <jayr@xxxxxxxxxx>
Date: Tue, 10 Dec 2013 12:11:55 -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=8CTsEL0+OvUZqorX4HA+pXQ4tvBrKDHlkrUoP+QPMQE=; b=VUdb2m7SxJpvV0zRzmwaKdBfW22v0OZ4A9PHBQfAxoP662ymMdCvBfyn/TysdxoNnn CdeAFor2VM7v9B/rvYnb3nkh8kMu525285sXGJ8LMBQOKyVSrGQOfEOfiCUHU3VrxbLH m23zRyJC25meGZJGn12PmboQ4Pt3TKsagTLADnXn87TpgwPXTbQ5T1ZskBZyqX5KWvbN zwiFsMyANqEkEpvuMFJjyHY2P/189f2pKcPv++rEv4cXLe1RiKnqWQEE5v2GT6lwYJ8N B+4ogg48LrZ+nlvCRToBQiJkU6sHURWAo0fYhhFBbuL0yNMUiyQDkI9Nl7kh/r/d3cbB bJ6Q==
In-reply-to: <1386706321-15795-1-git-send-email-jayr@xxxxxxxxxx>
References: <1386706321-15795-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>
---
 common/rc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/common/rc b/common/rc
index 83d56a1..57f7ccd 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>