|
|
@ -140,7 +140,6 @@ class Fuse extends Nanoresource {
|
|
|
|
this.ops = ops
|
|
|
|
this.ops = ops
|
|
|
|
this._thread = null
|
|
|
|
this._thread = null
|
|
|
|
this._handlers = this._makeHandlerArray()
|
|
|
|
this._handlers = this._makeHandlerArray()
|
|
|
|
this._closed = false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const implemented = [binding.op_init, binding.op_error, binding.op_getattr]
|
|
|
|
const implemented = [binding.op_init, binding.op_error, binding.op_getattr]
|
|
|
|
if (ops) {
|
|
|
|
if (ops) {
|
|
|
@ -229,8 +228,6 @@ class Fuse extends Nanoresource {
|
|
|
|
// Lifecycle methods
|
|
|
|
// Lifecycle methods
|
|
|
|
|
|
|
|
|
|
|
|
_open (cb) {
|
|
|
|
_open (cb) {
|
|
|
|
if (this._closed) return process.nextTick(cb, new Error('Cannot reopen a closed FUSE instance.'))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this._thread = Buffer.alloc(binding.sizeof_fuse_thread_t)
|
|
|
|
this._thread = Buffer.alloc(binding.sizeof_fuse_thread_t)
|
|
|
|
this._openCallback = cb
|
|
|
|
this._openCallback = cb
|
|
|
|
|
|
|
|
|
|
|
@ -525,11 +522,11 @@ class Fuse extends Nanoresource {
|
|
|
|
// Public API
|
|
|
|
// Public API
|
|
|
|
|
|
|
|
|
|
|
|
mount (cb) {
|
|
|
|
mount (cb) {
|
|
|
|
return this._open(cb)
|
|
|
|
return this.open(cb)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
unmount (cb) {
|
|
|
|
unmount (cb) {
|
|
|
|
return this._close(cb)
|
|
|
|
return this.close(cb)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
errno (code) {
|
|
|
|
errno (code) {
|
|
|
|