#!/bin/ksh
#	Copyright (c) 2000 by Sun Microsystems, Inc.
#	All rights reserved.
#
#ident	"@(#)dofsck.ksh	1.2	00/02/25 SMI"

# Input arguments are:
# $1	special device file name used in mount command.
# $2	file system type name.
# $3	mount options returned from mount system call.

# Do nothing for UFS since UFS and SDS logging don't require an fsck.

# Vxfs requires an fsck.
if [ "$2" = vxfs ]; then
	fsck -F vxfs -o mounted $1
	if [ $? != 0 ]; then
		exit 1
	fi
fi

exit 0
