solaris: libafs depends on fs/ufs
authorMichael Meffie <mmeffie@sinenomine.net>
Fri, 16 Sep 2011 15:23:18 +0000 (11:23 -0400)
committerDerrick Brashear <shadow@dementix.org>
Tue, 20 Sep 2011 16:56:28 +0000 (09:56 -0700)
The solaris afs module depends on symbols exported by fs/ufs.
Set this dependency in the afs module so the kernel loader
will automatically load the fs/ufs driver if is not already
loaded, such on zfs only systems.

Change-Id: I87ae2c326ac0c895cca37cf30e4c11d0decbe6d1
Reviewed-on: http://gerrit.openafs.org/5456
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>

src/afs/SOLARIS/osi_vfsops.c

index 49f53bc..d06a94a 100644 (file)
@@ -488,7 +488,12 @@ static struct sysent afssysent = {
 #endif /* AFS_SUN511_ENV */
 
 /* inter-module dependencies */
-char _depends_on[] = "drv/ip drv/udp strmod/rpcmod";
+char _depends_on[] = 
+#if AFS_SUN510_ENV
+       "drv/ip drv/udp strmod/rpcmod fs/ufs";
+#else
+       "drv/ip drv/udp strmod/rpcmod";
+#endif
 
 /*
  * Info/Structs to link the afs module into the kernel