]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Add fakestat support to debconf
authorSam Hartman <hartmans@debian.org>
Fri, 2 Aug 2002 21:13:37 +0000 (21:13 +0000)
committerSam Hartman <hartmans@debian.org>
Fri, 2 Aug 2002 21:13:37 +0000 (21:13 +0000)
debian/openafs-client.config
debian/openafs-client.postinst
debian/openafs-client.templates
src/afsd/afs.conf.linux

index 3a8b6d15acb7a316e08b53f61bfe721f1eaa5bf1..abe5757519b3c3a0b4e5fff4afe7e5f9098dd354 100644 (file)
@@ -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
index 010673608598339f6405227774c93415d1038d13..b16f8a1905f5073c1dfbd9663bc296114fe60b1d 100644 (file)
@@ -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)
index 07ad1dd6f34a17deabd98451785f529cd8dd56d6..0dabd8c0883c420ecf1f088d04006325d7fe8782 100644 (file)
@@ -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.
index a393b4554ee549a1bffe8c51a045efc30eb73c48..963199cb274cade5bad80227783529cc5cf4543a 100644 (file)
@@ -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.