<div dir="ltr">Regardless of this patch, it might be a good idea to mention /proc/self/mountinfo in systemd.mount(5) as currently there is no mention of .mount files might pop up by systemd by looking at /proc/self/mountinfo.<div style>
Thanks</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 23, 2013 at 9:23 AM, Umut Tezduyar <span dir="ltr"><<a href="mailto:umut@tezduyar.com" target="_blank">umut@tezduyar.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">---<br>
src/core/mount.c | 6 +++++-<br>
1 files changed, 5 insertions(+), 1 deletions(-)<br>
<br>
diff --git a/src/core/mount.c b/src/core/mount.c<br>
index 03eff9d..e5f5e42 100644<br>
--- a/src/core/mount.c<br>
+++ b/src/core/mount.c<br>
@@ -1472,7 +1472,7 @@ static int mount_add_one(<br>
int r;<br>
Unit *u;<br>
bool delete;<br>
- char *e, *w = NULL, *o = NULL, *f = NULL;<br>
+ char *e, *w = NULL, *o = NULL, *s = NULL, *f = NULL;<br>
MountParameters *p;<br>
bool load_extras = false;<br>
<br>
@@ -1545,6 +1545,7 @@ static int mount_add_one(<br>
<br>
if (!(w = strdup(what)) ||<br>
!(o = strdup(options)) ||<br>
+ !(s = strdup("/proc/self/mountinfo")) ||<br>
!(f = strdup(fstype))) {<br>
r = -ENOMEM;<br>
goto fail;<br>
@@ -1558,6 +1559,8 @@ static int mount_add_one(<br>
}<br>
<br>
MOUNT(u)->from_proc_self_mountinfo = true;<br>
+ free(u->source_path);<br>
+ u->source_path = s;<br>
<br>
free(p->what);<br>
p->what = w;<br>
@@ -1583,6 +1586,7 @@ static int mount_add_one(<br>
fail:<br>
free(w);<br>
free(o);<br>
+ free(s);<br>
free(f);<br>
<br>
if (delete && u)<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.2.5<br>
<br>
</font></span></blockquote></div><br></div>