forked from Elara6331/itd
Use EINVAL for Invalid Offset error in FUSE
This commit is contained in:
parent
ee5cb174fb
commit
5ce83902a4
@ -58,7 +58,7 @@ func syscallErr(err error) syscall.Errno {
|
|||||||
case blefs.ErrFileWriteOnly: // file is write only
|
case blefs.ErrFileWriteOnly: // file is write only
|
||||||
return syscall.EACCES
|
return syscall.EACCES
|
||||||
case blefs.ErrInvalidOffset: // invalid file offset
|
case blefs.ErrInvalidOffset: // invalid file offset
|
||||||
return syscall.EFAULT // TODO
|
return syscall.EINVAL
|
||||||
case blefs.ErrOffsetChanged: // offset has already been changed
|
case blefs.ErrOffsetChanged: // offset has already been changed
|
||||||
return syscall.ESPIPE
|
return syscall.ESPIPE
|
||||||
case blefs.ErrReadOpen: // only one file can be opened for reading at a time
|
case blefs.ErrReadOpen: // only one file can be opened for reading at a time
|
||||||
|
Loading…
Reference in New Issue
Block a user