lkml.org 
[lkml]   [2008]   [Dec]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Checking a USB drive's capacity
On Thu, 18 Dec 2008 23:33:09 -0500 (EST)
Alan Stern <stern@rowland.harvard.edu> wrote:

> On Thu, 18 Dec 2008, Alan Cox wrote:
>
> > > spun up yet. Not to mention that it seems strange to read the last
> > > sector before reading the first!
> >
> > The SCSI CD code deals with this by spotting the error is close to the
> > end and of particular types then interpreting it and adjusting the volume
> > size. This is done because the size value for a CD-R/RW is imprecise.
>
> Although it may be okay for CDs, I suspect that approach won't work for
> disks.

Some of the partition formats do indeed go looking for the end of disk so
it won't work in that case.


\
 
 \ /
  Last update: 2008-12-21 15:47    [W:0.046 / U:4.680 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site