]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs/288: filter out extra mkfs warning
authorZorro Lang <zlang@redhat.com>
Thu, 25 May 2017 08:38:38 +0000 (16:38 +0800)
committerEryu Guan <eguan@redhat.com>
Thu, 25 May 2017 08:46:51 +0000 (16:46 +0800)
commitce16ed94a8d9bc9704dfd45751cbdcd8f7488c24
treeeeb36758a8359cd3401ce35bdac2ede95d9a5184
parent1262cc70fa42cc8d73f6bf21fcd4225ff884b713
xfs/288: filter out extra mkfs warning

From xfsprogs v4.7, mkfs.xfs add respecification detection by
commit 9090e18. Then mkfs will fail and return if we run it
as below:

  mkfs.xfs -m crc=1,finobt=1 -m crc=0 ....

Then _scratch_mkfs_xfs can deal with this problem. But for old
xfsprogs ( < v4.7), it replace the first "crc=1" with the second
"crc=0". Then "crc=0,finobt=1" cause a warning, but keep running:

  "warning: finobt not supported without CRC support, disabled."

This extra warning breaks the golden image of xfs/288, so filter
it out in case.

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