[systemd-devel] [PATCH] udev: Expose new ISO9660 props from libblkid

Lennart Poettering lennart at poettering.net
Tue Feb 12 18:39:36 PST 2013


On Tue, 12.02.13 00:23, Zeeshan Ali (Khattak) (zeeshanak at gnome.org) wrote:

> Expose system, application, publisher and boot system IDs.

Looks good to me. Will merge as soon as Karel applied his side to blkid.

> 
> This patch uses (though not requires) my pending patches to
> libblkid:
> 
> http://article.gmane.org/gmane.linux.utilities.util-linux-ng/7234
> ---
>  src/udev/udev-builtin-blkid.c | 13 ++++++++++++-
>  1 file changed, 12 insertions(+), 1 deletion(-)
> 
> diff --git a/src/udev/udev-builtin-blkid.c b/src/udev/udev-builtin-blkid.c
> index 56a05f5..9575816 100644
> --- a/src/udev/udev-builtin-blkid.c
> +++ b/src/udev/udev-builtin-blkid.c
> @@ -78,7 +78,18 @@ static void print_property(struct udev_device *dev, bool test, const char *name,
>          } else if (startswith(name, "PART_ENTRY_")) {
>                  strscpyl(s, sizeof(s), "ID_", name, NULL);
>                  udev_builtin_add_property(dev, test, s, value);
> -        }
> +
> +        } else if (streq(name, "FS_SYSTEM_ID"))
> +                udev_builtin_add_property(dev, test, "ID_FS_SYSTEM_ID", value);
> +
> +        else if (streq(name, "FS_PUBLISHER_ID"))
> +                udev_builtin_add_property(dev, test, "ID_FS_PUBLISHER_ID", value);
> +
> +        else if (streq(name, "FS_APPLICATION_ID"))
> +                udev_builtin_add_property(dev, test, "ID_FS_APPLICATION_ID", value);
> +
> +        else if (streq(name, "FS_BOOT_SYSTEM_ID"))
> +                udev_builtin_add_property(dev, test, "ID_FS_BOOT_SYSTEM_ID", value);
>  }
>  
>  static int probe_superblocks(blkid_probe pr)


Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list