Closed DUOLabs333 closed 1 year ago
When calling ls on a file in a mounted directory, files that are symlinks show up as their underlying files. This is because ls corresponds to a Lstat call (which doesn't follow symlinks), while the NFS server calls Stat.
ls
Sorry, I meant when doing something like ls -alh foo.txt.
ls -alh foo.txt
sure.
stat
lstat
ReadDirPlus
Oh, so lstat and stat gets converted to the same call?
i believe that's correct
When calling
ls
on a file in a mounted directory, files that are symlinks show up as their underlying files. This is becausels
corresponds to a Lstat call (which doesn't follow symlinks), while the NFS server calls Stat.