From owner-freebsd-current Tue Apr 29 08:40:52 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id IAA21558 for current-outgoing; Tue, 29 Apr 1997 08:40:52 -0700 (PDT) Received: from whizzo.transsys.com (whizzo.TransSys.COM [144.202.42.10]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA21549 for ; Tue, 29 Apr 1997 08:40:50 -0700 (PDT) Received: from localhost.transsys.com (localhost.transsys.com [127.0.0.1]) by whizzo.transsys.com (8.8.5/8.7.3) with SMTP id LAA02695 for ; Tue, 29 Apr 1997 11:40:48 -0400 (EDT) Message-Id: <199704291540.LAA02695@whizzo.transsys.com> To: current@freebsd.org From: "Louis A. Mamakos" Subject: latest -current upgrade and CFS Date: Tue, 29 Apr 1997 11:40:48 -0400 Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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