You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have external drives that are automounted on demand and unmounted on idle nicely. Problem is, when a drive is not present, operations (like when the above directory is accessed) hang for 90sec. The x-systemd.device-timeout fstab option works nicely for nofail cases but seems to be of no use for systemd.automount cases.
I have noted, according to systemd.mount(5), that device-timeout is only valid in fstab and not Options=.
If I understand correctly, this is why the fstab entry:
its more complicated... the device timeout is actually set on the .device unit, not the mount. Hence, to achieve the same effect from unit files, you'd have to add a .device drop-in, not make a .mount change...
Port the progagation logic to the generic Unit->trigger_notify() callback logic
in the unit vtable, that is called for a unit not only when the triggered unit
of it changes state but also when a job for that unit finishes. This, firstly
allows us to make the code a bit cleaner and more generic, but more
importantly, allows us to notice correctly when a mount job fails, and
propagate that back to autofs client processes.
Fixes: systemd#2181
(cherry picked from commit fae03ed)
[fbui: adjust context: drop the "Propagate start limit hit state" part
introduced by 6bf0f40]
[fbui: needed by the backport of 0a62f81]
I have external drives that are automounted on demand and unmounted on idle nicely. Problem is, when a drive is not present, operations (like when the above directory is accessed) hang for 90sec. The
x-systemd.device-timeout
fstab option works nicely fornofail
cases but seems to be of no use forsystemd.automount
cases.I have noted, according to systemd.mount(5), that device-timeout is only valid in fstab and not
Options=
.If I understand correctly, this is why the fstab entry:
...is not reflected in
systemctl show -a home-user-Media-Backup.mount
(generated):Is this by design or a limitation or just unimplemented? I have come across others with the same problem.
The text was updated successfully, but these errors were encountered: