]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfs/216: pass -t xfs to _mount
authorChristoph Hellwig <hch@lst.de>
Thu, 7 May 2026 05:09:49 +0000 (07:09 +0200)
committerZorro Lang <zlang@kernel.org>
Thu, 7 May 2026 18:48:11 +0000 (02:48 +0800)
Without this, mount probes different file system type, which ended up
exposing kernel bugs in blocksize > PAGE_SIZE bugs in tons of
legacy file systems.  Bypass that by forcing XFS and making the
mount a little more efficient.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Zorro Lang <zlang@kernel.org>
Reviewed-by: Andrey Albershteyn <aalbersh@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/xfs/216

index 091c11d0864247579fa196f72e51bcbd95cdc168..2096dd9b53d94c417e9fdad978885fafe247585b 100755 (executable)
@@ -57,7 +57,7 @@ _do_mkfs()
                echo -n "fssize=${i}g "
                $MKFS_XFS_PROG -f -b size=4096 -l version=2 \
                        -d size=${i}g $loop_mkfs_opts $loop_dev |grep log
-               _mount $loop_dev $LOOP_MNT
+               _mount -t xfs $loop_dev $LOOP_MNT
                echo "test write" > $LOOP_MNT/test
                _unmount $LOOP_MNT > /dev/null 2>&1
        done