Bug 124373

Summary: exports(5) doesn't mention network prefixes or IPv6
Product: Documentation Reporter: John Baldwin <jhb>
Component: Books & ArticlesAssignee: Daniel Gerzo <danger>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description John Baldwin freebsd_committer freebsd_triage 2008-06-07 14:20:01 UTC
Back in the 5.x days when the ti-rpc RPC code was brought in, mountd was updated to support IPv6.  This includes putting IPv6 addresses in /etc/exports for the -network flag.  Also, any network address can now be followed by an optional /prefix instead of using -netmask.  Thus, instead of:

/foo -network 192.168.0.0 -netmask 255.255.255.0

you can now do:

/foo -network 192.168.0.0/24

You can also do this now for IPv6:

/foo -network 1:2:3:4::/64

The exports(5) manpage was never updated to document this however and I only found out when I went to look at the code.  I'm actually using IPv6 and /prefix on a box running 6.3, but have verified that HEAD's exports(5) is still missing the data.
Comment 1 Daniel Gerzo freebsd_committer freebsd_triage 2008-06-21 12:37:35 UTC
Hello John,

  does the patch at http://danger.rulez.sk/exports.5.diff work for
  you? It's based on the exports(5) manual page from NetBSD.

  Ruslan, can you please check whethe my changes are correct from the
  view of mdoc?

  Thank you guys.

-- 
Best regards,
 Daniel                          mailto:danger@FreeBSD.org
Comment 2 Daniel Gerzo freebsd_committer freebsd_triage 2008-06-21 12:38:04 UTC
State Changed
From-To: open->feedback
Comment 3 Daniel Gerzo freebsd_committer freebsd_triage 2008-06-21 12:38:04 UTC
Responsible Changed
From-To: freebsd-doc->danger

Set the state to feedback
Comment 4 John Baldwin freebsd_committer freebsd_triage 2008-06-23 16:00:46 UTC
On Saturday 21 June 2008 07:37:35 am Daniel Gerzo wrote:
> Hello John,
>
>   does the patch at http://danger.rulez.sk/exports.5.diff work for
>   you? It's based on the exports(5) manual page from NetBSD.
>
>   Ruslan, can you please check whethe my changes are correct from the
>   view of mdoc?
>
>   Thank you guys.

Looks ok to me.  I would maybe do the markup fixes as a separate commit 
though.

-- 
John Baldwin
Comment 5 dfilter service freebsd_committer freebsd_triage 2008-06-27 17:32:22 UTC
danger      2008-06-27 16:32:04 UTC

  FreeBSD src repository

  Modified files:
    usr.sbin/mountd      exports.5 
  Log:
  SVN rev 180071 on 2008-06-27 16:32:04Z by danger
  
  - markup fixes
  - advise to use rc script to SIGHUP mountd
  - add information about possiblity of using /prefix network notation [1]
  
  PR:             docs/124373
  Reviewed by:    jhb
  Obtained from:  NetBSD [1]
  MFC after:      3 days
  
  Revision  Changes    Path
  1.29      +68 -15    src/usr.sbin/mountd/exports.5
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 6 Daniel Gerzo freebsd_committer freebsd_triage 2008-06-27 17:32:40 UTC
State Changed
From-To: feedback->patched

I have commited the patch into the -HEAD branch.  I didn't opt to 
separate markup fixes as another commit as I don't really see a 
reason to do so for man pages.
Comment 7 dfilter service freebsd_committer freebsd_triage 2008-07-03 18:02:29 UTC
danger      2008-07-03 17:02:04 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    usr.sbin/mountd      exports.5 
  Log:
  SVN rev 180224 on 2008-07-03 17:02:04Z by danger
  
  MFC r180071, r180112, r180154:
  
  - markup fixes
  - advise to use rc script to SIGHUP mountd
  - add some missing words
  - add information about possiblity of using /prefix network notation [1]
  
  PR:             docs/124373 [1]
  Obtained from:  NetBSD [1]
  
  Revision  Changes    Path
  1.28.2.1  +97 -27    src/usr.sbin/mountd/exports.5
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 8 dfilter service freebsd_committer freebsd_triage 2008-07-05 11:29:50 UTC
danger      2008-07-05 10:29:27 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    usr.sbin/mountd      exports.5 
  Log:
  SVN rev 180287 on 2008-07-05 10:29:27Z by danger
  
  MFC r154990, r180071, r180112, r180154:
  
  - use the ".Pa" macro for path names
  - markup fixes
  - advise to use rc script to SIGHUP mountd
  - add some missing words
  - add information about possiblity of using /prefix network notation [1]
  
  PR:             docs/124373 [1]
  Obtained from:  NetBSD [1]
  
  Revision  Changes    Path
  1.27.8.1  +107 -37   src/usr.sbin/mountd/exports.5
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 9 Daniel Gerzo freebsd_committer freebsd_triage 2008-07-05 11:31:28 UTC
State Changed
From-To: patched->closed

Close this one as I have synced exports.5 in RELENG_[76] with -HEAD