Says who ?
> The requested partition is usually different on the new media and might
> not exist at all.
Precisely. The current algorithm _always_ does the partition scan - and
can produce noise, or misleading results.
> I know removable media is usually formatted as a single partition (You
> can even make a filesystem on the raw device), but checking what's
> actually on the media is (IMHO) an absolute "must".
Why ? I have a hard time imagining a serious risk here. If the user has
turned off partition checking and inserted a partitioned disk, it won't
mount.
That said, Itai's idea of a lazy partition scan seems sensible, and
can probably be implemented in the individual drivers without too much fuss.
--------------------------------------------------------------------------
Grant R. Guenther grant@torque.net
--------------------------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu