mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
Solaris: return ENOTSUP for force-unmounts
We don't support forced unmounts yet, so indicate as such. Change-Id: I3a130a4a8d31eeffd012352f656c2b4e42b46f27 Reviewed-on: http://gerrit.openafs.org/1879 Reviewed-by: Andrew Deason <adeason@sinenomine.net> Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
9be76c0d31
commit
34b7fd4a49
@ -24,7 +24,9 @@
|
||||
#endif
|
||||
#include <sys/kobj.h>
|
||||
|
||||
|
||||
#ifdef AFS_SUN58_ENV
|
||||
# include <sys/mount.h>
|
||||
#endif
|
||||
|
||||
struct vfs *afs_globalVFS = 0;
|
||||
struct vcache *afs_globalVp = 0;
|
||||
@ -88,6 +90,14 @@ afs_unmount(struct vfs *afsp, afs_ucred_t *credp)
|
||||
AFS_GUNLOCK();
|
||||
return (EPERM);
|
||||
}
|
||||
|
||||
#ifdef AFS_SUN58_ENV
|
||||
if (flag & MS_FORCE) {
|
||||
AFS_GUNLOCK();
|
||||
return ENOTSUP;
|
||||
}
|
||||
#endif /* AFS_SUN58_ENV */
|
||||
|
||||
afs_globalVFS = 0;
|
||||
afs_shutdown();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user