From: Andrew Deason Date: Thu, 29 Apr 2010 21:00:26 +0000 (-0500) Subject: Solaris: return ENOTSUP for force-unmounts X-Git-Tag: openafs-devel-1_5_75~322 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=34b7fd4a4989fe5d0484e00ae9582d2f29d98d9c 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 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/afs/SOLARIS/osi_vfsops.c b/src/afs/SOLARIS/osi_vfsops.c index 01ce783..c474f8a 100644 --- a/src/afs/SOLARIS/osi_vfsops.c +++ b/src/afs/SOLARIS/osi_vfsops.c @@ -24,7 +24,9 @@ #endif #include - +#ifdef AFS_SUN58_ENV +# include +#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();