From patchwork Wed Feb 10 01:49:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Theodore Ts'o X-Patchwork-Id: 8267831 Return-Path: X-Original-To: patchwork-fstests@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 27A3DBEEE5 for ; Wed, 10 Feb 2016 01:50:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4C532202B8 for ; Wed, 10 Feb 2016 01:50:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C28D620220 for ; Wed, 10 Feb 2016 01:50:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756129AbcBJBuS (ORCPT ); Tue, 9 Feb 2016 20:50:18 -0500 Received: from imap.thunk.org ([74.207.234.97]:51039 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756203AbcBJBuN (ORCPT ); Tue, 9 Feb 2016 20:50:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=6mIP6oWY8fDXvfr1NI97y+2O0KAJYP+GWn8n8BCeU88=; b=JxzrxNfKamKCPKzSEv50whCyZmnacw6rmc/j6Wh5CpS+y/gszEWdlSEw3wNy7bLjJ7+aK/uJSMaaQBrIflZj+VqFNqjJTLvk6OgTPNXNtaG9lveafs4GdfYnMIeC6lYiMr/qy+AGvhJ39wgKh3JLr4AdBaQQkcOArs2hJbtJQek=; Received: from root (helo=closure.thunk.org) by imap.thunk.org with local-esmtp (Exim 4.84) (envelope-from ) id 1aTJv0-0005TC-RN; Wed, 10 Feb 2016 01:50:10 +0000 Received: by closure.thunk.org (Postfix, from userid 15806) id DB86082029B; Tue, 9 Feb 2016 20:50:09 -0500 (EST) From: Theodore Ts'o To: fstests@vger.kernel.org Cc: hughd@google.com, Junho Ryu , Theodore Ts'o Subject: [PATCH 03/12] generic: use mount point instead of device name Date: Tue, 9 Feb 2016 20:49:52 -0500 Message-Id: <1455069001-17846-4-git-send-email-tytso@mit.edu> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1455069001-17846-1-git-send-email-tytso@mit.edu> References: <1455069001-17846-1-git-send-email-tytso@mit.edu> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Hugh Dickins A tmpfs mount does not involve any block device, its $SCRATCH_DEV is nothing but a place-holder, so apply 'df' or 'stat' to its mount point $SCRATCH_MNT instead of to $SCRATCH_DEV. Signed-off-by: Hugh Dickins Signed-off-by: Junho Ryu Signed-off-by: Theodore Ts'o --- tests/generic/273 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/generic/273 b/tests/generic/273 index e5af7f1..0a4a600 100755 --- a/tests/generic/273 +++ b/tests/generic/273 @@ -68,7 +68,7 @@ _file_create() cd $SCRATCH_MNT/origin - _disksize=`$DF_PROG -B 1 $SCRATCH_DEV | tail -1 | $AWK_PROG '{ print $5 }'` + _disksize=`$DF_PROG -B 1 $SCRATCH_MNT | tail -1 | $AWK_PROG '{ print $5 }'` _disksize=$(($_disksize / 3)) _num=$(($_disksize / $count / $threads / 4096)) _count=$count