From nobody@FreeBSD.org  Sun Jan 20 14:41:43 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id 4D714C36
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 20 Jan 2013 14:41:43 +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 36E216F0
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 20 Jan 2013 14:41:43 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r0KEfgww023925
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 20 Jan 2013 14:41:42 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r0KEfgwJ023910;
	Sun, 20 Jan 2013 14:41:42 GMT
	(envelope-from nobody)
Message-Id: <201301201441.r0KEfgwJ023910@red.freebsd.org>
Date: Sun, 20 Jan 2013 14:41:42 GMT
From: David Naylor <naylor.b.david@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: unionfs and devfs misbehaviour
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         175449
>Category:       kern
>Synopsis:       [unionfs] unionfs and devfs misbehaviour
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-fs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 20 14:50:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Wed Jul 03 01:00:05 UTC 2013
>Originator:     David Naylor
>Release:        
>Organization:
Private
>Environment:
FreeBSD ultra.dg 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0: Wed Oct 10 21:08:01 SAST 2012     root@dragon.dg:/tmp/home/freebsd9/src/sys/MODULAR  amd64
>Description:
When creating a uniofs based chroot I discovered some strange behaviour with dev/.  
>How-To-Repeat:
# mkdir bottom-p bottom/dev top
# mount -t unionfs -o below bottom top
# mount -t tmpfs tmdevfs devfs top/dev
# ls -l top/dev/null
ls: top/dev/null: No such file or directory
# touch top/dev/null
# ls -l top/dev/null
-rw-r--r--  1 root  wheel  0 Jan 20 16:35 top/dev/null
# touch top/dev
# ls -l top/dev/null
crw-rw-rw-  1 root  wheel    0,  18 Jan 20 16:34 top/dev/null

>Fix:
Workaround:

# mkdir bottom-p bottom/dev top
# mount -t unionfs -o below bottom top
# mount -t tmpfs tmdevfs devfs top/dev
# touch top/dev

>Release-Note:
>Audit-Trail:

From: David Naylor <naylor.b.david@gmail.com>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: kern/175449: unionfs and devfs misbehaviour
Date: Mon, 21 Jan 2013 20:17:08 +0200

 --nextPart1374642.2FTBem0oxv
 Content-Type: Text/Plain;
   charset="us-ascii"
 Content-Transfer-Encoding: 7bit
 
 Another example, this time using nullfs:
 
 # mkdir -p bottom top nullfs/dir top/mnt
 # touch nullfs/dir/file
 # mount -t unionfs bottom top
 # mount -t nullfs nullfs top/mnt
 # ls top/mnt/dir/
 ls: top/mnt/dir/: No such file or directory
 # ls top/mnt/
 dir
 # ls top/mnt/dir/
 file
 
 --nextPart1374642.2FTBem0oxv
 Content-Type: application/pgp-signature; name=signature.asc 
 Content-Description: This is a digitally signed message part.
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.19 (FreeBSD)
 
 iEYEABECAAYFAlD9higACgkQUaaFgP9pFrKVeACeJApWsuEcFZzbVw+rN4jW5PiC
 tAUAn3WwUwIaOok6eArSUo4F4QjY9zAb
 =sO20
 -----END PGP SIGNATURE-----
 
 --nextPart1374642.2FTBem0oxv--
Responsible-Changed-From-To: freebsd-bugs->daichi 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Mar 10 04:56:44 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=175449 
State-Changed-From-To: open->open 
State-Changed-By: linimon 
State-Changed-When: Wed Jul 3 00:50:32 UTC 2013 
State-Changed-Why:  
commit bit has been taken in for safekeeping. 


Responsible-Changed-From-To: daichi->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Jul 3 00:50:32 UTC 2013 
Responsible-Changed-Why:  

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