diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2026-02-04 09:38:31 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2026-02-04 09:46:54 +0100 |
| commit | 36eed984b8f06a22afa916e8ad922d7507c13688 (patch) | |
| tree | d7b778d007a0b40a45f1fe8178d376a39cf546c6 /util-linux/blockdev.c | |
| parent | 93b684fe9fd89e98226ca7746061cc332bc986bb (diff) | |
| download | busybox-w32-36eed984b8f06a22afa916e8ad922d7507c13688.tar.gz busybox-w32-36eed984b8f06a22afa916e8ad922d7507c13688.tar.bz2 busybox-w32-36eed984b8f06a22afa916e8ad922d7507c13688.zip | |
fdisk: several fixes for 4K sector size
function old new delta
bb_getsize_in_512sect - 187 +187
list_disk_name_and_sizes - 80 +80
get_geometry 511 535 +24
.rodata 107066 107088 +22
msg_building_new_label 143 142 -1
fdisk_main 4781 4775 -6
list_table 1423 1366 -57
list_disk_geometry 143 68 -75
bb_BLKGETSIZE_sectors 191 - -191
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 2/4 up/down: 313/-330) Total: -17 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/blockdev.c')
| -rw-r--r-- | util-linux/blockdev.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/util-linux/blockdev.c b/util-linux/blockdev.c index d47e43e55..606f0c16c 100644 --- a/util-linux/blockdev.c +++ b/util-linux/blockdev.c | |||
| @@ -25,8 +25,11 @@ | |||
| 25 | //usage: "\n --getbsz Get block size" | 25 | //usage: "\n --getbsz Get block size" |
| 26 | //usage: "\n --setbsz BYTES Set block size" | 26 | //usage: "\n --setbsz BYTES Set block size" |
| 27 | //usage: "\n --getsz Get device size in 512-byte sectors" | 27 | //usage: "\n --getsz Get device size in 512-byte sectors" |
| 28 | ///////: "\n --getsize Get device size in sectors (deprecated)" | 28 | ///////: "\n --getsize Get device size in 512-byte sectors (deprecated)" |
| 29 | ///////^^^^^ supported, but not shown in help ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | 29 | ///////^^^^^ supported, but not shown in help ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 30 | /////// --getsz is BLKGETSIZE64 / 512 | ||
| 31 | /////// --getsize is BLKGETSIZE which returns size in 512 blocks (not ioctl(BLKSSZ) sized blocks!) | ||
| 32 | /////// they should be the same, modulo BLKGETSIZE not fitting its result into unsigned long (32 bit longs + >2TB disk) | ||
| 30 | //usage: "\n --getsize64 Get device size in bytes" | 33 | //usage: "\n --getsize64 Get device size in bytes" |
| 31 | //usage: "\n --getra Get readahead in 512-byte sectors" | 34 | //usage: "\n --getra Get readahead in 512-byte sectors" |
| 32 | //usage: "\n --setra SECTORS Set readahead" | 35 | //usage: "\n --setra SECTORS Set readahead" |
