projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d54bab9
)
mount: document that mount_add_extras() must work with active units, too
author
Lennart Poettering
<lennart@poettering.net>
Wed, 28 Nov 2018 11:37:23 +0000
(12:37 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 7 Dec 2018 16:30:14 +0000
(17:30 +0100)
src/core/mount.c
patch
|
blob
|
history
diff --git
a/src/core/mount.c
b/src/core/mount.c
index
94498bf
..
cfce014
100644
(file)
--- a/
src/core/mount.c
+++ b/
src/core/mount.c
@@
-543,6
+543,10
@@
static int mount_add_extras(Mount *m) {
assert(m);
+ /* Note: this call might be called after we already have been loaded once (and even when it has already been
+ * activated), in case data from /proc/self/mountinfo has changed. This means all code here needs to be ready
+ * to run with an already set up unit. */
+
if (u->fragment_path)
m->from_fragment = true;