Skip to content

Commit c060741

Browse files
authored
Merge pull request #2057 from oalbrigt/Filesystem-remove-fstype-validate-all-check
Filesystem: remove validate-all fstype check, as there isnt a reliable and portable way to check
2 parents 387d414 + 08c5b85 commit c060741

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

heartbeat/Filesystem

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -978,23 +978,6 @@ Filesystem_monitor()
978978
#
979979
Filesystem_validate_all()
980980
{
981-
# Check if the $FSTYPE is workable
982-
# NOTE: Without inserting the $FSTYPE module, this step may be imprecise
983-
# TODO: This is Linux specific crap.
984-
if [ ! -z "$FSTYPE" -a "$FSTYPE" != none ]; then
985-
cut -f2 /proc/filesystems | grep "^${FSTYPE}$" >/dev/null 2>&1
986-
if [ $? -ne 0 ]; then
987-
modpath=/lib/modules/$(uname -r)
988-
moddep=$modpath/modules.dep
989-
# Do we have $FSTYPE in modules.dep?
990-
cut -d' ' -f1 $moddep \
991-
| grep "^${modpath}.*${FSTYPE}\.k\?o:$" >/dev/null 2>&1
992-
if [ $? -ne 0 ]; then
993-
ocf_log info "It seems we do not have $FSTYPE support"
994-
fi
995-
fi
996-
fi
997-
998981
# If we are supposed to do monitoring with status files, then
999982
# we need a utility to write in O_DIRECT mode.
1000983
if [ $OCF_CHECK_LEVEL -gt 0 ]; then

0 commit comments

Comments
 (0)