From a96da2053640de82df2af0e3908c6865b0bb218b Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Fri, 26 Jun 2020 17:57:26 +0200 Subject: [PATCH] TODO is done for filesystem backend moutnpoint check --- src/storage/filesystem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/filesystem.js b/src/storage/filesystem.js index 0c02414ad..891ee977d 100644 --- a/src/storage/filesystem.js +++ b/src/storage/filesystem.js @@ -54,7 +54,7 @@ function checkPreconditions(apiConfig, dataLayout, callback) { assert(dataLayout instanceof DataLayout, 'dataLayout must be a DataLayout'); assert.strictEqual(typeof callback, 'function'); - // TODO check filesystem is mounted for sshfs and cifs so we don't write into the actual folder on disk + // Check filesystem is mounted so we don't write into the actual folder on disk if (apiConfig.provider === PROVIDER_SSHFS || apiConfig.provider === PROVIDER_CIFS || apiConfig.provider === PROVIDER_NFS) { const mounts = safe.fs.readFileSync('/proc/mounts', 'utf8'); const mountInfo = mounts.split('\n').filter(function (l) { return l.indexOf(apiConfig.mountPoint) !== -1; })[0];