Re: [PATCH] Fix fdisk and cfdisk to be consistent about maximum heads

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

 



On Wed, May 13, 2009 at 03:54:23PM +0100, Chris Webb wrote:
> Fix fdisk and cfdisk to be consistent about maximum heads
> 
> Without this patch, fdisk allows up to 256 heads to be set via the menu, but
> only up to 255 heads by command line -H. Similarly, cfdisk's -H option also
> enforces heads <= 255 instead of heads <= 256.
> 
> The strange limit of 256 comes about because (heads - 1) should fit in a
> single byte for legacy CHS. Geometries of 256 heads and 32 sectors are seen
> in disks from other operating systems where cylinder-aligned partitions
> which are also aligned to a 4MB boundary are wanted.
> 
> Signed-off-by: Chris Webb <chris@xxxxxxxxxxxx>
> ---
>  fdisk/cfdisk.c |  2 +-
>  fdisk/fdisk.c  |  2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

 Applied, thanks.

    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