From owner-freebsd-questions Tue Mar 23 13:41: 0 1999 Delivered-To: freebsd-questions@freebsd.org Received: from alpha.comkey.com.au (alpha.comkey.com.au [203.9.152.215]) by hub.freebsd.org (Postfix) with SMTP id 32D15153C6 for ; Tue, 23 Mar 1999 13:40:56 -0800 (PST) (envelope-from gjb@comkey.com.au) Received: (qmail 16606 invoked by uid 1001); 23 Mar 1999 21:38:04 -0000 Message-ID: <19990323213804.16605.qmail@alpha.comkey.com.au> X-Posted-By: GBA-Post 1.04 06-Feb-1999 X-PGP-Fingerprint: 5A91 6942 8CEA 9DAB B95B C249 1CE1 493B 2B5A CE30 Date: Wed, 24 Mar 1999 07:38:04 +1000 From: Greg Black To: Eric Jacoboni Cc: freebsd-questions@FreeBSD.ORG Subject: Re: BSD equivalent of Linux 'fuser' command References: <874sncm4or.fsf@titine.fr.eu.org> In-reply-to: <874sncm4or.fsf@titine.fr.eu.org> of 23 Mar 1999 19:39:00 +0100 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message