diff options
author | Karel Zak | 2017-07-19 11:30:57 +0200 |
---|---|---|
committer | Karel Zak | 2017-07-19 11:30:57 +0200 |
commit | 992f7cbae420ab1b71fd9f2c2ae10c9804c1d213 (patch) | |
tree | 0ddb41ced462bf3fc0feebc1b5a14df76b4966aa /libfdisk/src/fdiskP.h | |
parent | libfdisk: (dos) return EINVAL when delete unused partition (diff) | |
download | kernel-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/src/fdiskP.h')
-rw-r--r-- | libfdisk/src/fdiskP.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libfdisk/src/fdiskP.h b/libfdisk/src/fdiskP.h index 434490edd..77ad7610d 100644 --- a/libfdisk/src/fdiskP.h +++ b/libfdisk/src/fdiskP.h @@ -378,6 +378,7 @@ struct fdisk_context { display_details : 1, /* expert display mode */ protect_bootbits : 1, /* don't zeroize first sector */ pt_collision : 1, /* another PT detected by libblkid */ + no_disalogs : 1, /* disable dialog-driven partititoning */ listonly : 1; /* list partition, nothing else */ char *collision; /* name of already existing FS/PT */ |