From: Sam Hartman Date: Fri, 2 Aug 2002 21:13:37 +0000 (+0000) Subject: Add fakestat support to debconf X-Git-Tag: debian/1.2.6-1~8 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=3ab6d0b168ba2297ad4872b37b420502c4f94acd;p=packages%2Fo%2Fopenafs.git Add fakestat support to debconf --- diff --git a/debian/openafs-client.config b/debian/openafs-client.config index 3a8b6d15a..abe575751 100644 --- a/debian/openafs-client.config +++ b/debian/openafs-client.config @@ -29,9 +29,14 @@ if [ "x$AFS_AFSDB" != "x" ] ;then 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 diff --git a/debian/openafs-client.postinst b/debian/openafs-client.postinst index 010673608..b16f8a190 100644 --- a/debian/openafs-client.postinst +++ b/debian/openafs-client.postinst @@ -67,6 +67,8 @@ case "$1" in 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) diff --git a/debian/openafs-client.templates b/debian/openafs-client.templates index 07ad1dd6f..0dabd8c08 100644 --- a/debian/openafs-client.templates +++ b/debian/openafs-client.templates @@ -72,3 +72,14 @@ Description: Dynamically generate the contents of /afs? 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. diff --git a/src/afsd/afs.conf.linux b/src/afsd/afs.conf.linux index a393b4554..963199cb2 100644 --- a/src/afsd/afs.conf.linux +++ b/src/afsd/afs.conf.linux @@ -41,13 +41,17 @@ if [ "x$AFS_DYNROOT" = "xtrue" ] ; then 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.