Subject: Re: enormously growing /dev
To: David Maxwell <david@crlf.net>
From: The Grey Wolf <greywolf@starwolf.com>
List: current-users
Date: 09/10/2004 13:02:28
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thus spake David Maxwell ("DM> ") sometime Today...

DM> > >> the rights are set like one expects them to be set, always:
DM> > >>
DM> > >> -rw-r--r--  1 root  wheel  54878535680 Sep  8 17:13 sd0
DM> > >
DM> > >This is a regular file (not suprising). After a MAKEDEV all it should
DM> > >be a device, like:
DM> >
DM> > Its contents might give you a hint about its creator. You can make it a symlink
DM> > to /dev/null until you catch the culprit.
DM>
DM> If you're feeling ambitious, make it a named pipe - then write a reader
DM> program that will block, waiting for someone to write to the pipe. When
DM> the reader wakes up, have it do an fstat to identify the process that
DM> had opened the pipe for writing...


i.e.

#! /bin/sh -

dd if=/dev/sd0 of=/dev/null count=1
fstat /dev/sd0

should do the trick.


				--*greywolf;
- --
Woof...

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQFBQghYDOGizqAnVRERAibtAJ0XqQwtXpQVa8glUFae3s7TrKvyEQCgkNDh
kErlF2bjRzQRv3FhgVFbyS4=
=MyIh
-----END PGP SIGNATURE-----