[systemd-devel] Antw: systemd.mount creating mount resource (What) for bind mounts

Ulrich Windl Ulrich.Windl at rz.uni-regensburg.de
Mon Jan 13 11:03:39 UTC 2020


>>> Anoop Karollil <anoop.karollil at gmail.com> schrieb am 07.01.2020 um 23:50
in
Nachricht
<CAGayzYuficuy5vzOpP2BfoxiUjMXAyrKn_HafVHO4GFLucvmuQ at mail.gmail.com>:
> Hello,
> 
> I see that a mount unit with `Options=bind` set creates the resource
> to be mounted, specified by `What`, in addition to the mount point,
> specified by `Where`, when they don't exist.

Personally I think a mount operation should not create any missing directory,
because a missing directory indicates some type of configuration problem that
should be solved by hand.

> 
> Manual page at 
> https://www.freedesktop.org/software/systemd/man/systemd.mount.html 
> mentions that the mount point will be created if it doesn't exist for
> `Where`. But doesn't mention that this applies to `What` too in the
> case of bind mounts. I think this is the change that added this
> behaviour: 
>
https://github.com/systemd/systemd/commit/2b583ce6576d4a074ce6f1570b3e60b65c6

> 4ae7d#diff‑df9fd757e73e7f659350e8a76994d42f.
> I found it a little surprising, especially since the behaviour is
> described for `Where` but not for `What`. So maybe its good to mention
> that in the systemd.mount man page under `What`?
> 
> Thanks,
> Anoop
> _______________________________________________
> systemd‑devel mailing list
> systemd‑devel at lists.freedesktop.org 
> https://lists.freedesktop.org/mailman/listinfo/systemd‑devel 





More information about the systemd-devel mailing list