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:
parent
4606e58acd
commit
56e4b99e04
4
index.js
4
index.js
@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user