We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d09336b commit 6755142Copy full SHA for 6755142
www/daemon/mountmon.php
@@ -49,8 +49,8 @@
49
mountmonLog('- File sharing is accessible');
50
// Check for "Stale file handle" (NFS) or "Host is down" (SMB) return messages
51
// NOTE: This check can sometimes result in long timeouts or even a hang
52
- //mountmonLog('- Checking for stale file handle'); // DEBUG
53
- $result = sysCmd('ls /mnt/NAS/' . $mp['name'] . ' 2>&1 | grep "Host is down\|Stale file handle"');
+ //mountmonLog('- Checking for remount needed'); // DEBUG
+ $result = sysCmd('ls /mnt/NAS/' . $mp['name'] . ' 2>&1 | grep "Host is down\|Stale file handle\|No such file or directory"');
54
if (!empty($result)) {
55
mountmonLog('- Re-mounting ' . $mp['name'] . ' (stale file handle)');
56
nasSourceMount('unmount', $mp['id']);
0 commit comments