From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111]) by oss.sgi.com (Postfix) with ESMTP id AC3B77F80 for ; Tue, 10 Dec 2013 14:12:19 -0600 (CST) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by relay1.corp.sgi.com (Postfix) with ESMTP id 7A3ED8F8033 for ; Tue, 10 Dec 2013 12:12:19 -0800 (PST) Received: from mail-ie0-f201.google.com (mail-ie0-f201.google.com [209.85.223.201]) by cuda.sgi.com with ESMTP id WWC7Yp6Yos5GuCYp (version=TLSv1 cipher=RC4-SHA bits=128 verify=NO) for ; Tue, 10 Dec 2013 12:12:18 -0800 (PST) Received: by mail-ie0-f201.google.com with SMTP id at1so1116096iec.4 for ; Tue, 10 Dec 2013 12:12:18 -0800 (PST) From: Junho Ryu Subject: [PATCH 03/10] xfstests: _scratch_mkfs_sized() for tmpfs Date: Tue, 10 Dec 2013 12:11:54 -0800 Message-Id: <1386706321-15795-4-git-send-email-jayr@google.com> In-Reply-To: <1386706321-15795-1-git-send-email-jayr@google.com> References: <1386706321-15795-1-git-send-email-jayr@google.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: xfs@oss.sgi.com Cc: tytso@mit.edu, hughd@google.com, branto@redhat.com, Junho Ryu From: Hugh Dickins _scratch_mkfs_sized() avoid blockdev and update MOUNT_OPTIONS with required size on tmpfs, so those tests using it can now run. Signed-off-by: Hugh Dickins Signed-off-by: Junho Ryu --- common/rc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/rc b/common/rc index a2005c9..83d56a1 100644 --- a/common/rc +++ b/common/rc @@ -590,7 +590,7 @@ _scratch_mkfs_sized() blocks=`expr $fssize / $blocksize` - if [ "$HOSTOS" == "Linux" ]; then + if [ "$HOSTOS" == "Linux" -a "$FSTYP" != "tmpfs" ]; then devsize=`blockdev --getsize64 $SCRATCH_DEV` [ "$fssize" -gt "$devsize" ] && _notrun "Scratch device too small" fi @@ -611,6 +611,9 @@ _scratch_mkfs_sized() btrfs) $MKFS_BTRFS_PROG $MKFS_OPTIONS -b $fssize $SCRATCH_DEV ;; + tmpfs) + export MOUNT_OPTIONS="-o size=$fssize $TMPFS_MOUNT_OPTIONS" + ;; *) _notrun "Filesystem $FSTYP not supported in _scratch_mkfs_sized" ;; -- 1.8.5.1 _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs