From: Hugh Dickins Date: Thu, 18 Feb 2016 23:44:25 +0000 (+1100) Subject: generic: use mount point instead of device name X-Git-Tag: v2022.05.01~2612 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=93a14f9f6e82f61efd64ddde21bc82e67ab456ae;p=users%2Fhch%2Fxfstests-dev.git 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 --- diff --git a/tests/generic/273 b/tests/generic/273 index e5af7f14e..0a4a6000b 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