fix objectivefs mount options

Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
Travis Glenn Hansen 2024-02-27 18:39:15 -07:00
parent 784ce31922
commit d70b45b909
2 changed files with 7 additions and 1 deletions

View File

@ -120,6 +120,7 @@ jobs:
- build-npm-linux-amd64
strategy:
fail-fast: false
max-parallel: 1
matrix:
config:
- truenas/scale/24.04/scale-iscsi.yaml
@ -153,6 +154,7 @@ jobs:
- build-npm-linux-amd64
strategy:
fail-fast: false
max-parallel: 1
matrix:
config:
- truenas/core/13.0/core-iscsi.yaml
@ -186,6 +188,7 @@ jobs:
- build-npm-linux-amd64
strategy:
fail-fast: false
max-parallel: 1
matrix:
config:
- zfs-generic/iscsi.yaml

View File

@ -52,7 +52,10 @@ class ObjectiveFS {
}
const objectivefs = this;
let args = [];
args = args.concat(options);
if (options.length > 0) {
// TODO: maybe do -o <opt> -o <opt>?
args = args.concat(["-o", options.join(",")]);
}
args = args.concat([filesystem, target]);
let result;