Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Mar 1999 07:38:04 +1000
From:      Greg Black <gjb@comkey.com.au>
To:        Eric Jacoboni <jaco@titine.fr.eu.org>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: BSD equivalent of Linux 'fuser' command 
Message-ID:  <19990323213804.16605.qmail@alpha.comkey.com.au>
In-Reply-To: <874sncm4or.fsf@titine.fr.eu.org>  of 23 Mar 1999 19:39:00 %2B0100
References:  <Pine.BSF.4.10.9903231247000.76993-100000@chain.freebsd.os.org.za> <874sncm4or.fsf@titine.fr.eu.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > Yup - fstat(1)
> 
> Yes, but... no :(
> 
> I've read the man page, but i don't obtain what i want. (But, as you
> can read, English is not my mother tongue, so i've probably miss
> something...).
> 
> 1) let's root do a 'mount /cdrom ; cd /cdrom'
> 
> 2) with 'fuser -a /cdrom', i get a single line telling me that root
> is using /cdrom (that's why i cannot do a 'umount /cdrom', and that
> exactly what i wanted to know)
> 
> 3) with 'fstat /cdrom', i get... nothing.
> 
> 4) with 'fstat | grep /cdrom', i get... nothing.

This seems to be a bug in fstat.  However, if you install the
lsof package and repeat your test, you'll get the information
you want.

You may care to report the fstat problem with send-pr (after
checking to see if it has already been reported).

-- 
Greg Black <gjb@acm.org>



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990323213804.16605.qmail>