From owner-freebsd-fs@freebsd.org Mon Dec 12 18:19:46 2016 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8E472C748C3 for ; Mon, 12 Dec 2016 18:19:46 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: from mail-wj0-x233.google.com (mail-wj0-x233.google.com [IPv6:2a00:1450:400c:c01::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1FFCF1F20 for ; Mon, 12 Dec 2016 18:19:46 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: by mail-wj0-x233.google.com with SMTP id tk12so80082274wjb.3 for ; Mon, 12 Dec 2016 10:19:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=5rOdGyu1RnO2r4sk5XAB+++1WHkBkgmBvhguKRXjYgQ=; b=LMFLc4+pubfJjDcK0UtRRXjCC4xDrgqHr0Evo6rLFpcFsaD2SzRj47MUjADBHW0glD MdXhOhFT6YoOcjPwinrek2rSfJ/BKPz33g0HNjdmyvcdTS6XcnpH1D/RFrZjYyVKg60e BtSYmEeBuoM23aKeATdeCvNQOFdU1SkLT8cl4Yt8ee6eGpvamSrPcvC08rFpBmMOv/8r GWV8/nmX7rYkH0zEgFxSnJDlGcX3aP0WlTzbiDdEEb2wMIUy6yBGqcFB564g2zME/sB1 XrqgEZOCmJ7neJcdHbIBtFg/uA02hXfQm+n1gcOWcxEHG+1+TKE1bzClBwqGuJyVEGS8 KA/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=5rOdGyu1RnO2r4sk5XAB+++1WHkBkgmBvhguKRXjYgQ=; b=SOAYOXHMGy18B5gNjAd2ObPZ+CtNpbVDZBMmIo4TbcAWRlrRqT3MVoOdyajg8rx9ZP zXwKYCEmh5loNTTMMKt2ZT3c3dsk1yTGruoWg71twgqxVs0U4Ldota82TsE/GfxtP1fZ IiqWTGkbcdxvF6b28ibskTeGo+wjxkc/yWwswVronWOqAHcz86vqZ4k1cHxbUJoXBhdQ 8yTT1QONSWExj/HT1nVmdUa8l0MLMepZQtvLFLiB0TVQq6EtTGd6JhNhKvV5KXMlT9SX WXVt9s81QIzCVtY7U4GpBLbxjw+k0N5dCXHXWtfQfW3qJ+friq/i8v+f31rsBXDxl2vi 64Vw== X-Gm-Message-State: AKaTC02muyywVkW93lMxcU8LY/t0XUK96MAAQ8Wt2VsRmaQZo6bLvJdxRbn96aDNVy1Ztg== X-Received: by 10.194.125.43 with SMTP id mn11mr45611078wjb.14.1481566783851; Mon, 12 Dec 2016 10:19:43 -0800 (PST) Received: from brick (aegh224.neoplus.adsl.tpnet.pl. [79.186.163.224]) by smtp.gmail.com with ESMTPSA id d10sm58320239wja.20.2016.12.12.10.19.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Dec 2016 10:19:43 -0800 (PST) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Date: Mon, 12 Dec 2016 19:19:40 +0100 From: Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= To: Rick Macklem Cc: "freebsd-fs@freebsd.org" , "jmader2@gmu.edu" Subject: Re: what should mountd do for NFSv4 only servers? Message-ID: <20161212181940.GB8058@brick> Mail-Followup-To: Rick Macklem , "freebsd-fs@freebsd.org" , "jmader2@gmu.edu" References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.1 (2016-10-04) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2016 18:19:46 -0000 On 1211T1923, Rick Macklem wrote: > I recall an email discussion with Jason Mader w.r.t. what the behaviour of > mountd(8) should be when an NFSv4 only server is being run. > (I seem to have misplaced the email, so if I recall incorrectly, I apologize and hope > that Jason will correct me.;-) > > mountd(8) serves the Mount protocol, which is related to NFSv2 and NFSv3, but has > nothing to do with NFSv4. > - At first glance, that would suggest that mountd(8) shouldn't serve Mount protocol > RPCs at all for a NFSv4 only server. > However, this would imply that "showmount -e" would not work. > I recall that Jason felt that "showmount -e" is useful, at least when run locally on > the server. > > As such, how does having mountd(8) service Mount protocol requests only from localhost > (127.0.0.1 and ::1) and only handle the Export RPC, when the NFS server is configured > as NFSv4 only via vfs.nfsd.server_min_nfsvers == 4? > > Any comments, concerns or other ideas please, rick Another thing the mountd is useful for is the "-hosts" autofs map. Restricting mountd to the localhost would break it.