OpenAFS CVS Commit: openafs/src/afs/LINUX by shadow
cvs@GRAND.CENTRAL.ORG
cvs@GRAND.CENTRAL.ORG
Wed, 28 Jul 2004 23:08:49 EDT
Update of /cvs/openafs/src/afs/LINUX
In directory GRAND.CENTRAL.ORG:/data/sb/openafs/src/afs/LINUX
Modified Files:
osi_vfsops.c
Log Message:
DELTA linux-null-superblock-if-mount-failed-20040728
AUTHOR rainer.schoepf@proteosys.com
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.
--- DELTA config follows ---
linux-null-superblock-if-mount-failed-20040728 openafs/src/afs/LINUX/osi_vfsops.c 1.28 1.29