From owner-freebsd-net@FreeBSD.ORG Mon Jun 15 16:46:39 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 69A8B1065672 for ; Mon, 15 Jun 2009 16:46:39 +0000 (UTC) (envelope-from marco.borsatino@poste.it) Received: from relay-pt3.poste.it (relay-pt3.poste.it [62.241.4.129]) by mx1.freebsd.org (Postfix) with ESMTP id 274558FC15 for ; Mon, 15 Jun 2009 16:46:38 +0000 (UTC) (envelope-from marco.borsatino@poste.it) Received: from poste.it (192.168.44.18) by relay-pt3.poste.it (7.3.122) id 4A35817000006301; Mon, 15 Jun 2009 18:46:35 +0200 Date: Mon, 15 Jun 2009 18:46:35 +0200 Message-Id: MIME-Version: 1.0 X-Sensitivity: 3 From: "marco\.borsatino\@poste\.it" To: brian@Awfulhak.org X-XaM3-API-Version: 5.0(R1) X-SenderIP: 79.40.212.138 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org Subject: NFS - exports syntax X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jun 2009 16:46:39 -0000 First, thank you for your help.=0A=0A=0A=0A>=0A> FreeBSD's exports implem= entation will only allow you to associate=0A> mount options per local fil= esystem per remote machine, so this=0A> version:=0A>=0A> > /usr/home=C2=A0= =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 pc02 pc02=0A> > /cond1 -mapall=3Duser2 pc= 01 pc02=0A> > /cond2 -mapall=3Duser1 pc01 pc02=0A>=0A> is correct, but on= ly if /cond1 and /cond2 are different filesystems.=0A> If they're the sam= e, this won't work.=0A> =0A=0A/cond1 and /cond2 are folders under root on= /dev/ad0s1a; this is the reason whi my exports does not work.=0ASo shoul= d I do something like this:=0A#mkdir /usr/shared/cond1=0A#mkdir /usr/shar= ed/cond2=0A(this is, I think, a better choice also from different points = of view).=0A(exports)=0A/usr/shared -alldirs pc01 pc02 (or -network 192.1= 68.0)=0A(mount for different users)=0A#mount _nfs server:/usr/shared/cond= 1 /mnt/for-user-1=0A#mount _nfs server:/usr/shared/cond2 /mnt/for-user-2=0A= =0ABut, if this sintax is correct, how can I use mapall option?=0A=C2=A0=0A= > Maybe you do something clever with exporting nullfs versions=0A> of the= m and adding those to exports, but I haven't tried that.=0A>=0AThis will = be the next step.=0AThank you.=0AMarco