mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-28 02:50:41 +03:00
fsadm: fail 'check' explicitly on unsupported fs type
This commit is contained in:
parent
74fd0dd6c4
commit
c795a3b37f
@ -725,11 +725,14 @@ check() {
|
||||
# Think about better way....
|
||||
dry "$XFS_REPAIR" -n -o force_geometry "$VOLUME"
|
||||
fi ;;
|
||||
*) # check if executed from interactive shell environment
|
||||
"ext2"|"ext3"|"ext4"|"reiserfs")
|
||||
# check if executed from interactive shell environment
|
||||
case "$-" in
|
||||
*i*) dry "$FSCK" $YES $FORCE "$VOLUME" ;;
|
||||
*) dry "$FSCK" $FORCE -p "$VOLUME" ;;
|
||||
esac
|
||||
esac ;;
|
||||
*)
|
||||
error "Filesystem \"$FSTYPE\" on device \"$VOLUME\" is not supported by this tool." ;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user