mirror of
https://github.com/democratic-csi/democratic-csi.git
synced 2026-10-22 10:13:32 +02:00
windows node support
windows node support for smb/iscsi (csi-proxy) better logging support (for testing) generating volume_id from name wait for chown/chmod jobs to complete (freenas) general improvement to smb behavior throughout Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
const cp = require("child_process");
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
||||
const DEFAULT_TIMEOUT = process.env.FILESYSTEM_DEFAULT_TIMEOUT || 30000;
|
||||
|
||||
@@ -25,6 +26,10 @@ class Filesystem {
|
||||
}
|
||||
}
|
||||
|
||||
covertUnixSeparatorToWindowsSeparator(p) {
|
||||
return p.replaceAll(path.posix.sep, path.win32.sep);
|
||||
}
|
||||
|
||||
/**
|
||||
* Attempt to discover if device is a block device
|
||||
*
|
||||
@@ -615,12 +620,12 @@ class Filesystem {
|
||||
command = filesystem.options.paths.sudo;
|
||||
}
|
||||
console.log("executing filesystem command: %s %s", command, args.join(" "));
|
||||
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
const child = filesystem.options.executor.spawn(command, args, options);
|
||||
let stdout = "";
|
||||
let stderr = "";
|
||||
|
||||
|
||||
child.stdout.on("data", function (data) {
|
||||
stdout = stdout + data;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user