util-linux/fdisk
Karel Zak df68ccd8b8 fdisk: fix io_size usage in new API
properly implemented fdisk_dev_has_topology() requires optimal
I/O size to detect that the device provides topology.

Unfortunately, currently used cxt->io_size maybe overwritten in
__discover_topology() to min_io_size.

This patch introduces cxt->optimal_io_size and keeps it independent on
cxt->io_size. The cxt->io_size is I/O size used by fdisk for alignment
calculation.

Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-06 11:03:23 +02:00
..
.gitignore build-sys: ignore a bunch of generated files, mostly binaries 2008-04-14 14:08:00 +02:00
Makefile.am fdisk: introduce fdisk context 2012-05-23 10:53:05 +02:00
cfdisk.8 cfdisk: add note about alignment to the man page 2012-01-17 15:48:14 +01:00
cfdisk.c fdisk: cleanup strtoxx_or_err() 2012-05-15 17:43:49 +02:00
common.h lib: add is_whole_disk() from fdisk code 2009-03-11 14:00:21 +01:00
fdisk.8 Fix typos found by misspellings 2012-04-23 13:16:35 +02:00
fdisk.c fdisk: fix compiler warning [-Wunused-variable] 2012-06-06 10:56:29 +02:00
fdisk.h fdisk: fix io_size usage in new API 2012-06-06 11:03:23 +02:00
fdiskaixlabel.c fdisk: use a single variable for the current disklabel 2011-07-11 12:01:42 +02:00
fdiskaixlabel.h fdisk: non-linux support (use standard uintxy_t instead __uxy) 2007-12-03 14:03:47 +01:00
fdiskbsdlabel.c fdisk: add device topology to the API 2012-06-06 10:30:07 +02:00
fdiskbsdlabel.h fdisk: use context as a parameter 2012-06-06 10:11:41 +02:00
fdiskdoslabel.c fdisk: add total sectors 2012-06-06 10:40:40 +02:00
fdiskdoslabel.h fdisk: add device topology to the API 2012-06-06 10:30:07 +02:00
fdiskmaclabel.c fdisk: use a single variable for the current disklabel 2011-07-11 12:01:42 +02:00
fdiskmaclabel.h fdisk: non-linux support (use standard uintxy_t instead __uxy) 2007-12-03 14:03:47 +01:00
fdisksgilabel.c fdisk: add device topology to the API 2012-06-06 10:30:07 +02:00
fdisksgilabel.h fdisk: add device topology to the API 2012-06-06 10:30:07 +02:00
fdisksunlabel.c fdisk: add device topology to the API 2012-06-06 10:30:07 +02:00
fdisksunlabel.h fdisk: add device topology to the API 2012-06-06 10:30:07 +02:00
gpt.c fdisk: verify writing to streams was successful 2012-04-04 20:02:04 +02:00
gpt.h fdisk: add GPT detection code 2007-06-05 10:40:14 +02:00
i386_sys_types.c fdisk: add exFAT to MBR partition type 0x7 2011-01-23 22:55:23 +01:00
partname.c fdisk: don't shorten long path to disk device 2011-10-12 10:25:01 +02:00
sfdisk.8 sfdisk: add note about alignment to the man page 2012-01-17 15:48:20 +01:00
sfdisk.c fdisk: cleanup strtoxx_or_err() 2012-05-15 17:43:49 +02:00
utils.c fdisk: fix io_size usage in new API 2012-06-06 11:03:23 +02:00