Re: [PATCH RFT 7/7] firewire: sbp2: add workarounds for 2nd and 3rdgeneration iPods

From: Alan Stern
Date: Thu Jan 29 2009 - 17:38:21 EST


On Thu, 29 Jan 2009, Stefan Richter wrote:

> Hmm, I'm beginning to suspect that I should duplicate usb-storage's
>
> if (sdev->type == TYPE_DISK)
> sdev->last_sector_bug = 1;
>
> into the FireWire drivers. There aren't any fundamental downsides to
> this, are there?

No, not really. Accesses to the last few sectors will be slightly
slower, but those sectors don't get used much anyway and the slowdown
isn't very big. In theory there might be a device which doesn't like
single-sector accesses near the end... but what can you do about
something like that? If the device doesn't let you read sectors one at
a time, it's not worth worrying about.

> > Linux uses the last-sector accesses to check whether or not the device
> > is part of a RAID. Apparently Windows and OS X don't support the kinds
> > of RAID that need this.
>
> Or they don't support these kinds of RAID over certain transports like
> USB and FireWire...?

Maybe. I don't know any of the details.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/