Subject: Re: fuser
To: Wayne Cuddy <wcuddy@crb-web.com>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-help
Date: 12/12/2001 11:55:20
On Tue, 11 Dec 2001, Wayne Cuddy wrote:

> How do I find out what processes are currently using a file system,
> that might prevent me from unmounting it.

man fstat

Examples:

fstat -p `cat /var/run/inetd.pid`

fstat -u $USER

fstat /var/log/maillog

fstat -f /home

(Note that the INUM field is the inode number, as shown with "ls -il".)

   Jeremy C. Reed
   http://www.reedmedia.net/