Re: [PATCH] target/file: Update hw_max_sectors based on current block_size

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

 



On Mon, Dec 16, 2013 at 10:58:31AM -0800, Nicholas A. Bellinger wrote:
> Sectors is what EVPD=0xb0 reports and sbc_parse_cdb() enforces for
> backends.

But it's obviously not what backends care about, given that fileio
has a byte size limit, and the others haven no limit at all.

Just store the byte limit, divide that by the block size where you
currently use the sector count, and get rid of the stupid method.

--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux