mirror of
https://git.openafs.org/openafs.git
synced 2025-01-22 08:50:17 +00:00
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:
parent
9a1af10848
commit
155c131923
@ -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)
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user