Ticket #4289 (closed defect: invalid)
sshfs mounts cannot be browsed with mc
Reported by: | basz | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | mc-vfs | Version: | 4.8.26 |
Keywords: | sshfs empty browse | Cc: | |
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: |
Description (last modified by andrew_b) (diff)
remote directory mounted with sshfs (FUSE) can be normally used from cmd-line, however it cannot be browsed with mc 2.8.26. the same mount point, on the same host, works fine with mc 2.8.22.
example steps to reproduce:
- /etc/fstab mount looks like this:
user@host:/mnt/remote/stuff /mnt/stuff fuse.sshfs noauto,_netdev,user,transform_symlinks,identityfile=/path/to/key,default_permissions,uid=user,gid=user,allow_other,cache=no 0 0
- docker run -it --rm -v /mnt/stuff:/mnt:ro debian:11
- apt update && apt install mc
- mc /mnt
directory will appear to be empty, even though ls on the same dir shows real content.
changing debian image version in step 2 from 11 to 10 allows to browse mountpoint's content as usual.
note that mc 2.8.22 is the default in debian:10 (buster - aka: oldstable) and mc 2.8.26 is the default in debian:11 (bullseye - aka: stable).
Change History
comment:2 Changed 3 years ago by andrew_b
- Component changed from mc-core to mc-vfs
- Description modified (diff)
- Milestone changed from 4.8.28 to Future Releases
comment:4 Changed 3 years ago by basz
yes, this appears to be a problem with sshfs. i've checked the linked program and indeed on "regular" directories, i get the same output for both reads, yet for sshfs-mounts first read is good, but the second one yields empty result. unfortunately disabling caching does not seem to help.
anyway - we can close this ticket. i'll followup with sshfs team.
thank you. :)
comment:5 Changed 3 years ago by basz
ticket on sshfs:
https://github.com/libfuse/sshfs/issues/278
+ LC_MESSAGES=C
+ mc -V
GNU Midnight Commander 4.8.26
Built with GLib 2.66.8
Built with S-Lang 2.3.2 with terminfo database
With builtin Editor and Aspell support
With subshell support as default
With support for background operations
With mouse support on xterm and Linux console
With support for X11 events
With internationalization support
With multiple codepages support
With ext2fs attributes support
Virtual File Systems:
Data types:
+ LC_MESSAGES=C
+ mc -F
Home directory: /home/user
Profile root directory: /home/user
[System data]
[User data]
+ mc --configure-options