]> git.michaelhowe.org Git - packages/o/openafs.git/commit
STABLE12-linux-null-superblock-if-mount-failed-20040728
authorRainer Schöpf <rainer.schoepf@proteosys.com>
Mon, 18 Oct 2004 05:55:17 +0000 (05:55 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 18 Oct 2004 05:55:17 +0000 (05:55 +0000)
commitd68d71ecfff25a5bd6aaed0c9976d9c0b83ff9f6
treea3a31e190b4f501fac867081766e9f7771c1492b
parent3edff19bb66c45fa161d1d95cdaf7edf75b8839a
STABLE12-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.

(cherry picked from commit e5e7801db895b1e57ff99fb59371aee47ac33b9c)
src/afs/LINUX/osi_vfsops.c