linux-null-superblock-if-mount-failed-20040728
authorRainer Schöpf <rainer.schoepf@proteosys.com>
Thu, 29 Jul 2004 04:08:48 +0000 (04:08 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 29 Jul 2004 04:08:48 +0000 (04:08 +0000)
commite5e7801db895b1e57ff99fb59371aee47ac33b9c
tree5a70a6ca39a1222caf328289a7d0019ce2e37455
parent563894500fa0a108aeec400077b57b062b7db96c
linux-null-superblock-if-mount-failed-20040728

FIXES 6002

The appended patch resets afs_globalVFS to NULL if /afs cannot be mounted,
eg., if no cell server is accessible.

There are two advantages:

 - it is possible to do "afsd -shutdown" to terminate all daemons
 - more importantly, if /afs cannot be mounted, the linux kernel will
   probably free the superblock, ie the memory pointed to afs_globalVFS.
src/afs/LINUX/osi_vfsops.c