systemd.mount creating mount resource (What) for bind mounts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

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/2b583ce6576d4a074ce6f1570b3e60b65c64ae7d#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@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux