Re: Module Ideas: Persistence, PnP, and more...

David Howells (David.Howells@nexor.co.uk)
Fri, 11 Sep 1998 08:54:44 BST


Matthias Urlichs:
> > In a way, SCSI IDs and LUNs can change... When you do hot swapping of SCSI
> > devices (may well be more likely than interface cards).
> >
> Hmm. I don't see anybody unplugging their SCSI disk w/ ID 0, rejumper it to
> have ID 1, reattach it, and then expect the OS to recognize it as the same
> disk.

You're right of course, though wouldn't it be nice if it did? Not worth the
trouble though, I suspect.

> Currently, you cannot do that because the system tries to change the atime
> for /bin/cat, and the shell wants to create a temporary file for the data,
> not to mention swap in portions of /usr/bin/screen or /usr/sbin/telnetd.
> Instant system hang... this needs a statically-linked standalone program
> which calls mlock(MLOCKALL) and then waits a specified number of seconds
> before automatically reenabling things.

Well your static binary can do { mlock, write, sleep, write, exit } to do the
job. It'd be fairly straightforward.

David Howells

-
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/faq.html