Skip to content

Commit 6755142

Browse files
committed
[mountmon] Improve check for remount
1 parent d09336b commit 6755142

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

www/daemon/mountmon.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
mountmonLog('- File sharing is accessible');
5050
// Check for "Stale file handle" (NFS) or "Host is down" (SMB) return messages
5151
// 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"');
52+
//mountmonLog('- Checking for remount needed'); // DEBUG
53+
$result = sysCmd('ls /mnt/NAS/' . $mp['name'] . ' 2>&1 | grep "Host is down\|Stale file handle\|No such file or directory"');
5454
if (!empty($result)) {
5555
mountmonLog('- Re-mounting ' . $mp['name'] . ' (stale file handle)');
5656
nasSourceMount('unmount', $mp['id']);

0 commit comments

Comments
 (0)