Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

fuser: strange behaviour

2 views
Skip to first unread message

Francis Moreau

unread,
Nov 24, 2011, 4:35:49 PM11/24/11
to
Hello,

I'm facing a weird behaviour of fuser. Actually the behaviour depends
on the '-s' option.

Example:

-------------
# fuser -v /tmp/tmp.CtyhSoSNae; echo $?
USER PID ACCESS COMMAND
/tmp/tmp.CtyhSoSNae:
root kernel mount /tmp/tmp.CtyhSoSNae
0

# fuser -s /tmp/tmp.CtyhSoSNae; echo $?
0

# fuser /tmp/tmp.CtyhSoSNae; echo $?
1
--------------

So basically the tmpdir has a filesystem mounted on it but no process
is accessing any files in it.

The return value of fuser is not consistent and depends on the '-s'
option and I think the value is wrong when '-s' is used.

That happens with fuser version 22.11

Could someone shed some light ?

Thanks
0 new messages