The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 /etc/exports format
Author: Mike Erickson 
Date:   15-01-03 21:44

You say that all exports from a single fs must be exported on one line, man 5 exports says the following:

---
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. The latter exports the filesystem to the ``world'' and should be used only when the filesystem contains public information.
---

I see this as allowing multiple exports on a filesystem on one line, but not requiring that all exports for a given file system must be on a single line. I have NFS exports from a single filesystem on multiple lines and it appears to work fine so far.

Furthermore, if this were indeed a requirement, it'd be impossible to have two mutually exclusive exports on a single filesystem. That is, to export /usr/ports to host A and /usr/share to host B where /usr/ is a single filesystem.

Corrections welcome,

mike

Reply To This Message
 
 Re: /etc/exports format
Author: Dan Langille 
Date:   15-01-03 23:08

Mike Erickson wrote:
>
> You say that all exports from a single fs must be
> exported on one line, man 5 exports says the following:
>
> ---
> 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. The
> latter exports the filesystem to the ``world'' and should be
> used only when the filesystem contains public information.
> ---

I find the above unnecessarily difficult to comprehend. A fault easily fixed by a few practical examples. This is a fault I find common amongst many many man pages.

> I see this as allowing multiple exports on a filesystem on
> one line, but not requiring that all exports for a given file
> system must be on a single line. I have NFS exports from a
> single filesystem on multiple lines and it appears to work
> fine so far.

Have you been able to do the following on two lines?

/usr/ports /usr/ports/distfiles -maproot=0 -network 192.168.0.0 - mask 255.255.255.0

Reply To This Message
 
 Re: /etc/exports format
Author: Mike Erickson 
Date:   30-01-03 14:28

No, I haven't been able to do that one two lines.

I agree that the man page is unnecessarily difficult to comprehend. I'd like to try to reword it and submit a PR and patch. Any suggestions on how to express this? I'm not very confident of my own understanding.

I think breaking up this sentence is the key:
> 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.

pre-coffee verbose (and probably erroneous) breakdown:
A host may be specified only once for each local filesystem. The way to get around this is to use the -alldirs flag and then selectively mount different points on a server-local filesystem from the client.

I still don't understand the comment regarding default entries.

mike

Reply To This Message
 
 file system or file management
Author: wijanarto 
Date:   21-12-04 00:44

i want to know about file system aor file management in freebsd, at least the concept to reference my task in class

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org