Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Apr 1997 11:40:48 -0400
From:      "Louis A. Mamakos" <louie@TransSys.COM>
To:        current@freebsd.org
Subject:   latest -current upgrade and CFS
Message-ID:  <199704291540.LAA02695@whizzo.transsys.com>

next in thread | raw e-mail | index | archive | help


CFS is the crypto filesystem that Matt Blaze did.  Essentially, you
talk to it via NFS and it decrypts/encrypts files on the fly which are
stored elsewhere in the UNIX filesystem.

I just upgraded my system running an older -current to the version
checkout as of last night.  My cfsd stopped working; it appears the
the NFSv3 default is the cause of this problem, and the
"auto-fallback" to NFSv2 mechansim doesn't work with cfs.  I had to
add the '-2' option to the mount command to get things working; I
recompiled cfsd for good measure too.

So my /usr/local/etc/rc.d/cfs.sh now looks like:

if [ -x /usr/local/sbin/cfsd ]; then
	/usr/local/sbin/cfsd && \
		mount -o port=3049,intr,-2 localhost:/null /crypt
fi


Note that this still requires the one-line fix to correctly parse
mount options with parameters, like the 'port=3049', in the file
/usr/src/sbin/mount/getmntopts.c.  I submitted a PR on this on quite a
while ago:

Index: getmntopts.c
===================================================================
RCS file: /usr/local/FreeBSD/cvs/src/sbin/mount/getmntopts.c,v
retrieving revision 1.4
diff -u -r1.4 getmntopts.c
--- getmntopts.c        1997/03/11 12:27:56     1.4
+++ getmntopts.c        1997/04/06 00:38:32
@@ -78,7 +78,7 @@
                 */
                p = strchr(opt, '=');
                if (p)
-                        *p = '\0';
+                        *++p = '\0';

                /* Scan option table. */
                for (m = m0; m->m_option != NULL; ++m) {

Hope this saves someone some time..

louie



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704291540.LAA02695>