Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ls seems to omit failed entries #11

Open
nekopsykose opened this issue Aug 3, 2023 · 3 comments
Open

ls seems to omit failed entries #11

nekopsykose opened this issue Aug 3, 2023 · 3 comments

Comments

@nekopsykose
Copy link

while working with sshfs:

l = ls -la --color=always

$ l    
ls: soulseek-remote: Socket not connected
total 12582928
drwxr-xr-x   8 root   root          129 Aug  2 14:05 .
drwxr-xr-x   1 root   root           18 Aug  2 15:33 ..
drwxr-xr-x   3 demon  demon         125 Aug  2 14:33 bak
drwxr-xr-x  18 demon  demon         247 Jul 22 12:24 cache
drwxr-xr-x  46 demon  demon        4096 Aug  2 11:22 soulseek
drwxr-xr-x   2 demon  demon        4096 Aug  2 11:22 soulseek-incomplete
-rw-------   1 root   root   6442450944 Feb 12 09:44 temp-swap
drwsr-sr-x   5 demon  demon         257 Jul 28 01:09 torrents
$ mkdir soulseek-remote                        
mkdir: soulseek-remote: File exists
$ doas umount soulseek-remote   
$ l
total 12582928
drwxr-xr-x   8 root   root          129 Aug  2 14:05 .
drwxr-xr-x   1 root   root           18 Aug  2 15:33 ..
drwxr-xr-x   3 demon  demon         125 Aug  2 14:33 bak
drwxr-xr-x  18 demon  demon         247 Jul 22 12:24 cache
drwxr-xr-x  46 demon  demon        4096 Aug  2 11:22 soulseek
drwxr-xr-x   2 demon  demon        4096 Aug  2 11:22 soulseek-incomplete
drwxr-xr-x   2 demon  666             6 May 20 06:41 soulseek-remote
-rw-------   1 root   root   6442450944 Feb 12 09:44 temp-swap
drwsr-sr-x   5 demon  demon         257 Jul 28 01:09 torrents

soulseek-remote was a (failed) target mount of sshfs ... soulseek-remote. seems when it's in a failed state it's omitted from the output (but just gives a lookup error)

should probably be displayed anyway, perhaps with some missing info(?)

@q66
Copy link
Member

q66 commented Nov 10, 2023

what does gnu ls display?

@nekopsykose
Copy link
Author

gcoreutils:

$ ~/downloads/usr/bin/coreutils --coreutils-prog=ls -la 
coreutils: cannot access 'soulseek-remote': Socket not connected
total 16
drwxr-xr-x  8 root  root   112 Oct  8 18:53 .
drwxr-xr-x  1 root  root    18 Aug  2 15:33 ..
drwxr-xr-x  2 demon demon  107 Sep 21 13:39 bak
drwxr-xr-x 18 demon demon  247 Jul 22 12:24 cache
drwxr-xr-x 78 demon demon 4096 Nov  9 17:13 soulseek
drwxr-xr-x  2 demon demon 4096 Oct 25 19:30 soulseek-incomplete
d?????????  ? ?     ?        ?            ? soulseek-remote
drwsr-sr-x 28 demon demon 4096 Nov  8 00:26 torrents

busybox is like ours:

$ ~/downloads/bin/busybox ls -la 
ls: ./soulseek-remote: Socket not connected
total 16
drwxr-xr-x    8 root     root           112 Oct  8 18:53 .
drwxr-xr-x    1 root     root            18 Aug  2 15:33 ..
drwxr-xr-x    2 demon    demon          107 Sep 21 13:39 bak
drwxr-xr-x   18 demon    demon          247 Jul 22 12:24 cache
drwxr-xr-x   78 demon    demon         4096 Nov  9 17:13 soulseek
drwxr-xr-x    2 demon    demon         4096 Oct 25 19:30 soulseek-incomplete
drwsr-sr-x   28 demon    demon         4096 Nov  8 00:26 torrents

@q66
Copy link
Member

q66 commented Nov 13, 2023

i briefly looked what it'd take to patch it in and came to the conclusion that it's not important enough to be worth the effort necessary

it's a rare case and you already get an indication of existence at the beginning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants