summaryrefslogtreecommitdiffstats
path: root/tests/functions.sh
diff options
context:
space:
mode:
authorChris Webb2009-05-13 16:54:23 +0200
committerKarel Zak2009-05-19 14:52:06 +0200
commitf01a2e3e2f02342b3a967ce01d3e824a067d91f8 (patch)
treef1f2364b5026825cc18c47cd237a51d2cb9817b7 /tests/functions.sh
parentcal: uClibc has langinfo.h but not _NL_TIME_WEEK_1STDAY. (diff)
downloadkernel-qcow2-util-linux-f01a2e3e2f02342b3a967ce01d3e824a067d91f8.tar.gz
kernel-qcow2-util-linux-f01a2e3e2f02342b3a967ce01d3e824a067d91f8.tar.xz
kernel-qcow2-util-linux-f01a2e3e2f02342b3a967ce01d3e824a067d91f8.zip
fdisk: (and cfdisk) fix to be consistent about maximum heads
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@arachsys.com>
Diffstat (limited to 'tests/functions.sh')
0 files changed, 0 insertions, 0 deletions