[systemd-devel] [PATCH] udev: Adding zram to inappropriate block device
"Jóhann B. Guðmundsson"
johannbg at gmail.com
Sun Feb 2 07:27:26 PST 2014
On 02/02/2014 02:27 PM, Alexander E. Patrakov wrote:
> 02.02.2014 20:18, "Jóhann B. Guðmundsson" wrote:
>> On 02/02/2014 01:39 PM, Alexander E. Patrakov wrote:
>>> The patch is obviously harmless. However, I am not convinced that it
>>> is needed, because in my setup (without this patch) there are no links
>>> in /dev/disk pointing to any zram device. You can change my opinion by
>>> providing configuration files that do result in such links being
>>> created by systemd.
>> udev seems to have a race condition with swapon to see which can open
>> /dev/zram0 first, causing swapon to fail.
>> ( seems to be most noticeable on arm devices one out of every 7 times or
>> something ) and this patches udev's persistent storage rules to avoid
>> probing any zram devices.
> Thanks, this explains why the patch is needed. But this should really
> be in the commit message :)
Regarding the future of zram support in systemd should that not be added
to fstab-generator and swap, with unit type ending in .zswap?
More information about the systemd-devel