afs-dont-allow-shutdown-before-umount-20020523

fix afs to enforce that /afs must be unmounted, and afsd to report it
This commit is contained in:
Derrick Brashear 2002-05-23 06:21:13 +00:00
parent 9a1af10848
commit 155c131923
2 changed files with 7 additions and 3 deletions

View File

@ -548,8 +548,8 @@ long parm, parm2, parm3, parm4, parm5, parm6;
if (afs_globalVFS != 0) {
afs_warn("AFS isn't unmounted yet! Call aborted\n");
code = EACCES;
}
afs_shutdown();
} else
afs_shutdown();
}
#if ! defined(AFS_HPUX90_ENV) || defined(AFS_HPUX100_ENV)

View File

@ -1291,7 +1291,11 @@ mainproc(as, arock)
* Cold shutdown is the default
*/
printf("afsd: Shutting down all afs processes and afs state\n");
call_syscall(AFSOP_SHUTDOWN, 1);
code = call_syscall(AFSOP_SHUTDOWN, 1);
if (code) {
printf("afsd: AFS still mounted; Not shutting down\n");
exit(1);
}
exit(0);
}
if (as->parms[21].items) {