Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
lt2a/sr /home2/sr 4> rm -fr bar foo
lt2a/sr /home2/sr 5> echo woot >bar
lt2a/sr /home2/sr 6> ln -s bar foo
lt2a/sr /home2/sr 7> ls -dl bar foo
/bin/ls: foo: No such file or directory
-rw-r--r-- 1 sr sr 5 May 25 18:03 bar
lrwxrwxrwx 1 sr sr 3 May 25 18:03 foo -> bar
lt2a/sr /home2/sr 8> ls -dl foo
/bin/ls: foo: No such file or directory
lrwxrwxrwx 1 sr sr 3 May 25 18:03 foo -> bar
lt2a/sr /home2/sr 9>
obviously, foo exists as well as bar that it points to.
I love puzzles, but another clue needed.
Anything special about the distro or file system?
Ideally, give us a way to reproduce it.
Does this only happen in one particularly unique environment?
(I'm n00bCuruous why different from typical message:
[no /bin/], ls: [1st error from stat(2) returning ENOENT] cannot access [quoted]'filename':
No such ... [same ls msg])
Yup, ENOENT isn't coming from lstat() so file exists... so next most list is the listxattr handler on the VFS struct.... ie. You're using a file system that doesn't handle listxattr properly.
So the question is very much "which file system type is 'foo' on?"
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,800
Rep:
Quote:
Originally Posted by Skaperen
what is ls trying to tell me?
Code:
lt2a/sr /home2/sr 4> rm -fr bar foo
lt2a/sr /home2/sr 5> echo woot >bar
lt2a/sr /home2/sr 6> ln -s bar foo
lt2a/sr /home2/sr 7> ls -dl bar foo
/bin/ls: foo: No such file or directory
-rw-r--r-- 1 sr sr 5 May 25 18:03 bar
...
Just out of curiosity, does it work differently if you issue:
Yup, ENOENT isn't coming from lstat() so file exists... so next most list is the listxattr handler on the VFS struct.... ie. You're using a file system that doesn't handle listxattr properly.
So the question is very much "which file system type is 'foo' on?"
it's an old encfs file system intended to encrypt part of an ext4 file system. encfs is lousy >encryption< but it solved a difficult situation long ago when i had just one drive. my next plan is to use real encryption on the whole 2nd drive when i move to Xubuntu 20.04 or maybe 22.04. no more encfs for me.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.