Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Aug 1999 20:57:30 -0700 (PDT)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        Kevin Day <toasty@dragondata.com>
Cc:        blapp@attic.ch (Martin Blapp), freebsd-current@FreeBSD.ORG
Subject:   Re: mountpoint locking with fbsd-nfs
Message-ID:  <199908020357.UAA07543@apollo.backplane.com>
References:   <199908020347.WAA51467@celery.dragondata.com>

next in thread | previous in thread | raw e-mail | index | archive | help
: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 
					<dillon@backplane.com>



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908020357.UAA07543>