Re: PATCH: Bogus disk geometry on large disks

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

 



On Fri, May 26, 2006 at 05:29:25PM +0100, Alan Cox wrote:
>  
> -	if (ret == -1) {
> +	if (ret == -1 && capacity < (1ULL << 32)) {
>  		/* pick some standard mapping with at most 1024 cylinders,

won't that provoke a gcc warning when sector_t is 32-bit?  how about ...

+	if (ret == -1 && ((capacity >> 16) >> 16) > 0)

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