From owner-freebsd-questions Tue May 21 11:12:23 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id LAA14753 for questions-outgoing; Tue, 21 May 1996 11:12:23 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id LAA14748 for ; Tue, 21 May 1996 11:12:21 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id LAA01552; Tue, 21 May 1996 11:06:13 -0700 From: Terry Lambert Message-Id: <199605211806.LAA01552@phaeton.artisoft.com> Subject: Re: Who is using a file? To: jimd@mistery.mcafee.com (Jim Dennis) Date: Tue, 21 May 1996 11:06:13 -0700 (MST) Cc: dkelly@hiwaay.net, questions@freefall.freebsd.org In-Reply-To: <199605210401.VAA07003@mistery.mcafee.com> from "Jim Dennis" at May 20, 96 09:01:49 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > 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.