Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: usb flash drive removal (Re: Desktop NetBSD needs your help)



lacombar%gmail.com@localhost (Arnaud Lacombe) writes:

>You cannot ensure that the device is the same state than previously.

True. But unless you have outstanding writes this is harmless, just
drop cached data. For writes you could track state changes with
a serial number.

>You cannot even ensure that the newly plugged device is the same that
>the old one.

You can give it a unique ID.

Obviously both could be faked, but the only harm done would be
that someone tinkering with the file system will lose data.

-- 
-- 
                                Michael van Elst
Internet: mlelstv%serpens.de@localhost
                                "A potential Snark may lurk in every tree."


Home | Main Index | Thread Index | Old Index