]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs: use -f option for xfs_repair a fs image
authorZorro Lang <zlang@redhat.com>
Mon, 21 Sep 2015 03:06:17 +0000 (13:06 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 21 Sep 2015 03:06:17 +0000 (13:06 +1000)
commit505ca934220f884509079934625f42fc5fffd712
tree65d8a368f69a332b0dab91795aa29513f3fcb30d
parent1d295771ad978cfd47c96be59a6953daed3862e8
xfs: use -f option for xfs_repair a fs image

xfs/020 need -f option, or it'll be fail on 4k sector device.

Add -f option for xfs/032 for safe and better.

There're some cases use _check_xfs_filesystem(), or others
function which call this function to check a regular file.
That's will fail when the regular file on a 4k sector device.
For example xfs/250.

So I change _check_xfs_filesystem(), add -f option to xfs_repair,
when the $device is a file.

Signed-off-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
common/rc
tests/xfs/020
tests/xfs/032