Re: [systemd-devel] [PATCH] rules: add by-parttypeuuid rule for GPT labeled partitions

2014-05-13 Thread Karel Zak
On Mon, May 12, 2014 at 05:18:56PM +0200, Kay Sievers wrote: I just looked up libudev and it looks like there is even a pyudev wrapper, so that could indeed work better. I take it that queries via udev_enumerate for (say) ID_PART_ENTRY_TYPE=x are efficient? Sure, filter for block devices

Re: [systemd-devel] [PATCH] rules: add by-parttypeuuid rule for GPT labeled partitions

2014-05-12 Thread Kay Sievers
On Sat, May 10, 2014 at 12:34 AM, Sage Weil s...@inktank.com wrote: On Sat, 10 May 2014, Kay Sievers wrote: On Sat, May 10, 2014 at 12:00 AM, Sage Weil s...@inktank.com wrote: On Fri, 9 May 2014, Kay Sievers wrote: On Fri, May 9, 2014 at 11:31 PM, Sage Weil s...@inktank.com wrote: The

Re: [systemd-devel] [PATCH] rules: add by-parttypeuuid rule for GPT labeled partitions

2014-05-09 Thread Kay Sievers
On Fri, May 9, 2014 at 11:31 PM, Sage Weil s...@inktank.com wrote: The Ceph OSD initialization relies on identifying GPT partitions by type in order to mount data volumes and start daemons. Currently we ship this rule separately, but it is awkward to duplicate the conditional logic that

Re: [systemd-devel] [PATCH] rules: add by-parttypeuuid rule for GPT labeled partitions

2014-05-09 Thread Sage Weil
Hi Kay, On Fri, 9 May 2014, Kay Sievers wrote: On Fri, May 9, 2014 at 11:31 PM, Sage Weil s...@inktank.com wrote: The Ceph OSD initialization relies on identifying GPT partitions by type in order to mount data volumes and start daemons. Currently we ship this rule separately, but it is

Re: [systemd-devel] [PATCH] rules: add by-parttypeuuid rule for GPT labeled partitions

2014-05-09 Thread Kay Sievers
On Sat, May 10, 2014 at 12:00 AM, Sage Weil s...@inktank.com wrote: On Fri, 9 May 2014, Kay Sievers wrote: On Fri, May 9, 2014 at 11:31 PM, Sage Weil s...@inktank.com wrote: The Ceph OSD initialization relies on identifying GPT partitions by type in order to mount data volumes and start

Re: [systemd-devel] [PATCH] rules: add by-parttypeuuid rule for GPT labeled partitions

2014-05-09 Thread Sage Weil
On Sat, 10 May 2014, Kay Sievers wrote: On Sat, May 10, 2014 at 12:00 AM, Sage Weil s...@inktank.com wrote: On Fri, 9 May 2014, Kay Sievers wrote: On Fri, May 9, 2014 at 11:31 PM, Sage Weil s...@inktank.com wrote: The Ceph OSD initialization relies on identifying GPT partitions by type