summaryrefslogtreecommitdiffstats
path: root/libfdisk/src/fdiskP.h
diff options
context:
space:
mode:
authorKarel Zak2018-08-30 14:01:46 +0200
committerKarel Zak2018-08-30 14:01:46 +0200
commit745801e44ab01eef759b99372e5792d0eadf19ab (patch)
treef97bf31e5daedbc0bd55784352eab78a9c5a1591 /libfdisk/src/fdiskP.h
parentdocs: add note about lsblk usage/free cols (diff)
downloadkernel-qcow2-util-linux-745801e44ab01eef759b99372e5792d0eadf19ab.tar.gz
kernel-qcow2-util-linux-745801e44ab01eef759b99372e5792d0eadf19ab.tar.xz
kernel-qcow2-util-linux-745801e44ab01eef759b99372e5792d0eadf19ab.zip
libfdisk: add fdisk_get_devmodel() and fdisk_get_devno()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/fdiskP.h')
-rw-r--r--libfdisk/src/fdiskP.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libfdisk/src/fdiskP.h b/libfdisk/src/fdiskP.h
index bf2f60e08..19c1c7953 100644
--- a/libfdisk/src/fdiskP.h
+++ b/libfdisk/src/fdiskP.h
@@ -365,6 +365,7 @@ struct fdisk_ask {
struct fdisk_context {
int dev_fd; /* device descriptor */
char *dev_path; /* device path */
+ char *dev_model; /* on linux /sys/block/<name>/device/model or NULL */
struct stat dev_st; /* stat(2) result */
int refcount;
@@ -387,6 +388,7 @@ struct fdisk_context {
protect_bootbits : 1, /* don't zeroize first sector */
pt_collision : 1, /* another PT detected by libblkid */
no_disalogs : 1, /* disable dialog-driven partititoning */
+ dev_model_probed : 1, /* tried to read from sys */
listonly : 1; /* list partition, nothing else */
char *collision; /* name of already existing FS/PT */