MymsMan
Ad detector
I was surprised to find that all my decryption and detectads processes today were failing with file 'in use' errors
It turns out that one of my network shares had gone offline and for some reason scanmounts hadn't noticed or unmounted the share
Running lsof manually I saw: that it was running Very slowly and returning
The Warning message causes the
Problems to investigate:
the easy part - a one line change Think again that doesn't work
It turns out that one of my network shares had gone offline and for some reason scanmounts hadn't noticed or unmounted the share
Running lsof manually I saw: that it was running Very slowly and returning
Code:
lsof -X -Fn "/mnt/hd2/My Video/Impossible/Impossible_20240202_1300.ts"
lsof: WARNING: can't stat() cifs file system /media/[Homerun]
Output information may be incomplete.
[system inuse]
function to think that all files are inuseProblems to investigate:
- Why would LSOF care about the status of a network drive when given a specific path to check?
- Why is LSOF so slow to respond?
- Why didn't scanmounts unmount the drive?
[system inuse]
returning "in use" is
Jim Code:
proc {system inuse} {file} {
if {![file exists $file]} { return 0 }
set op [exec /mod/webif/lib/bin/lsof -X -Fn $file 2>@1 | grep $file]
switch -glob -- $op {
"" -
"*status error*" { return 0 }
}
return 1
}
Last edited: