if [ "x$AFS_DYNROOT" != "x" ] ; then
db_set openafs-client/dynroot $AFS_DYNROOT
fi
+if [x$AFS_FAKESTAT != "x" ] ; then
+ db_set openafs-client/fakestat $AFS_FAKESTAT
+fi
+
db_beginblock
db_input low openafs-client/afsdb ||true
db_input low openafs-client/crypt || true
db_input medium openafs-client/dynroot || true
+db_input low openafs-client/fakestat ||true
db_endblock
db_go
echo AFS_CRYPT=$RET >>/etc/openafs/afs.conf.client
db_get openafs-client/dynroot
echo AFS_DYNROOT=$RET >>/etc/openafs/afs.conf.client
+db_get openafs-client/fakestat
+echo AFS_FAKESTAT=$RET >>/etc/openafs/afs.conf.client
;;
abort-upgrade|abort-remove|abort-deconfigure)
If you generate /afs dynamically, you may need to create
/etc/openafs/CellAliases to include aliases for common cells.
DO NOT SELECT THIS OPTION IF YOU ARE CREATING A NEW CELL.
+
+Template: openafs-client/fakestat
+type: boolean
+default: true
+Description: Use fakestat to avoid hangs when listing /afs?
+ Because AFS is a global file space, operations on the /afs directory
+ can generate significant network traffic. If some AFS cells are
+ unavailable then looking at /afs using ls or a graphical file browser
+ may hang your machine for minutes. AFS has an option to simulate
+ answers to these operations locally to avoid these hangs. You want
+ this option under most circumstances.
DYNROOT="-dynroot"
else DYNROOT=""
fi
+if ["x$AFS_FAKESTAT" = "xtrue" ] ; then
+ FAKESTAT="-fakestat"
+ else FAKESTAT=""
+ fi
# Set to "-verbose" for a lot of debugging information from afsd. Only
# useful for debugging as it prints _a lot_ of information.
VERBOSE=
# OPTIONS are the options passed to afsd.
-OPTIONS="$OPTIONS $VERBOSE $DYNROOT $AFSDB"
+OPTIONS="$OPTIONS $VERBOSE $DYNROOT $FAKESTAT $AFSDB"
# Sample server preferences function. Set server preferences using this.