lkml.org 
[lkml]   [1998]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: mounting unpartitioned drives
Date
> > It might be worthwhile opening a debate about some method for telling a
> > driver not to both with a partition scan. A boot option or /proc
> > interface might do the trick:
> Uh??
> If the drive is removable (else why should you get "Media Changed") You
> MUST do a partition scan.

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

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.198 / U:0.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site