mount: mount as 777 for max compat

for cifs, file_mode can be 666
This commit is contained in:
Girish Ramakrishnan
2021-06-20 22:36:23 -07:00
parent 90657af7f2
commit 87c22a4670
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -66,7 +66,7 @@ function renderMountFile(volume) {
case 'cifs':
type = 'cifs';
what = `//${mountOptions.host}` + path.join('/', mountOptions.remoteDir);
options = `username=${mountOptions.username},password=${mountOptions.password},rw,iocharset=utf8,file_mode=0777,dir_mode=0777,uid=yellowtent,gid=yellowtent`;
options = `username=${mountOptions.username},password=${mountOptions.password},rw,iocharset=utf8,file_mode=0666,dir_mode=0777,uid=yellowtent,gid=yellowtent`;
break;
case 'nfs':
type = 'nfs';
@@ -126,7 +126,7 @@ async function getStatus(mountType, hostPath) {
if (output) {
const rlines = output.split('\n').reverse();
const idx = rlines.findIndex(l => /^mount./.test(l) || l.includes('failed') || l.includes('error'));
const idx = rlines.findIndex(l => /^mount./.test(l) || l.includes('failed') || l.includes('error') || l.includes('reset'));
if (idx !== -1) message = rlines[idx];
}
if (!message) message = `Could not determine failure reason. ${safe.error ? safe.error.message : ''}`;