Set ownership of OSD partitions in a udev rule of its own #109

Merged
vitalif merged 1 commits from koolkhel/vitastor:udev-owner-rule into master 2026-10-28 00:17:45 +03:00

1 Commits

Author SHA1 Message Date
2dd9783d8c Set ownership of OSD partitions in a udev rule of its own
udev skips every key of a rule whose IMPORT{program} fails, OWNER and GROUP
included, and vitastor-disk udev exits 1 when it rejects the superblock. A
freshly added partition whose check failed stayed root:disk, and an OSD
opening it as user vitastor got EACCES. This happens with dm-multipath: the
dm partition's ready event is checked while by-partuuid still points at the
path partition. Assign ownership by partition type alone; the alias symlink
still needs a valid superblock.
2026-10-26 21:02:44 +03:00