summaryrefslogtreecommitdiffstats
path: root/libfdisk/src/fdiskP.h
diff options
context:
space:
mode:
authorKarel Zak2013-06-27 14:18:57 +0200
committerKarel Zak2013-09-16 16:47:05 +0200
commit181aab4013efd6e2147668326e9c0382a52a9696 (patch)
treeb50fe935edf1d653a8008ecc4563b33de187a373 /libfdisk/src/fdiskP.h
parentfdisk: improve menus to make it more usable for BSD label (diff)
downloadkernel-qcow2-util-linux-181aab4013efd6e2147668326e9c0382a52a9696.tar.gz
kernel-qcow2-util-linux-181aab4013efd6e2147668326e9c0382a52a9696.tar.xz
kernel-qcow2-util-linux-181aab4013efd6e2147668326e9c0382a52a9696.zip
libfdisk: allow to address partition by chars
For example BSD uses letters rather tahn numbers to address partition, the fist partition is 'a', last partition is 'p'. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/fdiskP.h')
-rw-r--r--libfdisk/src/fdiskP.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libfdisk/src/fdiskP.h b/libfdisk/src/fdiskP.h
index 88b0a466d..1c089a612 100644
--- a/libfdisk/src/fdiskP.h
+++ b/libfdisk/src/fdiskP.h
@@ -207,7 +207,8 @@ struct fdisk_label {
/* label driver flags */
enum {
FDISK_LABEL_FL_ADDPART_NOPARTNO = (1 << 1),
- FDISK_LABEL_FL_REQUIRE_GEOMETRY = (1 << 2)
+ FDISK_LABEL_FL_REQUIRE_GEOMETRY = (1 << 2),
+ FDISK_LABEL_FL_INCHARS_PARTNO = (1 << 3)
};
/* label allocators */
@@ -235,7 +236,8 @@ struct fdisk_ask {
uint64_t base; /* for relative results */
uint64_t unit; /* unit for offsets */
const char *range; /* by library generated list */
- unsigned int relative:1;
+ unsigned int relative :1,
+ inchars :1;
} num;
/* FDISK_ASKTYPE_{WARN,WARNX,..} */
struct ask_print {