From f0098a39cbb9d959933f6b03ff965febb226ab5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Leurent?= <131.js@cloudyks.org> Date: Sat, 25 Jan 2020 11:57:14 +0100 Subject: [PATCH] Forward read only flag to fuse opts --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 3e71ec2..36bce75 100644 --- a/index.js +++ b/index.js @@ -171,6 +171,7 @@ class Fuse extends Nanoresource { if ((/\*|(^,)fuse-bindings(,$)/.test(process.env.DEBUG)) || this.opts.debug) options.push('debug') if (this.opts.allowOther) options.push('allow_other') if (this.opts.allowRoot) options.push('allow_root') + if (this.opts.ro) options.push('ro') if (this.opts.autoUnmount) options.push('auto_unmount') if (this.opts.defaultPermissions) options.push('default_permissions') if (this.opts.blkdev) options.push('blkdev')