From owner-freebsd-current Sun Aug 1 20:58:40 1999 Delivered-To: freebsd-current@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [209.157.86.2]) by hub.freebsd.org (Postfix) with ESMTP id 5975914C21 for ; Sun, 1 Aug 1999 20:58:34 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.3/8.9.1) id UAA07543; Sun, 1 Aug 1999 20:57:30 -0700 (PDT) (envelope-from dillon) Date: Sun, 1 Aug 1999 20:57:30 -0700 (PDT) From: Matthew Dillon Message-Id: <199908020357.UAA07543@apollo.backplane.com> To: Kevin Day Cc: blapp@attic.ch (Martin Blapp), freebsd-current@FreeBSD.ORG Subject: Re: mountpoint locking with fbsd-nfs References: <199908020347.WAA51467@celery.dragondata.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG :You sure about you can export a directory multiple times? I can't even :export two directories under the same filesystem. : :su-2.03# mount :/dev/wd0s1a on / (NFS exported, local, noatime, soft-updates, writes: sync 3945 async 1317317) :procfs on /proc (local) :su-2.03# cat /etc/exports : :/var home :/var/tmp home :su-2.03# mountd :Aug 1 22:43:01 celery mountd[46042]: can't change attributes for /var/tmp :Aug 1 22:43:01 celery mountd[46042]: bad exports list line /var/tmp home : :It actually exported /, which may not have been what i wanted. :) : :Or did I misunderstand you? : :Kevin You misunderstood me. The problem you have is the fact that NFS exports are usually limited to the physical mount point of the filesystem being exported. Thus it thinks that /var above is the same as /, or that /var/tmp is the same as /var if both happen to be in the same partition. Mount gets confused by that when you specify what it believes to be the same partition several times in the exports list. You can use the '-alldirs' flag in the exports list to export a partition and allow any subdirectory within that partition to be mounted instead of the partition itself. There may be a way to export several specific subdirectories in the same partition but I'm not sure. I was talking about things like: mount apollo:/usr m1 mount apollo:/usr m2 mount apollo:/usr m3 mount apollo:/usr m3 mount apollo:/usr m3 I can import a filesystem as many times as I want, and even overlay mount points. -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message