5 TYPE_UNKNOWN, /* type could not be determined */
6 TYPE_BAD, /* neither file nor block device */
7 TYPE_FILE, /* image file rather than device */
8 TYPE_VIRTUAL, /* block devices like LVM or RAID volumes */
9 TYPE_REMOVABLE, /* removable disk device */
10 TYPE_FIXED /* fixed disk device */
14 enum device_type type;
17 * partition number if detected
18 * 0 = whole disk device (including unpartitioned image file)
19 * -1 = could not be determined
24 * whether partitions or device mapper devices or any other kind of
25 * children use this device
28 * -1 = could not be determined
33 * detected geometry, or -1 if unknown
41 * detected sector size or -1 if unknown
46 * size in bytes, or -1 if unknown
52 extern int device_info_verbose;
54 int get_device_info(int fd, struct device_info *info);
55 int is_device_mounted(const char *path);