Use EINVAL for Invalid Offset error in FUSE

This commit is contained in:
Elara 2023-03-26 13:01:25 -07:00
parent 948678790a
commit 947ab7fbcb
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ func syscallErr(err error) syscall.Errno {
case blefs.ErrFileWriteOnly: // file is write only
return syscall.EACCES
case blefs.ErrInvalidOffset: // invalid file offset
return syscall.EFAULT // TODO
return syscall.EINVAL
case blefs.ErrOffsetChanged: // offset has already been changed
return syscall.ESPIPE
case blefs.ErrReadOpen: // only one file can be opened for reading at a time