[systemd-devel] [PATCH] 60-persistent-storage.rules: ignore partitions with ID_FS_TYPE of parent
harald at redhat.com
Thu Dec 4 09:24:11 PST 2014
On 04.12.2014 18:19, Andrei Borzenkov wrote:
> В Thu, 04 Dec 2014 15:14:00 +0100
> Harald Hoyer <harald at redhat.com> пишет:
>> On 04.12.2014 15:10, Zbigniew Jędrzejewski-Szmek wrote:
>>> On Thu, Dec 04, 2014 at 12:57:36PM +0100, harald at redhat.com wrote:
>>>> From: Harald Hoyer <harald at redhat.com>
>>>> If ID_FS_TYPE of a parent is already set,
>>>> then it's something like "linux_raid_member" or "mpath_member"
>>>> and the disk is already in use, so don't handle the partitions
>>> Is this trying to fix an existing problem?
>> yes, for "mpath_member" disk partitions, we should never ever advertise the
>> /dev/disk/by* symlinks or set SYSTEMD_READY for it.
> How is it going to work? I mean, first we get device, then it is
> processed by multipathd. At the time rules are processed by udev, we
> have no idea whether it will be added to mpath later.
For the disk, we should/must the flag set immediately in 62-multipath.rules.
The partitions are processed later and IMPORT ID_FS_TYPE from the parent, just
one line above my suggested rule.
More information about the systemd-devel