I have a permission error in a Rancher container's shell when accessing certain directory, but the permissions are correctly set. Then I noticed that the link count for said directory is zero, as shown:
But for any directory, the minimum amount of links is 2, self .
and parent ..
. So why would it show a 0 here? I don't get it. Right now I don't have access to this shell to check which inode it's pointing to (ls -i), but I guess it would be empty (I don't really know, TBH).
I'll try removing and then mkdir
ing it again to see if that solves it, but I'd really like to understand why this is happening.
Thanks!!
PS: I don't know if it being a Rancher container affects in any way.
.
or..
links (I believebtrfs
is one such filesystem). So, what was the command, and what was the error?rm -rf /backup
but didn't work. It says that "the resource is busy".