Subject: kern/11731: getdents(2) doesn't work right on unionfs w/nfs lower layer
To: None <gnats-bugs@gnats.netbsd.org>
From: Dave Huang <khym@bga.com>
List: netbsd-bugs
Date: 12/13/2000 16:29:19
>Number: 11731
>Category: kern
>Synopsis: getdents(2) doesn't work right on unionfs w/nfs lower layer
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 13 16:25:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: Dave Huang
>Release: NetBSD 1.5N as of December 12, 2000
>Organization:
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 25 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++
>Environment:
System: NetBSD dahan.metonymy.com 1.5N NetBSD 1.5N (SPIFF) #0: Wed Dec 13 17:58:06 CST 2000 khym@dahan.metonymy.com:/usr/obj.i386/SPIFF i386
>Description:
getdents(2) doesn't show files/directories that exist only in
the lower layer of a unionfs if the lower layer is a NFS filesystem.
However, they're actually there, and can be opened, cd'd into, etc...
>How-To-Repeat:
dahan ~# df /usr2 /tmp/upper
Filesystem 1K-blocks Used Avail Capacity Mounted on
yerfable:/usr2 44666858 10251631 32181884 24% /usr2
/dev/sd0a 30733 22172 7024 75% /
dahan ~# ls -aF /tmp/upper
./ ../
dahan ~# ls -aF /usr2
./ home/ pkgsrc/ testfile
../ obj.alpha/ songs/ win/
dahan ~# cat /usr2/testfile
hi, this is a test file
dahan ~# mount -t union -o -b /usr2 /tmp/upper
Filesystem 1K-blocks Used Avail Capacity Mounted on
yerfable:/usr2 44666858 10251631 32181884 24% /usr2
<below>:/usr2 1893756 1885195 7024 99% /tmp/upper
dahan ~# ls -aF /tmp/upper
./ ../
dahan ~# cd /tmp/upper
dahan /tmp/upper# cat testfile
hi, this is a test file
dahan /tmp/upper# cd home
dahan /tmp/upper/home# cd ..
dahan /tmp/upper# ls -aF
./ ../ home/
>Fix:
No idea...
>Release-Note:
>Audit-Trail:
>Unformatted: