Re: Top 10 bugs/warnings for the week of March 23rd, 2008

From: Oliver Neukum
Date: Tue May 27 2008 - 02:13:23 EST


Am Montag 26 Mai 2008 19:28:23 schrieb Bart Van Assche:
> > Even if we could tell whether the device has remained the same, how
> > would we know the medium wasn't exchanged?
>
> Looking at the filesystem UUID could help -- this is an ID that is
> present as data on the disk, and that is even independent of the bus
> type. See also /dev/disk/by-uuid.

The medium may or may not hold a filesystem that has a UUID.
In addition you can clone filesystems with dd but reuse them as
independent filesystems.

Yes, you could checksum parts of the filesystem and say that at some
point the user should suffer the consequences of his stupidity, but
such things don't belong into the kernel and neither are they specific
to USB.

Regards
Oliver

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