[systemd-devel] Masking mount units
Andrei Borzenkov
arvidjaar at gmail.com
Thu Oct 31 19:08:06 UTC 2024
31.10.2024 16:03, Phillip Susi wrote:
> Lennart Poettering <lennart at poettering.net> writes:
>
>> Doing the locking on the fd you use for writing makes things a lot
>> easier, because as mentioned udev will automatically retrigger block
>> devices if an inotify event on it is seen that indicates
>> "close-after-write". If you deal with multiple fds you need to make
>
> That is exactly what I DON'T want to happen. If udev retriggers when
> the fd is closed, then that results in the partition being automatically
> mounted just because libparted read the partition table.
>
Way partition is mounted? What mounts it?
systemd stopped pulling mount units by device in 242:
> * The .device units generated by systemd-fstab-generator and other
> generators do not automatically pull in the corresponding .mount unit
> as a Wants= dependency. This means that simply plugging in the device
> will not cause the mount unit to be started automatically.
It sounds like you are shooting the messenger.
More information about the systemd-devel
mailing list