Re: sd: Refactor sd_read_capacity()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 23, 2008 at 09:45:10AM -0700, Matthew Wilcox wrote:
> The sd_read_capacity() function was about 180 lines long and
> included a backwards goto and a tricky state variable.  Splitting out
> read_capacity_10() and read_capacity_16() (about 50 lines each) reduces
> sd_read_capacity to about 100 lines and gets rid of the backwards goto
> and the state variable.  I've tried to avoid any behaviour change with
> this patch.

I should have probably said what testing I've done (with both patches
applied, not just this one).

I've tried numerous <= SCSI-2 devices -- USB keys, older SCSI drives ...
even newer SCSI drives still seem to claim SCSI-2 compliance.  Almost
all my equipment claims ANSI rev 2.

I've tried a few libata devices (which claim ANSI rev 5).  I've tried a
WD My Book (attached via firewire) which claims ANSI rev 4.  I've also
tried an HP fibre channel array which claims ANSI rev 3.

I can't claim to have exercised all the error paths here.  

-- 
Matthew Wilcox				Intel Open Source Technology Centre
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux