repart: report vendor/model/subsystem fields in ListCandidateDevices

Prompted by: #39435
This commit is contained in:
Lennart Poettering
2025-11-01 22:01:35 +01:00
parent ea94a05f8a
commit 5f076e44fe
4 changed files with 87 additions and 2 deletions
+4
View File
@@ -10,11 +10,15 @@ typedef enum BlockDevListFlags {
BLOCKDEV_LIST_REQUIRE_LUKS = 1 << 3, /* Only consider block devices with LUKS superblocks */
BLOCKDEV_LIST_IGNORE_ROOT = 1 << 4, /* Ignore the block device we are currently booted from */
BLOCKDEV_LIST_IGNORE_EMPTY = 1 << 5, /* Ignore disks of zero size (usually drives without a medium) */
BLOCKDEV_LIST_METADATA = 1 << 6, /* Fill in model, vendor, subsystem */
} BlockDevListFlags;
typedef struct BlockDevice {
char *node;
char **symlinks;
char *model;
char *vendor;
char *subsystem;
uint64_t diskseq;
uint64_t size; /* in bytes */
} BlockDevice;