From owner-freebsd-questions Thu Aug 16 10:31:24 2001 Delivered-To: freebsd-questions@freebsd.org Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by hub.freebsd.org (Postfix) with ESMTP id 55B5F37B407 for ; Thu, 16 Aug 2001 10:31:08 -0700 (PDT) (envelope-from cjc@earthlink.net) Received: from blossom.cjclark.org (dialup-209.245.128.59.Dial1.SanJose1.Level3.net [209.245.128.59]) by albatross.prod.itd.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id KAA06858; Thu, 16 Aug 2001 10:30:48 -0700 (PDT) Received: (from cjc@localhost) by blossom.cjclark.org (8.11.4/8.11.3) id f7GHNFp05218; Thu, 16 Aug 2001 10:23:15 -0700 (PDT) (envelope-from cjc) Date: Thu, 16 Aug 2001 10:23:15 -0700 From: "Crist J. Clark" To: Alex Baram Cc: freebsd-questions@FreeBSD.ORG Subject: Re: nfs exports from the same filesystem Message-ID: <20010816102315.F4232@blossom.cjclark.org> Reply-To: cjclark@alum.mit.edu References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from baram@mscd.edu on Thu, Aug 16, 2001 at 09:36:46AM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Aug 16, 2001 at 09:36:46AM -0600, Alex Baram wrote: > I want to export a couple of directories. The directories are > located on the same filesystem and are being exported to the same host. > One directory in read-only and another directory in read-write. Here is > the exports file I use: > > /etc/exports: > > ## Export my home dir read-write > /home/alex nova > > ## Export rcs read-only > /home/rcs -ro nova > > > When I restart mountd, only /home/alex gets exported and I see this > error in /var/log/messages: > > Aug 16 09:26:13 clem mountd[45972]: can't change attributes for > /home/rcs > Aug 16 09:26:13 clem mountd[45972]: bad exports list line /home/rcs -ro > nova > > Can I export more than one directory on the same filesystem to a > single host? Yes, but they cannot have different attributes. The proper syntax is, /home/alex /home/rcs nova Read the exports(5) manpage carefully, this is documented behavior, Each line in the file (other than comment lines that begin with a #) specifies the mount point(s) and export flags within one local server filesystem for one or more hosts. A host may be specified only once for each local filesystem on the server and there may be only one default entry for each server filesystem that applies to all other hosts. > If not, is there any other way to achieve the same effect? To have different option flags? Not really. This is a limitation of the NFS protocol. -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message