util-linux/disk-utils
Karel Zak f8a4a0d4f2 partx: add --sector-size option
/dev/sdc is 4K disk:

 # fdisk -l /dev/sdc
 Disk /dev/sdc: 100 MiB, 104857600 bytes, 25600 sectors
 ...
 Device     Boot Start   End Sectors Size Id Type
 /dev/sdc1        1024 25599   24576  96M 83 Linux

let's use it as disk image:

 # dd if=/dev/sdc of=~/sdc.img
 # losetup -f ~/sdc.img

old version:

 # partx --show /dev/loop0
 NR START   END SECTORS SIZE NAME UUID
 1  1024 25599   24576  12M      6a4ba75b-01

new version:

 # partx --show /dev/loop0 --sector-size 4096
 NR START    END SECTORS SIZE NAME UUID
  1  8192 204799  196608  96M      6a4ba75b-01

Addresses: https://github.com/karelzak/util-linux/issues/396
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-01-13 13:30:22 +01:00
..
Makemodule.am build-sys: remove obsolete [cs]fdisk LDADDs 2016-05-04 15:02:02 +02:00
addpart.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
addpart.c Use --help suggestion on invalid option 2016-12-19 13:13:34 +01:00
blockdev.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
blockdev.c Since 569d1dac7b we read device start 2015-03-17 11:10:20 +01:00
cfdisk.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
cfdisk.c Use --help suggestion on invalid option 2016-12-19 13:13:34 +01:00
cramfs.h cramfs.h: coding style 2011-07-21 23:50:04 +02:00
cramfs_common.c mkfs.cramfs: fix compiler warning [-Wmissing-prototypes] 2012-07-16 18:57:30 +02:00
delpart.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
delpart.c Use --help suggestion on invalid option 2016-12-19 13:13:34 +01:00
fdformat.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
fdformat.c Use --help suggestion on invalid option 2016-12-19 13:13:34 +01:00
fdisk-list.c sfdisk: support empty label use-case 2016-11-30 13:01:33 +01:00
fdisk-list.h sfdisk: support empty label use-case 2016-11-30 13:01:33 +01:00
fdisk-menu.c fdisk: fix compiler warning 2016-10-26 10:28:41 +02:00
fdisk.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
fdisk.c Use --help suggestion on invalid option 2016-12-19 13:13:34 +01:00
fdisk.h fdisk: add --wipe-partitions=auto|never|default 2016-05-04 12:43:35 +02:00
fsck.8 man: fix couple tools/checkmans.sh warnings 2017-01-10 17:32:32 +01:00
fsck.c include/closestream: define exit codes 2016-08-16 13:35:06 +02:00
fsck.cramfs.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
fsck.cramfs.c Use --help suggestion on invalid option 2016-12-19 13:13:34 +01:00
fsck.minix.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
fsck.minix.c Use --help suggestion on invalid option 2016-12-19 13:13:34 +01:00
isosize.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
isosize.c Use --help suggestion on invalid option 2016-12-19 13:13:34 +01:00
minix_programs.h minix: change types in header file 2012-12-19 11:38:51 +01:00
mkfs.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
mkfs.bfs.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
mkfs.bfs.c Use --help suggestion on invalid option 2016-12-19 13:13:34 +01:00
mkfs.c mkfs: drop hardcoded search path 2015-04-27 10:28:44 +02:00
mkfs.cramfs.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
mkfs.cramfs.c Use --help suggestion on invalid option 2016-12-19 13:13:34 +01:00
mkfs.minix.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
mkfs.minix.c disk-utils/mkfs.minix: Set ninodes after checking max 2017-01-04 14:42:59 -05:00
mkswap.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
mkswap.c Use --help suggestion on invalid option 2016-12-19 13:13:34 +01:00
partx.8 partx: add --sector-size option 2017-01-13 13:30:22 +01:00
partx.c partx: add --sector-size option 2017-01-13 13:30:22 +01:00
partx.h partx: prevent code duplication 2015-10-09 12:18:28 +02:00
raw.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
raw.c Use --help suggestion on invalid option 2016-12-19 13:13:34 +01:00
resizepart.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
resizepart.c Use --help suggestion on invalid option 2016-12-19 13:13:34 +01:00
sfdisk.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
sfdisk.c sfdisk: unused parameter 'sf' [-Wunused-parameter] 2017-01-05 11:53:56 +01:00
swaplabel.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
swaplabel.c Use --help suggestion on invalid option 2016-12-19 13:13:34 +01:00