]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs/032: test the next block size if mkfs fails
authorZorro Lang <zlang@redhat.com>
Fri, 30 Sep 2016 06:58:46 +0000 (14:58 +0800)
committerEryu Guan <eguan@redhat.com>
Fri, 7 Oct 2016 09:18:53 +0000 (17:18 +0800)
commita5296288d631aa0ba0b3cd83dc90a33a1fe44e37
treedd563371cd4b82392d418d1552b8a37ab9887651
parent4053326a0c5f73488fb4f54bd084ba821545a6cd
xfs/032: test the next block size if mkfs fails

If test on a 512b sector size device, xfs/032 will try to do:

  mkfs.xfs -s size=512 -b size=512 ...

The 512b block size is not acceptable for V5 XFS. So if mkfs.xfs
fails, try next block size (blksize *= 2) directly.

Signed-off-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/xfs/032