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   Previous Message  |  Next Message 
 /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  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 /etc/exports format   new
Mike Erickson 15-01-03 21:44 
 Re: /etc/exports format   new
Dan Langille 15-01-03 23:08 
 Re: /etc/exports format   new
Mike Erickson 30-01-03 14:28 
 file system or file management   new
wijanarto 21-12-04 00:44 


 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