Re: PATCH: Bogus disk geometry on large disks

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

 



On Gwe, 2006-05-26 at 11:57 -0600, Matthew Wilcox wrote:
> 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 ...

I don't believe it will as the type is forced to "1ULL"
-
: 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