fs-lib/fs-lib.sh: skip fsck for xfs and btrfs. remount is enough

master
Harald Hoyer 2012-06-30 12:15:04 +02:00
parent 47057875e7
commit 1594d0bf9c
1 changed files with 15 additions and 13 deletions

View File

@ -32,15 +32,17 @@ fsck_tail() {
# note: this function sets _drv of the caller
fsck_able() {
case "$1" in
xfs) {
type xfs_db &&
type xfs_repair &&
type xfs_check &&
type mount &&
type umount
} >/dev/null 2>&1 &&
_drv="_drv=none fsck_drv_xfs" &&
return 0
xfs)
# {
# type xfs_db &&
# type xfs_repair &&
# type xfs_check &&
# type mount &&
# type umount
# } >/dev/null 2>&1 &&
# _drv="_drv=none fsck_drv_xfs" &&
# return 0
return 1
;;
ext?)
type e2fsck >/dev/null 2>&1 &&
@ -58,9 +60,10 @@ fsck_able() {
return 0
;;
btrfs)
type btrfsck >/dev/null 2>&1 &&
_drv="_drv=none fsck_drv_btrfs" &&
return 0
# type btrfsck >/dev/null 2>&1 &&
# _drv="_drv=none fsck_drv_btrfs" &&
# return 0
return 1
;;
nfs*)
# nfs can be a nop, returning success
@ -89,7 +92,6 @@ fsck_drv_btrfs() {
return 0
}


# common code for checkers that follow usual subset of options and return codes
fsck_drv_com() {
local _ret