Problems with new block device size reporting

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

 



[ Cc'ing myself because I'm not subscribed to linux-scsi ]

Hi James-

I found two problems in 2.6.27:

1. If CONFIG_LBD is not set on 32-bit platforms, the computation added in sd_read_capacity() by commit 7404ad3b computes sz incorrectly. On my system (a Fedora 9 VMware guest with an 8GB disk), sz is computed as zero.

2. The new string helper string_get_size() added by commit 3c9f3681 goes into an infinite loop if it is passed a "size" of zero. the "for (j=0;" loop never terminates because 0*10 is always less than 1000.

--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com
--
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