common/xfs: fix unexpected failure on real 4k sector device
authorZorro Lang <zlang@redhat.com>
Mon, 27 Feb 2017 08:23:03 +0000 (16:23 +0800)
committerEryu Guan <eguan@redhat.com>
Mon, 27 Feb 2017 08:39:28 +0000 (16:39 +0800)
commit5f9cbd7089fe14f3d4ef9ce6ec08135d09e2e8e0
treef39c99a95afe18fcc368af3578698a63f5a1df1a
parent07e89f0913cfd29fd6a215ce66181c7aefb173d7
common/xfs: fix unexpected failure on real 4k sector device

_xfs_mkfs_validation_check() run "$cmd -s size=2s" to be sure if
xfsprogs support stricter input checks. But there's an unexpected
failure on 4k sector device:

  # blockdev --getbsz --getpbsz --getss $dev
  4096
  4096
  4096
  # mkfs.xfs -f -N -d file,name=$tmpfile,size=1g -s size=2s
  illegal sector size 1024; hw sector is 4096
  ....

So change the sector size from '2s' to '8s' to keep away this
failure.

Signed-off-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/xfs