summaryrefslogtreecommitdiffstats
path: root/libfdisk/samples
diff options
context:
space:
mode:
authorKarel Zak2017-08-22 14:55:51 +0200
committerKarel Zak2017-08-22 14:55:51 +0200
commitadf09b5c380fe616fa28b1975703b83e75d0b32b (patch)
tree779ed6403b989552397369bf80b28dfc7d09e204 /libfdisk/samples
parentlibfdisk: (dos) use size-=1 when alignment not used later (diff)
downloadkernel-qcow2-util-linux-adf09b5c380fe616fa28b1975703b83e75d0b32b.tar.gz
kernel-qcow2-util-linux-adf09b5c380fe616fa28b1975703b83e75d0b32b.tar.xz
kernel-qcow2-util-linux-adf09b5c380fe616fa28b1975703b83e75d0b32b.zip
libfdisk: add fdisk_save_user_grain()
Let's provide API for applications that don't want to use the default 1MiB grain. The new function allow to use "as minimal as possible" if grain is set by fdisk_save_user_grain() to 512. If the phy sector size (or minimal I/O size) is greater than specified grain size than smallest possible setting is used. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/samples')
0 files changed, 0 insertions, 0 deletions