mount: document that mount_add_extras() must work with active units, too
authorLennart Poettering <lennart@poettering.net>
Wed, 28 Nov 2018 11:37:23 +0000 (12:37 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 7 Dec 2018 16:30:14 +0000 (17:30 +0100)
src/core/mount.c

index 94498bf..cfce014 100644 (file)
@@ -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;