]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fdisk: use real sector size in verify() and warn_cylinders()
authorKarel Zak <kzak@redhat.com>
Thu, 26 Feb 2009 09:19:05 +0000 (10:19 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 26 Feb 2009 14:58:19 +0000 (15:58 +0100)
commit85a994c49f57470586463bdd6a2b15789d7955f8
treecf3dd63ceabe6334368c04c64cfaf799f1a356f5
parent10e3d0319a009a86a92c26da274e50850da0a9b3
fdisk: use real sector size in verify() and warn_cylinders()

4KiB-sector disk:

Note: sector size is 4096 (not 512)

Disk /dev/sdb: 8 MB, 8388608 bytes
8 heads, 32 sectors/track, 8 cylinders, total 2048 sectors
Units = sectors of 1 * 4096 = 4096 bytes
Disk identifier: 0x6aad54da

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1              32        2047        8064   83  Linux

old version (mix 512 and real sectors):

Command (m for help): v
14367 unallocated sectors

new version:

Command (m for help): v
31 unallocated 4096-byte sectors

Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk/fdisk.c