Subject: Re: Union filesystem problem
To: Dave Huang <khym@bga.com>
From: Bill Studenmund <skippy@macro.stanford.edu>
List: current-users
Date: 11/01/1997 15:05:02
On Sat, 1 Nov 1997, Dave Huang wrote:

> 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?

I saw something weird like this once when I ran my altroot on my i386 (to
see how the new compile went). ls did weird stuff like that for
EVERYTHING. re-compiling ls (for some unknown reason) made it all work.

Maybe try re-compiling world?

Good luck!

Take care,

Bill