Subject: Union filesystem problem
To: None <current-users@NetBSD.ORG>
From: Dave Huang <khym@bga.com>
List: current-users
Date: 11/01/1997 03:35:36
I just noticed this today, although since I haven't changed anything in a
few (3 or 4) days, this probably didn't just start happening today...

I keep my NetBSD source tree in /usr/src, and have /usr/src.local union
mounted over it for my local changes and stuff. The fstab line looks like
this:

/usr/src /usr/src.local union rw,-b

I think there's some sort of problem with directories in the upper layer
that don't exist in the lower layer or something. For example, ls -l
/usr/src.local/sys/arch/mac68k/compile looks like this:

total 22
drwxr-xr-x  4028275318 root  wheel  6144 Oct  3 16:40 FLUFF
drwxrwxr-x  4028275319 root  wheel  7168 Nov  1 01:52 GEDD
drwxr-xr-x  4028275318 root  wheel  8704 Oct 31 22:23 MACE

Pretty weird link counts, huh? Any subdirectories have the same problem
too. For example, /usr/src.local/sys/arch/mac68k/compile/MACE/lib looks
like:
drwxr-xr-x  4028275320 root  wheel  512 Oct 30 07:11 lib

The directories that also exist in /usr/src, such as the ones in
/usr/src.local/sys/arch/mac68k look fine. Also, if I "mkdir
/usr/src/sys/arch/mac68k/compile/MACE", ls -l
/usr/src.local/sys/arch/mac68k/compile looks like:

total 22
drwxr-xr-x  4028275318 root  wheel  6144 Oct  3 16:40 FLUFF
drwxrwxr-x  4028275319 root  wheel  7168 Nov  1 01:52 GEDD
drwxr-xr-x           5 root  wheel  8704 Oct 31 22:23 MACE

Also, if I umount /usr/src.local, everything looks normal.

My system is:
NetBSD dahan.metonymy.com 1.3_ALPHA NetBSD 1.3_ALPHA (SPIFF) #149: Sat Nov
1 01:18:13 CST 1997
root@dahan.metonymy.com:/usr/src.local/sys/arch/i386/compile/SPIFF i386

compiled from October 31 sources. When I first noticed the problem, the
kernel was from Oct 27, I think. I compiled a new kernel to see if the
problem'd go away, but it didn't...

So, is anyone else seeing this?

Name: Dave Huang     |   Mammal, mammal / their names are called /
INet: khym@bga.com   |   they raise a paw / the bat, the cat /
FurryMUCK: Dahan     |   dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 22 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++