5 if [ -z "$file" ]; then
9 if [ ! -f "$file" ]; then
15 if [ $ret -eq 1 ]; then # noone has file open
18 if [ $ret -eq 0 ]; then # file open by some processes
21 if [ $ret -eq 127 ]; then
22 echo "fuser command not found!"
26 echo "Unexpected exit code $ret from fuser!"
35 while [ $ret -ne 0 ] && [ $max_sleep -ne 0 ]; do
37 max_sleep
=$
((max_sleep
- 1))
41 if [ $max_sleep -eq 0 ]; then
42 echo "The file does not exist or the test hung!"