Skip to content

Commit

Permalink
default bytesRead,Written to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed May 28, 2020
1 parent 4606e58 commit 56e4b99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
}

Expand Down

0 comments on commit 56e4b99

Please sign in to comment.