Re: Compaq Fiber Channel Array RM4000 / 2.6.16 kernel patch VER6

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

 



On Thu, 2006-03-30 at 18:35 +0200, Ingo Flaschberger wrote:
> +       sdev->max_xfer_len = 0xffff;
> +       if (*bflags & BLIST_MAX_512K)
> +               sdev->max_xfer_len = 0x200;

Where do you make the block layer see the effects of this?

Currently it seems all you do is truncate a READ10 or WRITE10 to a
maximum transfer size of 0x200.  That means that we simply lie to the
block layer for transfers above 0x200 and say that it all completed when
we only transferred 0x200 blocks ... this is bound to cause data
corruption.

James


-
: 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