forked from pool/systemd
00fe0b8efb
- udev: usb_id: parse only 'size' bytes of the 'descriptors' buffer add: 1024-udev-usb_id-parse-only-size-bytes-of-the-descriptors.patch - udev: expose new ISO9660 properties from libblkid add: 1025-udev-expose-new-ISO9660-properties-from-libblkid.patch - udev: usb_id: parse only 'size' bytes of the 'descriptors' buffer add: 1024-udev-usb_id-parse-only-size-bytes-of-the-descriptors.patch - udev: expose new ISO9660 properties from libblkid add: 1025-udev-expose-new-ISO9660-properties-from-libblkid.patch OBS-URL: https://build.opensuse.org/request/show/155790 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=351
38 lines
1.6 KiB
Diff
38 lines
1.6 KiB
Diff
From ddb5bee15a6ad71e5b596c035c1ee4dc04d5fd2e Mon Sep 17 00:00:00 2001
|
|
From: "Zeeshan Ali (Khattak)" <zeeshanak@gnome.org>
|
|
Date: Sun, 17 Feb 2013 03:21:27 +0200
|
|
Subject: [PATCH] udev: expose new ISO9660 properties from libblkid
|
|
|
|
Signed-off-by: Robert Milasan <rmilasan@suse.com>
|
|
---
|
|
src/udev/udev-builtin-blkid.c | 16 ++++++++++++++++
|
|
1 files changed, 16 insertions(+), 0 deletions(-)
|
|
|
|
Index: systemd-195/src/udev/udev-builtin-blkid.c
|
|
===================================================================
|
|
--- systemd-195.orig/src/udev/udev-builtin-blkid.c
|
|
+++ systemd-195/src/udev/udev-builtin-blkid.c
|
|
@@ -78,6 +78,22 @@ static void print_property(struct udev_d
|
|
} else if (startswith(name, "PART_ENTRY_")) {
|
|
util_strscpyl(s, sizeof(s), "ID_", name, NULL);
|
|
udev_builtin_add_property(dev, test, s, value);
|
|
+
|
|
+ } else if (streq(name, "SYSTEM_ID")) {
|
|
+ blkid_encode_string(value, s, sizeof(s));
|
|
+ udev_builtin_add_property(dev, test, "ID_FS_SYSTEM_ID", s);
|
|
+
|
|
+ } else if (streq(name, "PUBLISHER_ID")) {
|
|
+ blkid_encode_string(value, s, sizeof(s));
|
|
+ udev_builtin_add_property(dev, test, "ID_FS_PUBLISHER_ID", s);
|
|
+
|
|
+ } else if (streq(name, "APPLICATION_ID")) {
|
|
+ blkid_encode_string(value, s, sizeof(s));
|
|
+ udev_builtin_add_property(dev, test, "ID_FS_APPLICATION_ID", s);
|
|
+
|
|
+ } else if (streq(name, "BOOT_SYSTEM_ID")) {
|
|
+ blkid_encode_string(value, s, sizeof(s));
|
|
+ udev_builtin_add_property(dev, test, "ID_FS_BOOT_SYSTEM_ID", s);
|
|
}
|
|
}
|
|
|