Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jan 1995 07:58:08 -0600
From:      Peter da Silva <peter@bonkers.taronga.com>
To:        Peter Dufault <dufault@hda.com>
Cc:        terry@cs.weber.edu (Terry Lambert), john@pyromania.apana.org.au, hackers@FreeBSD.org
Subject:   Re: SyQuest works with FreeBSD 2.0R ! 
Message-ID:  <199501271358.HAA09305@bonkers.taronga.com>
In-Reply-To: Your message of "Fri, 27 Jan 95 06:50:47 EST." <199501271150.GAA07921@hda.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
The real solution to removable media is to put some sort of ident in the
disklabel (including time and system ID) and track that. If you have a mounted
filesystem and get a UNIT ATTENTION then you can see whether it's been
swapped or not.

(yes, you can still defeat this with a dd to the raw device)

What would be really cool would be to create a new pseudo-device entry when
you mount the device, and treat each volume as a separate device. Then you
could simply stall attempts to access a filesystem mounted on a device that's
been removed. Perhaps even have a hook to alert the user when they do that
to insert the appropriate volume...

(ok, that's blue-sky... an ID in the disklabel is just good hygeine)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199501271358.HAA09305>