[Bug 533761] Re: Redirected filesystem using bind option suddenly thinks every file is a directory

Captain Chaos launchpad at chaos.demon.nl
Wed Mar 10 10:27:34 UTC 2010


It appears to be a recurrent problem. I can unmount the bound
directories and mount them again, or reboot, and the problem will be
gone. But after a while it recurs. I haven't found a pattern yet as to
when it recurs, but I have found a new oddity:

Not only does Linux think every file is a directory, but it even thinks
non-existant files are directories!!! I can "cd" to a non-existent
directory completely successfully as far as the shell is concerned, it
even thinks I'm in the directory. Here's a snippet I copy and pasted
from my terminal window:

pepijn at peregrin:~/Documents$ cd aasdghf
pepijn at peregrin:~/Documents/aasdghf$ cd fnurk
pepijn at peregrin:~/Documents/aasdghf/fnurk$ cd blah
pepijn at peregrin:~/Documents/aasdghf/fnurk/blah$

Needless to say, I don't have a directory (nor a file) called aasdghf in
my Documents directory. If I do an "ls" at this point I see the contents
of the Document directory (with every file listed as a directory with
the same permissions as the Documents directory itself). If I try to do
the same from /home/pepijn_remote I get:

pepijn at peregrin:/home/pepijn_remote/Documents$ cd aasdghf
bash: cd: aasdghf: No such file or directory

This is quite a bad bug. It happens inpredictably (but frequently),
there is no workaround and when it happens I can't continue working and
have to reboot (or spend a lot of time finding all programs with open
files in one of the directories so I can unmount them).

It would be quite nice if somebody could please respond.

-- 
Redirected filesystem using bind option suddenly thinks every file is a directory
https://bugs.launchpad.net/bugs/533761
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to util-linux in ubuntu.




More information about the kernel-bugs mailing list