Date: Wed, 28 Feb 2007 06:08:45 +0000 From: "Poul-Henning Kamp" <phk@phk.freebsd.dk> To: Warner Losh <imp@FreeBSD.org> Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/usb umass.c Message-ID: <42088.1172642925@critter.freebsd.dk> In-Reply-To: Your message of "Tue, 27 Feb 2007 22:33:50 GMT." <200702272233.l1RMXocb004983@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <200702272233.l1RMXocb004983@repoman.freebsd.org>, Warner Losh write s: > Some USB mass storage devices return the number of sectors in response > to a READ_CAPACITY request rather than the maximum sector (off by one > problem). This causes a huge cascade of errors as the geom tasting > code tries to read the last sector (which isn't really there in the > face of this error). automated tools that manipulate disk labels and > such also have issues. > > Create a new quirk READ_CAPACITY_OFFBY1 A better idea would be to have scsi_da.c try to read the last sector and chop it if it fails. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42088.1172642925>