SOLARIS: let xlator load if amd64/nfssrv is loaded
authorAndrew Deason <adeason@sinenomine.net>
Mon, 2 Aug 2010 05:44:37 +0000 (00:44 -0500)
committerDerrick Brashear <shadow@dementia.org>
Mon, 2 Aug 2010 15:36:42 +0000 (08:36 -0700)
The NFS translator-enabled kernel module refuses to load if
misc/nfssrv is not also loaded. We were only checking misc/nfssrv and
misc/sparcv9/nfssrv, though, not misc/amd64/nfssrv. Check that, too,
as it may be loaded on amd64 machines.

Reported by Robert Milkowski.

Change-Id: Idbb9c4136b87ffa4c72ca376738001fb6a3ca7d8
Reviewed-on: http://gerrit.openafs.org/2497
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

src/afs/SOLARIS/osi_machdep.h
src/afs/SOLARIS/osi_vfsops.c

index 9027a0e..ca25455 100644 (file)
@@ -31,6 +31,7 @@
   */
 #define NFSSRV                 "/kernel/misc/nfssrv"
 #define NFSSRV_V9      "/kernel/misc/sparcv9/nfssrv"
+#define NFSSRV_AMD64   "/kernel/misc/amd64/nfssrv"
 
 typedef struct cred afs_ucred_t;
 typedef struct proc afs_proc_t;
index b17d495..9a3e08b 100644 (file)
@@ -581,7 +581,8 @@ _init()
 #if     defined(AFS_SUN55_ENV)
     if ((!(mp = mod_find_by_filename("misc", "nfssrv"))
         && !(mp = mod_find_by_filename(NULL, NFSSRV))
-        && !(mp = mod_find_by_filename(NULL, NFSSRV_V9))) || (mp
+        && !(mp = mod_find_by_filename(NULL, NFSSRV_V9))
+        && !(mp = mod_find_by_filename(NULL, NFSSRV_AMD64))) || (mp
                                                               && !mp->
                                                               mod_installed))
     {