Added FUSE support #55

Merged
Elara6331 merged 65 commits from yannickulrich/itd:fuse into master 2023-03-25 22:23:52 +00:00
Showing only changes of commit 4333b83ca2 - Show all commits

View File

@ -246,6 +246,15 @@ func (fh *bytesFileReadHandle) Read(ctx context.Context, dest []byte, off int64)
return fuse.ReadResultData(fh.content[off:end]), 0 return fuse.ReadResultData(fh.content[off:end]), 0
} }
type sensorFileReadHandle struct {
ch <-chan uint8
}
var _ = (fs.FileReader)((*sensorFileReadHandle)(nil))
func (fh *sensorFileReadHandle) Read(ctx context.Context, dest []byte, off int64) (fuse.ReadResult, syscall.Errno) {
return nil, 0
}
type bytesFileWriteHandle struct { type bytesFileWriteHandle struct {
content []byte content []byte
path string path string