Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Sep 1997 12:01:16 -0400 (EDT)
From:      Robert Watson <robert@cyrus.watson.org>
To:        questions@freebsd.org
Subject:   nullfs directory construction, export via NFS?
Message-ID:  <Pine.BSF.3.96.970902115543.1520Q-100000@cyrus.watson.org>

next in thread | raw e-mail | index | archive | help

Suppose I construct a /home partition on a host in the following way:

mkdir /home
mount /dev/wd0c /home
mount /dev/sd0f /homea
mount /dev/sd1f /homeb
mount /dev/sd2f /homec
mount_null /homea/robert /home/robert
mount_null /homea/simon /home/simon
mount_null /homeb/lucy /home/lucy
mount_null /homeb/cvs /home/cvs
mount_null /homec/george /home/george
mount_null /homec/sam /home/sam

So I have a nice consistent /home set up on this machine -- all users home
directories appear as /home/whatever, but they are on different partitions
to deal with real-world hardware.

I would like to be able to export this arrangement to other machines -- is
there a way to do this using:

1. Unmodified nfsd/mountd under FreeBSD, on the server, such that a client
just mounts server:/home and gets access to all the directories.

2. A way to do this using trivially or mildly modified nfsd/mountd under
FreeBSD on the server, such that the client sees server:/home and gets
access to all the directories.

Or do I have to mount /home, /homea, /homeb, /homec on each client, and
construct the nullfs hierarchy on each?

Also, with regard to file system quotas -- does a nullfs mount use the
quota system from the source of the mount?  e.g., will user robert be
restricted by the quota arrangement on /homea, where his home directory is
found, or because it counts as a different mountpoint, will he be
quota-free?

Thanks :).

  Robert N Watson 

Junior, Logic+Computation, Carnegie Mellon University  http://www.cmu.edu/
Network Administrator, SafePort Network Services  http://www.safeport.com/
robert@fledge.watson.org rwatson@safeport.com http://www.watson.org/~robert/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.970902115543.1520Q-100000>