Debian Bug report logs - #47678
No way to see which processes are using a block device file

version graph

Package: psmisc; Maintainer for psmisc is Craig Small <csmall@debian.org>; Source for psmisc is src:psmisc (PTS, buildd, popcon).

Reported by: Robert Woodcock <rcw@frantica.lly.org>

Date: Sun, 17 Oct 1999 22:18:00 UTC

Severity: wishlist

Found in version 18-3

Fixed in versions psmisc/21.8-1, 21.7

Done: Craig Small <csmall@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Craig Small <csmall@debian.org>:
Bug#47678; Package psmisc. (full text, mbox, link).


Acknowledgement sent to Robert Woodcock <rcw@frantica.lly.org>:
New Bug report received and forwarded. Copy sent to Craig Small <csmall@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Robert Woodcock <rcw@frantica.lly.org>
To: submit@bugs.debian.org
Subject: psmisc: fuser thinks entire world is accessing cdrom drive
Date: Sun, 17 Oct 1999 15:05:43 -0700
Package: psmisc
Version: 18-3
Severity: normal

Hello, recently the sg module on my system stuffed up a bit (open() calls to
/dev/sg5 never returned) so I went to remove it, however a bunch of
processes were using it.

I really don't know if fuser is just the messenger or if it's buggy, but
when I used fuser -km /dev/sg5 on my system it immediately killed every
login shell, sshd, gpm, inetd, squid, apache, and pppd, and would have gone
after init had it responded to SIGKILL.

I checked fuser -mv /dev/sg5 after the fact and to my surprise the list of
things using /dev/sg5 was a bit larger than I originally thought. Checking
it again, we see that even the current copy of 'bug' is in there.

frantica:~$ fuser -mv /dev/sg5

                     USER        PID ACCESS COMMAND
/dev/sg5             root          1 ....m  init
                     rcw       28022 frce.  bash
                     rcw       28024 frce.  bash
                     rcw       28025 frce.  bash
                     rcw       28026 frce.  bash
                     rcw       28027 frce.  bash
                     rcw       28028 frce.  bash
                     rcw       28029 frce.  bash
                     root      28030 ....m  getty
                     root      28031 ....m  getty
                     rcw       28032 frce.  bash
                     rcw       28033 frce.  bash
                     rcw       28034 frce.  bash
                     root      28035 ....m  getty
                     root      28036 ....m  getty
                     root      28037 ....m  getty
                     root      28038 ....m  getty
                     root      28039 ....m  getty
                     rcw       28040 frce.  bash
                     root      28083 ....m  sshd
                     root      28084 ....m  sshd
                     ares      28086 ....m  bash
                     root      28263 ....m  ssh
                     root      28269 ....m  ssh
                     rcw       28275 frce.  bash
                     root      28341 ....m  pppd
                     root      28347 ....m  gpm
                     rcw       28396 frce.  irc
                     rcw       28562 frce.  bug
                     rcw       28589 frce.  joe
                     rcw       28590 fr.e.  fuser
                     root     kernel mount  /boot
                     root     kernel mount  /debian
                     root     kernel mount  /cdtmp

Please reassign this bug as you see fit if it is indeed an init or kernel
issue. Thanks.

-- System Information
Debian Release: potato
Kernel Version: Linux frantica 2.2.11 #1 Wed Aug 18 12:02:27 PDT 1999 i686 unknown

Versions of the packages psmisc depends on:
ii  libc6           2.1.2-5        GNU C Library: Shared libraries and timezone
ii  libncurses4     4.2-3.4        Shared libraries for terminal handling


Information forwarded to debian-bugs-dist@lists.debian.org, Craig Small <csmall@debian.org>:
Bug#47678; Package psmisc. (full text, mbox, link).


Acknowledgement sent to Craig Small <csmall@scooter.eye-net.com.au>:
Extra info received and forwarded to list. Copy sent to Craig Small <csmall@debian.org>. (full text, mbox, link).


Message #10 received at 47678@bugs.debian.org (full text, mbox, reply):

From: Craig Small <csmall@scooter.eye-net.com.au>
To: Robert Woodcock <rcw@frantica.lly.org>, 47678@bugs.debian.org
Subject: Re: Bug#47678: psmisc: fuser thinks entire world is accessing cdrom drive
Date: Wed, 20 Oct 1999 13:27:42 +1000 (EST)
Robert Woodcock said:
> Hello, recently the sg module on my system stuffed up a bit (open() calls to
> /dev/sg5 never returned) so I went to remove it, however a bunch of
> processes were using it.
> 
> I really don't know if fuser is just the messenger or if it's buggy, but
> when I used fuser -km /dev/sg5 on my system it immediately killed every
> login shell, sshd, gpm, inetd, squid, apache, and pppd, and would have gone
> after init had it responded to SIGKILL.
> 
> I checked fuser -mv /dev/sg5 after the fact and to my surprise the list of
> things using /dev/sg5 was a bit larger than I originally thought. Checking
> it again, we see that even the current copy of 'bug' is in there.

Most very important, was /dev/sg5 mounted at the time?  If not then it
thinks you mean /

  - Craig


-- 
Craig Small VK2XLZ, PGP: AD 8D D8 63 6E BF C3 C7  47 41 B1 A2 1F 46 EC 90
Eye-Net Consulting http://www.eye-net.com.au/     <csmall@eye-net.com.au>
MIEEE <csmall@ieee.org>              Debian developer <csmall@debian.org>


Information forwarded to debian-bugs-dist@lists.debian.org, Craig Small <csmall@debian.org>:
Bug#47678; Package psmisc. (full text, mbox, link).


Acknowledgement sent to Robert Woodcock <rcw@debian.org>:
Extra info received and forwarded to list. Copy sent to Craig Small <csmall@debian.org>. (full text, mbox, link).


Message #15 received at 47678@bugs.debian.org (full text, mbox, reply):

From: Robert Woodcock <rcw@debian.org>
To: Craig Small <csmall@scooter.eye-net.com.au>
Cc: 47678@bugs.debian.org
Subject: Re: Bug#47678: psmisc: fuser thinks entire world is accessing cdrom drive
Date: Tue, 19 Oct 1999 20:47:47 -0700
On Wed, Oct 20, 1999 at 01:27:42PM +1000, Craig Small wrote:
> Robert Woodcock said:
> > Hello, recently the sg module on my system stuffed up a bit (open() calls to
> > /dev/sg5 never returned) so I went to remove it, however a bunch of
> > processes were using it.
> > 
> > I really don't know if fuser is just the messenger or if it's buggy, but
> > when I used fuser -km /dev/sg5 on my system it immediately killed every
> > login shell, sshd, gpm, inetd, squid, apache, and pppd, and would have gone
> > after init had it responded to SIGKILL.
> > 
> > I checked fuser -mv /dev/sg5 after the fact and to my surprise the list of
> > things using /dev/sg5 was a bit larger than I originally thought. Checking
> > it again, we see that even the current copy of 'bug' is in there.
> 
> Most very important, was /dev/sg5 mounted at the time?

No.

> If not then it thinks you mean /

Is there a way around this?
-- 
Robert Woodcock - rcw@debian.org
"Hacking... is a completely creepy thing to do." -- US Department Of Justice


Severity set to `wishlist'. Request was from Robert Woodcock <rcw@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Changed Bug title. Request was from Robert Woodcock <rcw@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Reply sent to Craig Small <csmall@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Robert Woodcock <rcw@frantica.lly.org>:
Bug acknowledged by developer. (full text, mbox, link).


Message #24 received at 47678-done@bugs.debian.org (full text, mbox, reply):

From: Craig Small <csmall@debian.org>
To: 47678-done@bugs.debian.org
Subject: Fixed with fuser rewrite
Date: Sun, 4 Nov 2007 17:13:21 +1100
Package: fuser
Version: 21.7

fuser was completely re-written in this version, which was released
years ago.  I just never noticed this bug and what it was, sorry for
the delay but it would of been fixed a while ago now.

 - Craig
-- 
Craig Small      GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
http://www.enc.com.au/                             csmall at : enc.com.au
http://www.debian.org/          Debian GNU/Linux, software should be Free 




Marked as fixed in versions psmisc/21.8-1. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Fri, 01 Nov 2013 01:21:33 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 29 Nov 2013 07:45:31 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Oct 11 00:24:36 2017; Machine Name: beach

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.