[OpenAFS-devel] ufs logging and solaris cache partitions
Harald Barth
haba@pdc.kth.se
Sat, 23 Nov 2002 12:22:18 +0100 (CET)
> If on your Solaris machines you have a mixed-use (as opposed to dedicated
> to AFS cache only) partition which is ufs and mounted with -o logging, you
> can hose yourself.
Refuse to start afs client if logging is turned on and cache partition
top dir is not a mountpoint? To do such stuff in /etc/init.d/afs is ugly,
but what are the options? Something like
CACHEDIR=`cat /usr/vice/etc/cacheinfo | cut -d: -f2`
CACHEFS=`df $CACHEDIR | cut -d' ' -f 1`
if [ $CACHEDIR = $CACHEFS ] ; then
:
else
if mount | egrep "^$CACHEFS " | grep -v logging ; then
:
else
echo Complain here
exit 1
fi
fi
Harald.