summaryrefslogtreecommitdiffstats
path: root/libfdisk/docs
diff options
context:
space:
mode:
authorKarel Zak2017-07-19 11:30:57 +0200
committerKarel Zak2017-07-19 11:30:57 +0200
commit992f7cbae420ab1b71fd9f2c2ae10c9804c1d213 (patch)
tree0ddb41ced462bf3fc0feebc1b5a14df76b4966aa /libfdisk/docs
parentlibfdisk: (dos) return EINVAL when delete unused partition (diff)
downloadkernel-qcow2-util-linux-992f7cbae420ab1b71fd9f2c2ae10c9804c1d213.tar.gz
kernel-qcow2-util-linux-992f7cbae420ab1b71fd9f2c2ae10c9804c1d213.tar.xz
kernel-qcow2-util-linux-992f7cbae420ab1b71fd9f2c2ae10c9804c1d213.zip
libfdisk: add fdisk_disable_dialogs()
The default (for historical reasons) is to use dialog driven partitioning. It's possible to avoid dialogs by fdisk_partition template for fdisk_add_partition(). Unfortunately in some case (mostly DOS driver) it's not enough, because we need to distinguish between logical and primary partitions. If we know that dialogs are unwanted then we can default to primary partition, etc. This function simplify semantic of the library for non-interactive programs. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/docs')
-rw-r--r--libfdisk/docs/libfdisk-sections.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/libfdisk/docs/libfdisk-sections.txt b/libfdisk/docs/libfdisk-sections.txt
index 2674ed87b..68ca0927f 100644
--- a/libfdisk/docs/libfdisk-sections.txt
+++ b/libfdisk/docs/libfdisk-sections.txt
@@ -292,6 +292,7 @@ fdisk_enable_bootbits_protection
fdisk_enable_details
fdisk_enable_listonly
fdisk_enable_wipe
+fdisk_disable_dialogs
fdisk_get_alignment_offset
fdisk_get_collision
fdisk_get_devfd
@@ -312,6 +313,7 @@ fdisk_get_sector_size
fdisk_get_size_unit
fdisk_get_unit
fdisk_get_units_per_sector
+fdisk_has_dialogs
fdisk_has_label
fdisk_has_protected_bootbits
fdisk_has_wipe