From owner-freebsd-current@FreeBSD.ORG Thu Jul 31 17:47:32 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CCFF37B1; Thu, 31 Jul 2014 17:47:32 +0000 (UTC) Received: from mail-qg0-x233.google.com (mail-qg0-x233.google.com [IPv6:2607:f8b0:400d:c04::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7BFCE20DB; Thu, 31 Jul 2014 17:47:32 +0000 (UTC) Received: by mail-qg0-f51.google.com with SMTP id a108so4403348qge.24 for ; Thu, 31 Jul 2014 10:47:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=4WCTctv1rV01g+nilN6EpaCze3S1FJT3D1Vu8Y1npfk=; b=cXNCJ34k7JJoVD2VpxNLGhhMkyXYQjczjE0cJcm66ePR7zHKeS3zaO5oz1R+WJUjgn cGD5a/UwL2x/4skmHSQFDHBFrwlXXDXf9PnRKQ1Ff+ed2wADcEi4zAEc5w0Nwn9X0pf/ UwFCawPagLJ4feJbQfJzE9ZCw3IwBf9/3Lvb8eRSYF5lyxewLQeu126rGh+rhaitSWip H4NsbArXOagaoGk31oQIfSC5zvo1w8axcEzu3FjohUqKNTMOEP3MRx+ATEpj+K6toCWw 4Ukec7mE8tOwHRZjbrwm6XSeDsgYRylorC9HFaDdzI1cw8AxcFhHbJt2laagJvvsTK3E EATw== MIME-Version: 1.0 X-Received: by 10.224.53.137 with SMTP id m9mr20893065qag.66.1406828851550; Thu, 31 Jul 2014 10:47:31 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.140.30.230 with HTTP; Thu, 31 Jul 2014 10:47:31 -0700 (PDT) In-Reply-To: References: <20140730071933.GA20122@pc5.home> Date: Thu, 31 Jul 2014 10:47:31 -0700 X-Google-Sender-Auth: YFjgXg5PZibWk2qN0V8JQn4-OfA Message-ID: Subject: Re: [CFT] Autofs. From: Craig Rodrigues To: freebsd-current Current , freebsd-arch Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jul 2014 17:47:32 -0000 On Wed, Jul 30, 2014 at 6:51 PM, Craig Rodrigues wrote: > On Wed, Jul 30, 2014 at 12:19 AM, Edward Tomasz Napiera=C5=82a < > trasz@freebsd.org> wrote: > >> At the link below you will find a patch that adds the new automounter. >> The patch is against yesterdays 11.0-CURRENT. >> >> http://people.freebsd.org/~trasz/autofs-head-20140729.diff >> >> > Hi, > > Nice stuff! I updated a current system, and tried the patch. > I put autofs_enable=3D"YES" in /etc/rc.conf > > In my network, I have a system, testhost with some NFS exports. > > /dir1/export1 > /dir1/export2 > /dir1/export3 > > I did: > > cd /net/testhost > > This operation seemed to timeout. > In dmesg, I saw these errors: > > WARNING: autofs_callout: request 0 for /net/ timed out after 30 seconds > WARNING: autofs_trigger_one: request for /net/ completed with error 60 > autofs_trigger: trigger failed with error 60; will retry in 1 seconds, = 2 > attempts left > WARNING: autofs_callout: request 1 for /net/ timed out after 30 seconds > WARNING: autofs_trigger_one: request for /net/ completed with error 60 > autofs_trigger: trigger failed with error 60; will retry in 1 seconds, = 1 > attempts left > WARNING: autofs_callout: request 2 for /net/ timed out after 30 seconds > WARNING: autofs_trigger_one: request for /net/ completed with error 60 > autofs_trigger: trigger failed 3 times; returning error 60 > > I used my Mac laptop in the same network, and did: > > cd /net/testhost > > and the command did not timeout, and I could do an ls and see that > /net/testhost/dir1/ was visible. > > Any ideas? > > This is cool stuff, and I hope you can get it into the 10.1 RELEASE. > > -- > Craig > > Hi, I cannot reproduce this problem at all. Now, when I do: cd /net/testhost it "just works", and I can access all the NFS exports. My previous problem might have been due to a temporary networking problem on my side. Yay! The only additional comment that I have for you is that the rc.conf variable is "autofs_enable", but the /etc/rc.d/ scripts are /etc/rc.d/automount and /etc/rc.d/automountd. It's not a big deal, but it would be nice if there was a single /etc/rc.d/autofs script to consolidate all this stuff, that would make it easier for admins to figure out where all the rc.d stuff related to autofs lives. Also, if your rc script introduced an autofs_flags (or automount_flags) variable, so that people could put the "-d" flag in there to enable more automount debugging, that would be nice. Other than that, I would say: Great work! I hope you can get this into 10.1-RELEASE! -- Craig