]> git.ipfire.org Git - thirdparty/systemd.git/commit
mount: don't consider activated until /sbin/mount returns 7940/head
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Sat, 20 Jan 2018 20:12:09 +0000 (20:12 +0000)
committerAlan Jenkins <alan.christopher.jenkins@gmail.com>
Tue, 23 Jan 2018 11:09:18 +0000 (11:09 +0000)
commitb6ba0c164d23e2612ebd14d5d942f918ae955730
treef0e34260922ed9d313dd77ae44958186e842639c
parent570183612189f5dcc4f7a613cd13da43d652b4cf
mount: don't consider activated until /sbin/mount returns

So far, we considered mount units activated as soon as the mount
appeared.  This avoided seeing a difference between mounts started by
systemd, and e.g. by running `mount` from a terminal.
(`umount` was not handled this way).

However in some cases, options passed to `mount` require additional
system calls after the mount is successfully created.  E.g. the
`private` mount option, or the `ro` option on bind mounts.
It seems best to wait for mount to finish doing that.  E.g. in
the `private` case, the current behaviour could theoretically cause
non-deterministic results, as child mounts inherit the
private/shared propagation setting from their parent.

This also avoids a special case in mount_reload().
src/core/mount.c