[OpenAFS-devel] Patch to allow ZFS as a /vicep* partition
Robert Banz
banz@umbc.edu
Fri, 16 Mar 2007 12:51:59 -0400
This patch allows you to use ZFS as a /vicep* partition on a Solaris
Namei fileserver w/o needing to touch AlwaysAttach.
*** openafs-1.4.2-dist/src/vol/partition.c Mon Oct 17 16:47:07 2005
--- openafs-1.4.2-zfs/src/vol/partition.c Fri Mar 16 12:45:52 2007
***************
*** 437,443 ****
--- 437,449 ----
}
while (!getmntent(mntfile, &mnt)) {
/* Ignore non ufs or non read/write partitions */
+ /* but allow zfs too if we're in the NAMEI environment */
+ #ifdef AFS_NAMEI_ENV
+ if ( ( ( ! strcmp(mnt.mnt_fstype, "ufs") &&
+ ! strcmp(mnt.mnt_fstype, "zfs") ) )
+ #else
if ((strcmp(mnt.mnt_fstype, "ufs") != 0)
+ #endif
|| (strncmp(mnt.mnt_mntopts, "ro,ignore", 9) == 0))
continue;
Robert Banz
Coordinator, Core Systems
banz@umbc.edu