From: Karel Zak Date: Mon, 9 Mar 2009 08:52:08 +0000 (+0100) Subject: fdisk: support "-b 4096" option X-Git-Tag: v2.15-rc1~47 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8905beda2abb59b48ba00c5d521c934ead4df80b;p=thirdparty%2Futil-linux.git fdisk: support "-b 4096" option The fdisk code is more ready for 4kB sectors and it makes sense to support such sectr size for "-b" option. Address-Red-Hat-Bugzilla: #218915 Signed-off-by: Karel Zak --- diff --git a/fdisk/fdisk.8 b/fdisk/fdisk.8 index aea8820e1a..30ee9d4ae4 100644 --- a/fdisk/fdisk.8 +++ b/fdisk/fdisk.8 @@ -166,7 +166,7 @@ program and Linux partitions with the Linux fdisk or Linux cfdisk program. .SH OPTIONS .TP .BI "\-b " sectorsize -Specify the sector size of the disk. Valid values are 512, 1024, or 2048. +Specify the sector size of the disk. Valid values are 512, 1024, 2048 or 4096. (Recent kernels know the sector size. Use this only on old kernels or to override the kernel's ideas.) .TP diff --git a/fdisk/fdisk.c b/fdisk/fdisk.c index b7e517a95e..5593503b97 100644 --- a/fdisk/fdisk.c +++ b/fdisk/fdisk.c @@ -2612,7 +2612,7 @@ main(int argc, char **argv) { */ sector_size = atoi(optarg); if (sector_size != 512 && sector_size != 1024 && - sector_size != 2048) + sector_size != 2048 && sector_size != 4096) fatal(usage); sector_offset = 2; user_set_sector_size = 1;