X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=blobdiff_plain;f=common%2Fxfs;h=8cb3662f36d448d471268595c60e49b0dc2cd9b3;hp=cf4afb5341339ed295d1f27086c835dbef3c1a68;hb=8fb042e54ea0b4f1cc1f7d628927a6cc985c0586;hpb=af7ac9448fd681d54c3acfa7febcaf44b0be323f;ds=sidebyside diff --git a/common/xfs b/common/xfs index cf4afb53..8cb3662f 100644 --- a/common/xfs +++ b/common/xfs @@ -1143,3 +1143,13 @@ _check_scratch_xfs_features() echo "${output[@]}" test "${found}" -eq "$#" } + +# Decide if xfs_repair knows how to set (or clear) a filesystem feature. +_require_xfs_repair_upgrade() +{ + local type="$1" + + $XFS_REPAIR_PROG -c "$type=garbagevalue" 2>&1 | \ + grep -q 'unknown option' && \ + _notrun "xfs_repair does not support upgrading fs with $type" +}