Re: Checking a USB drive's capacity

From: Oliver Neukum
Date: Tue Dec 23 2008 - 07:32:35 EST


Am Dienstag, 23. Dezember 2008 05:51:39 schrieb Robert Hancock:
> It seems to me that the safest solution would be to mark USB storage
> devices as unsafe for last-sector partition table probing, like some
> kind of CAPACITY_DUBIOUS flag, causing it to be skipped on these
> devices, at least by default. After all, it would seem quite unusual to
> see anything other than a DOS-style partition table on a USB storage
> device (or else no partition table at all).

That would not help if user space (especially udev helpers) go for the end
of the device.

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/