Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 May 1996 11:06:13 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        jimd@mistery.mcafee.com (Jim Dennis)
Cc:        dkelly@hiwaay.net, questions@freefall.freebsd.org
Subject:   Re: Who is using a file?
Message-ID:  <199605211806.LAA01552@phaeton.artisoft.com>
In-Reply-To: <199605210401.VAA07003@mistery.mcafee.com> from "Jim Dennis" at May 20, 96 09:01:49 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> > Once Upon A Time I came across the BSD utility to determine who has a
> > particular file open and now I've forgotten it. This is a real useful thing
> > when one wants to umount a fs and learns its busy. I *think* the utility
> > could list the open files on a filesystem and/or list the users who are
> > using a single file.
> 
> > David, 
> 
> 	lsof
> 
> 	ftp://coast.cs.purdue.edu/pub/tools/unix/lsof

The lsof program looks in the DNLC to assemble file names.

I thought that this didn't work under FreeBSD because the cache
is in each FS (as calls to vfs_cache.c) instead of being shared
like in SVR4 (as called through dnlc.c in vn_lookup).


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.



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