1
0
mirror of https://github.com/fuse-friends/fuse-native synced 2024-10-27 18:34:01 +00:00

default bytesRead,Written to 0

This commit is contained in:
Mathias Buus 2020-05-28 12:41:53 +02:00
parent 4606e58acd
commit 56e4b99e04

View File

@ -458,13 +458,13 @@ class Fuse extends Nanoresource {
_op_read (signal, path, fd, buf, len, offsetLow, offsetHigh) {
this.ops.read(path, fd, buf, len, getDoubleArg(offsetLow, offsetHigh), (err, bytesRead) => {
return signal(err, bytesRead, buf.buffer)
return signal(err, bytesRead || 0, buf.buffer)
})
}
_op_write (signal, path, fd, buf, len, offsetLow, offsetHigh) {
this.ops.write(path, fd, buf, len, getDoubleArg(offsetLow, offsetHigh), (err, bytesWritten) => {
return signal(err, bytesWritten, buf.buffer)
return signal(err, bytesWritten || 0, buf.buffer)
})
}