From owner-freebsd-stable@FreeBSD.ORG Sat Jan 10 15:16:56 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C29310656D5 for ; Sat, 10 Jan 2009 15:16:56 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.26]) by mx1.freebsd.org (Postfix) with ESMTP id 1ABE78FC1C for ; Sat, 10 Jan 2009 15:16:55 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by ey-out-2122.google.com with SMTP id d26so1060079eyd.7 for ; Sat, 10 Jan 2009 07:16:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=F/Z/tsUq+b/+bvuCHKgpbRTHOYmlenICmr0qeHOJUWk=; b=qy6oAHsbRZ8IMpTQ09yoVazkOs5KZ4D5Joz9c/vsw0Y3vCS8jiXhGK6YbqvYJ3ujlt 0AUgcSFxAs2fnYhXP7se6uoDFF+LsRoYynJLQGiivT4yxYX9yywXoDsd86qcDUI3HUPl 2M8+Zd2xOUosD1+YdBBhDSOcPRAM6g8flh8Jw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=R8UieFgF/Pf9v+QY24edNFJ8bYXB4pL+e/qFpJZHlfUBDL7fJScEhrT7ET1KkrHmrr apszOrCfVRPjLl3utR5BzYD6jyKMds52ywzyGmPt/DaZHaj/KljVDFqnZbUda3l4HPBr KMnQUFplZQJasxPTveUP3fX3+L3iSWIBRWpt0= Received: by 10.66.219.15 with SMTP id r15mr258014ugg.16.1231600614548; Sat, 10 Jan 2009 07:16:54 -0800 (PST) Received: by 10.67.88.9 with HTTP; Sat, 10 Jan 2009 07:16:54 -0800 (PST) Message-ID: <7d6fde3d0901100716i552420ddja6a59a4938e70fc9@mail.gmail.com> Date: Sat, 10 Jan 2009 07:16:54 -0800 From: "Garrett Cooper" To: "Andriy Gapon" In-Reply-To: <4968BB5D.8070909@icyb.net.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4968AE90.5010004@icyb.net.ua> <7d6fde3d0901100711p70e9a66ahadc3c2570fc6f94b@mail.gmail.com> <4968BB5D.8070909@icyb.net.ua> Cc: FreeBSD Stable Subject: Re: rc.d/mountd: confusing message (and behavior?) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jan 2009 15:16:56 -0000 On Sat, Jan 10, 2009 at 7:14 AM, Andriy Gapon wrote: > on 10/01/2009 17:11 Garrett Cooper said the following: >> On Sat, Jan 10, 2009 at 6:20 AM, Andriy Gapon wrote: >>> $ /etc/rc.d/mountd onestart >>> /etc/rc.d/mountd: WARNING: /etc/exports is not readable. >>> Exit 1 >>> >>> Actually /etc/exports did not exist at all. >>> And this was not a "WARNING", this was a fatal error, mountd did not start. >>> >>> Alsp, should it actually fail like this? I have ZFS and I plan to do >>> all NFS exports from ZFS, so /etc/exports would never be used. >> >> Uh, mountd is used for nfsd, so I'm not sure why you're trying to do >> this... > > I thought that mountd and nfsd (and rpcbind) are still required even if > exported filesystems are ZFS. Am I wrong on this? > >> The reference to /etc/exports is being picked up from >> /etc/rc.d/mountd on this line: >> >> required_files="/etc/exports" >> >> and it's picking up the actual `does it exist?' test from: >> >> [gcooper@orangebox /usr/home/gcooper]$ grep -A 3 required_files /etc/rc.subr >> # required_files n If set, check for the readability of the given >> # files before running a (re)start command. >> # >> # required_modules n If set, ensure the given kernel modules are >> -- >> rcvar required_dirs required_files required_vars >> eval unset ${_arg}_cmd ${_arg}_precmd ${_arg}_postcmd >> >> case "$_file" in >> -- >> for _f in $required_files; do >> if [ ! -r "${_f}" ]; then >> warn "${_f} is not readable." >> if [ -z "$rc_force" ]; then >> >> Cheers, >> -Garrett Ok, dumb question -- does ZFS offer the same functionality as NFS? I thought not... -Garrett