mpartel / bindfs

Mount a directory elsewhere with changed permissions.
https://bindfs.org/
GNU General Public License v2.0
449 stars 64 forks source link

`Input/output error` when accessing `/dev/pts/0` #111

Closed DUOLabs333 closed 10 months ago

DUOLabs333 commented 2 years ago

I'm using sudo bindfs -o direct_io,allow_other,dev /dev run/dev. However, accessing run/dev/pts/0 gives me Input/output error.

DUOLabs333 commented 2 years ago

Seems to be an error with posix_openpt (2: No such file or directory)) = 86

DUOLabs333 commented 2 years ago

cat /dev/ptmx gives cat: /dev/ptmx: No such file or directory. However, doing chmod 666 diff/pts/ptmx gives me No such device.

mpartel commented 2 years ago

Yeah, sorry, I have very little time to work on bindfs these days :disappointed: It seems unrealistic, possibly even technically impossible with FUSE, to make bindfs emulate magic filesystems like /proc and /dev entirely faithfully.

DUOLabs333 commented 2 years ago

It seems that bindfs fails to open files that are submounts/different filesystems, which is what /dev/ptmx is.

DUOLabs333 commented 2 years ago

It seems unrealistic, possibly even technically impossible with FUSE, to make bindfs emulate magic filesystems like /proc and /dev entirely faithfully.

Yes, it seems that for some reason, FUSE does not react well with devpts.

DUOLabs333 commented 2 years ago

Yes, it seems that for some reason, FUSE does not react well with devpts.

I take that back, that's not why. Apparently, you can't cat certain character files (which is what /dev/ptmx and /dev/pts/* are) that are on ext4.