summaryrefslogtreecommitdiffstats
path: root/lib/sysfs.c
diff options
context:
space:
mode:
authorDavidlohr Bueso2012-06-03 20:15:17 +0200
committerKarel Zak2012-06-06 10:30:07 +0200
commite53ced85bf2dc2a9c501c9eef8681c1b2ffad5cf (patch)
treee18917c027cae4af05e2e5a4002ea6de7a5d7cf8 /lib/sysfs.c
parentfdisk: sun: use sector_t (diff)
downloadkernel-qcow2-util-linux-e53ced85bf2dc2a9c501c9eef8681c1b2ffad5cf.tar.gz
kernel-qcow2-util-linux-e53ced85bf2dc2a9c501c9eef8681c1b2ffad5cf.tar.xz
kernel-qcow2-util-linux-e53ced85bf2dc2a9c501c9eef8681c1b2ffad5cf.zip
fdisk: add device topology to the API
This patch adds device topology discovery to the internal API. This functionality is static only to the API and therefore hidden from general fdisk code. Functionality itself doesn't really change, min_io_size, io_size, logical and physical sector sizes and alignment offset are added to the fdisk_context structure and elements are accessed from there. The logical sector size (sector_size) is now unsigned long instead of unsigned int, this as no effect otherwise. A few things to notice: - The patch is larger than I wanted but we need to modify function parameters across fdisk and its labels to use the topology data from cxt-> instances. Hopefully this will be pretty much it regarding this kind of modifications - perhaps geometry will need something of the like too. - The -b option must override internal discovery. - A new helper function has added to verify if the device provides topology information, this replaces the 'has_topology' global variable. Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Diffstat (limited to 'lib/sysfs.c')
0 files changed, 0 insertions, 0 deletions