Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 SMI; site sun.uucp Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!bellcore!decvax!decwrl!sun!guy From: guy@sun.uucp (Guy Harris) Newsgroups: net.unix-wizards Subject: Re: Quelling Filesystem Activity Message-ID: <2145@sun.uucp> Date: Tue, 30-Apr-85 01:09:41 EDT Article-I.D.: sun.2145 Posted: Tue Apr 30 01:09:41 1985 Date-Received: Thu, 2-May-85 01:22:21 EDT References: <134@kontron.UUCP> Distribution: net Organization: Sun Microsystems, Inc. Lines: 14 > Here's what I need: I want a utility that will aid me in quelling > filesystem activity so that I can unmount it. The approach is to > examine /dev/kmem to identify pids of processes that have open files > in that filesystem, kill them, and unmount the fs. > > Does anyone have such a utility... If you have access to System V source, try the "fuser" utility. It "Lists the process IDs of the processes using the files specified as arguments. For block special devices, all processes using any file on that device are listed." The "-k" flag sends SIGKILL to those processes. It's not too hard to modify to work on systems other than System V. Guy Harris