From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Jens Axboe <axboe@kernel.dk>,
Kernel development list <linux-kernel@vger.kernel.org>
Subject: Re: Checking a USB drive's capacity
Date: Sun, 21 Dec 2008 14:45:03 +0000 [thread overview]
Message-ID: <20081221144503.16919dc1@lxorguk.ukuu.org.uk> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0812182326100.31272-100000@netrider.rowland.org>
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.
next prev parent reply other threads:[~2008-12-21 14:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-18 22:14 Alan Stern
2008-12-18 22:44 ` Alan Cox
2008-12-19 4:33 ` Alan Stern
2008-12-21 14:45 ` Alan Cox [this message]
2008-12-23 4:51 ` Robert Hancock
2008-12-23 12:32 ` Oliver Neukum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081221144503.16919dc1@lxorguk.ukuu.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=axboe@kernel.dk \
--cc=linux-kernel@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®