[PATCH 03/10] xfstests: _scratch_mkfs_sized() for tmpfs
Christoph Hellwig
hch at infradead.org
Wed Dec 11 01:44:22 CST 2013
On Tue, Dec 10, 2013 at 12:11:54PM -0800, Junho Ryu wrote:
> From: Hugh Dickins <hughd at google.com>
>
> _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 <hughd at google.com>
> Signed-off-by: Junho Ryu <jayr at google.com>
Ah, here we go.
> blocks=`expr $fssize / $blocksize`
>
> - if [ "$HOSTOS" == "Linux" ]; then
> + if [ "$HOSTOS" == "Linux" -a "$FSTYP" != "tmpfs" ]; then
Should just check if SCRATCH_DEV is a block devices instead of
hardcoding a filesystem.
More information about the xfs
mailing list