diff --git a/WHATS_NEW b/WHATS_NEW index 834cf0f76..6f7abe633 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.105 - ===================================== + Replace use of xfs_check with xfs_reparir in fsadm. Mark lvm1 format metadata as FMT_OBSOLETE. Do not use it with lvmetad. Invalidate cached VG struct after a PV in it gets orphaned. (2.02.87) Mark pool format metadata as FMT_OBSOLETE. diff --git a/test/shell/fsadm.sh b/test/shell/fsadm.sh index 4e624dbee..8d4b37d32 100644 --- a/test/shell/fsadm.sh +++ b/test/shell/fsadm.sh @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright (C) 2008-2012 Red Hat, Inc. All rights reserved. +# Copyright (C) 2008-2014 Red Hat, Inc. All rights reserved. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions @@ -24,7 +24,9 @@ check_reiserfs= which mkfs.ext3 || check_ext3=${check_ext3:-mkfs.ext3} which fsck.ext3 || check_ext3=${check_ext3:-fsck.ext3} which mkfs.xfs || check_xfs=${check_xfs:-mkfs.xfs} -which xfs_check || check_xfs=${check_xfs:-xfs_check} +which xfs_check || { + which xfs_repair || check_xfs=${check_xfs:-xfs_repair} +} which mkfs.reiserfs || check_reiserfs=${check_reiserfs:-mkfs.reiserfs} which reiserfsck || check_reiserfs=${check_reiserfs:-reiserfsck} @@ -54,7 +56,11 @@ fscheck_ext3() fscheck_xfs() { - xfs_check "$dev_vg_lv" + if which xfs_repair ; then + xfs_repair -n "$dev_vg_lv" + else + xfs_check "$dev_vg_lv" + fi } fscheck_reiserfs() @@ -67,8 +73,9 @@ check_missing() eval local t=$\check_$1 test -z "$t" && return 0 test "$t" = skip && return 1 - # trick for warning test - echo "WARNING: fsadm test skipped $1 tests, $t tool is missing" + # trick to get test listed with warning + echo "WARNING: fsadm test skipped $1 tests, $t tool is missing." + should false; return 1 }