Re: fdisk: +size{k,K,m,M,g,G} chaos

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

 



On Thu, Dec 13, 2007 at 09:00:43AM +0100, Bert Wesarg wrote:
> > @@ -1184,18 +1184,22 @@ read_int(unsigned int low, unsigned int dflt, unsigned int high,
> >                                                 i *= heads * sectors;
> >                                         break;
> >                                 case 'K':
> > -                                       absolute = 1024;
> > +                                       absolute = 2 << 10;     /* KiB */
> 2 << 10 == 2048

 Grr.. bad mental association. 2^10 ... 2 << 10. Sorry.

> why not use 1 << 10?

 Well, I'll wear a brown paper bag over my head today.

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux