From 93a14f9f6e82f61efd64ddde21bc82e67ab456ae Mon Sep 17 00:00:00 2001 From: Hugh Dickins Date: Fri, 19 Feb 2016 10:44:25 +1100 Subject: [PATCH] generic: use mount point instead of device name 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 Reviewed-by: Christoph Hellwig Signed-off-by: Dave Chinner --- tests/generic/273 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/generic/273 b/tests/generic/273 index e5af7f14..0a4a6000 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 -- 2.39.5