From nobody@FreeBSD.org  Fri Jun 22 07:00:37 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 319D9106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 22 Jun 2012 07:00:37 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 1D53D8FC16
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 22 Jun 2012 07:00:37 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q5M70ZQM061284
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 22 Jun 2012 07:00:35 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q5M70ZHO061283;
	Fri, 22 Jun 2012 07:00:35 GMT
	(envelope-from nobody)
Message-Id: <201206220700.q5M70ZHO061283@red.freebsd.org>
Date: Fri, 22 Jun 2012 07:00:35 GMT
From: vermaden <vermaden@interia.pl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: zfs umount refers to umount(1M) but should to umount(8)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         169317
>Category:       docs
>Synopsis:       zfs umount refers to umount(1M) but should to umount(8)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 22 07:10:01 UTC 2012
>Closed-Date:    
>Last-Modified:  Sun Sep 02 16:52:56 UTC 2012
>Originator:     vermaden
>Release:        9-STABLE
>Organization:
>Environment:
FreeBSD e6400 9.0-STABLE FreeBSD 9.0-STABLE #0: Wed Jun 13 15:28:54 UTC 2012     root@build-amd64-fbsd.allbsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
Hi,

when trying to umount pool/some/dataset and zfs(8)
fails because pool/some/dataset/inside is also
mounted, then it fails with error message that
refers to umount(1M) instead of umount(8).

  # zfs umount pool/some/dataset
  cannot unmount 'pool/some/dataset': legacy mountpoint
  use umount(1M) to unmount this filesystem

There are actually LOTS of such references, just type:

  # grep -r -E " [a-z]+\(1M\) " /usr/src

Regards,
vermaden
>How-To-Repeat:
# zfs umount pool/some/dataset
cannot unmount 'pool/some/dataset': legacy mountpoint
use umount(1M) to unmount this filesystem

# grep -r -E " [a-z]+\(1M\) " /usr/src
>Fix:
1. Find all 'foreign' references with:
   # grep -r -E " [a-z]+\(1M\) " /usr/src

2. Update/change them to our local ones, for example:
   umount(1M) --> umount(8)



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-amd64->freebsd-doc 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Jun 25 08:22:08 UTC 2012 
Responsible-Changed-Why:  
reclassify 

http://www.freebsd.org/cgi/query-pr.cgi?pr=169317 
Responsible-Changed-From-To: freebsd-doc->eadler 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Sun Jul 1 15:48:48 UTC 2012 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=169317 
Responsible-Changed-From-To: eadler->freebsd-doc 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Sun Sep 2 16:52:53 UTC 2012 
Responsible-Changed-Why:  
I won't be looking at this PR for a while and I need to clear some out 
of my queue 

http://www.freebsd.org/cgi/query-pr.cgi?pr=169317 
>Unformatted:
