Lines Matching defs:dev
39 static void print_property(struct udev_device *dev, bool test, const char *name, const char *value) {
45 udev_builtin_add_property(dev, test, "ID_FS_TYPE", value);
48 udev_builtin_add_property(dev, test, "ID_FS_USAGE", value);
51 udev_builtin_add_property(dev, test, "ID_FS_VERSION", value);
55 udev_builtin_add_property(dev, test, "ID_FS_UUID", s);
57 udev_builtin_add_property(dev, test, "ID_FS_UUID_ENC", s);
61 udev_builtin_add_property(dev, test, "ID_FS_UUID_SUB", s);
63 udev_builtin_add_property(dev, test, "ID_FS_UUID_SUB_ENC", s);
67 udev_builtin_add_property(dev, test, "ID_FS_LABEL", s);
69 udev_builtin_add_property(dev, test, "ID_FS_LABEL_ENC", s);
72 udev_builtin_add_property(dev, test, "ID_PART_TABLE_TYPE", value);
75 udev_builtin_add_property(dev, test, "ID_PART_TABLE_UUID", value);
79 udev_builtin_add_property(dev, test, "ID_PART_ENTRY_NAME", s);
83 udev_builtin_add_property(dev, test, "ID_PART_ENTRY_TYPE", s);
87 udev_builtin_add_property(dev, test, s, value);
91 udev_builtin_add_property(dev, test, "ID_FS_SYSTEM_ID", s);
95 udev_builtin_add_property(dev, test, "ID_FS_PUBLISHER_ID", s);
99 udev_builtin_add_property(dev, test, "ID_FS_APPLICATION_ID", s);
103 udev_builtin_add_property(dev, test, "ID_FS_BOOT_SYSTEM_ID", s);
107 static int find_gpt_root(struct udev_device *dev, blkid_probe pr, bool test) {
185 udev_builtin_add_property(dev, test, "ID_PART_GPT_AUTO_ROOT_UUID", root_id);
223 static int builtin_blkid(struct udev_device *dev, int argc, char *argv[], bool test) {
273 fd = open(udev_device_get_devnode(dev), O_RDONLY|O_CLOEXEC);
275 err = log_debug_errno(errno, "Failure opening block device %s: %m", udev_device_get_devnode(dev));
284 udev_device_get_devnode(dev),
293 prtype, udev_device_get_devnode(dev));
296 udev_device_get_devnode(dev));
302 root_partition = udev_device_get_property_value(dev, "ID_PART_GPT_AUTO_ROOT_UUID");
309 print_property(dev, test, name, data);
318 udev_builtin_add_property(dev, test, "ID_PART_GPT_AUTO_ROOT", "1");
322 find_gpt_root(dev, pr, test);