Subject: "doubled" directories on union mounted fs
To: None <current-users@netbsd.org>
From: Kurt Schreiner <ks@ub.uni-mainz.de>
List: current-users
Date: 05/08/2007 11:33:03
Hi,

I'm using union mounts sometimes on a read only source tree, see below:

>-1017: uname -a 
NetBSD ipaddi-bsd 4.99.19 NetBSD 4.99.19 (PADDI) #436: Sun May  6 19:42:27 MEST 2007  ks@ipaddi-bsd:/u/NetBSD/arch/i386/obj/sys/arch/i386/compile/PADDI i386

>-1018: mount
/dev/wd0a on / type ffs (local)
/dev/wd0e on /var type ffs (noatime, soft dependencies, local)
procfs on /proc type procfs (local)
kernfs on /kern type kernfs (local)
tmpfs on /tmp type tmpfs (nosuid, nodev, local)
/dev/wd0f on /opt type ffs (noatime, soft dependencies, local)
/dev/wd0g on /u type ffs (noatime, soft dependencies, NFS exported, local)
/dev/wd0h on /home type ffs (noatime, soft dependencies, local)
<above>:/u/NetBSD/lsrc on /u/NetBSD/src type union (nosuid, nodev, local, mounted by ks)

>-1019: df
Filesystem             1K-blocks      Used     Avail Capacity  Mounted on
/dev/wd0a                 544543    408179    109137    78%    /
/dev/wd0e                1095007    483204    557053    46%    /var
procfs                         4         4         0   100%    /proc
kernfs                         1         1         0   100%    /kern
tmpfs                    1829236        64   1829172     0%    /tmp
/dev/wd0f                4199534   2543124   1446434    63%    /opt
/dev/wd0g               31301452  25543444   4192936    85%    /u
/dev/wd0h               38026892  33006822   3118726    91%    /home
<above>:/u/NetBSD/lsrc  56844896  51086888   4192936    92%    /u/NetBSD/src

And since some days I find directories are "doubled" in ls(1) output:
(or tcsh completion, just anything listing directorys one way or the other...)

>-1021: ls -l /usr/src/ | head -15
total 352094
-rw-r-----    1 ks    staff      37006 Apr 13 22:33 BUILDING
drwxr-x---    2 ks    staff        512 Apr 15  2006 CVS/
drwxr-x---    2 ks    staff        512 Apr 15  2006 CVS/
-rw-r-----    1 ks    staff      12420 Mar  7 18:02 Makefile
-rw-r--r--    1 ks    staff        352 Apr 10  2002 Makefile.inc
-rw-r-----    1 ks    staff      35610 Apr 30 23:33 UPDATING
drwxr-x---   72 ks    staff        512 Aug  4  2006 bin/
drwxr-x---   72 ks    staff        512 Aug  4  2006 bin/
-rwxr-x---    1 ks    staff      34649 Apr 14 23:01 build.sh*
drwxr-x---   12 ks    staff        512 Apr 28  2006 common/
drwxr-x---   12 ks    staff        512 Apr 28  2006 common/
drwxr-x---    8 ks    staff        512 Apr 15  2006 crypto/
drwxr-x---    8 ks    staff        512 Apr 15  2006 crypto/
-rw-r--r--    1 ks    staff  279207833 Feb 17 16:19 cscope.out

Any idea anyone what's up with this? Should I send-pr?

Kurt