Re: Out of Swap, VFS Disk Change, and rescanning device busses

Jan Kara (jack@suse.cz)
Wed, 8 Dec 1999 15:09:17 +0100


Hello/

> My next question regards the VFS: Disk Changed messages. I would like
> to capture these events somehow via shell script and/or daemon. Are
> there any programs that will intercept this message or can be notified
> of the change, and spawn a script. Like init? I've looked but have
> been unsuccessful at finding anything.
AFAIK kernel doesn't give you any way to do this. But I think it could be done
by parsing logs or doing something like cat /proc/kmsg | script (but it's ugly ;-)).

Honza.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/