bindfs icon indicating copy to clipboard operation
bindfs copied to clipboard

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

Open DUOLabs333 opened this issue 2 years ago • 6 comments

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 avatar Apr 03 '22 03:04 DUOLabs333

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

DUOLabs333 avatar Apr 03 '22 23:04 DUOLabs333

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

DUOLabs333 avatar Apr 04 '22 14:04 DUOLabs333

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.

mpartel avatar Apr 20 '22 11:04 mpartel

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

DUOLabs333 avatar May 19 '22 00:05 DUOLabs333

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 avatar Jul 12 '22 18:07 DUOLabs333

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.

DUOLabs333 avatar Jul 14 '22 01:07 DUOLabs333