<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi,</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">It is because patch [1/2] of this patch set hasn't been committed. I have made the same patch independent of patch [1/2] and attached to this email thread. </div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>Thanks</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 7, 2013 at 6:12 AM, Zbigniew Jędrzejewski-Szmek <span dir="ltr"><<a href="mailto:zbyszek@in.waw.pl" target="_blank">zbyszek@in.waw.pl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Mon, Feb 04, 2013 at 03:01:23PM +0100, Umut Tezduyar wrote:<br>
> Only set source for freshly created .mounts coming from<br>
> mountinfo file.<br>
</div>Doesn't seem to apply anymore...<br>
<br>
Zbyszek<br>
<div><div class="h5"><br>
> ---<br>
> src/core/mount.c | 12 +++++++-----<br>
> 1 files changed, 7 insertions(+), 5 deletions(-)<br>
><br>
> diff --git a/src/core/mount.c b/src/core/mount.c<br>
> index 29ce440..8231059 100644<br>
> --- a/src/core/mount.c<br>
> +++ b/src/core/mount.c<br>
> @@ -1440,7 +1440,7 @@ static int mount_add_one(<br>
> int r;<br>
> Unit *u;<br>
> bool delete;<br>
> - char *e, *w = NULL, *o = NULL, *s = NULL, *f = NULL;<br>
> + char *e, *w = NULL, *o = NULL, *f = NULL;<br>
> MountParameters *p;<br>
> bool load_extras = false;<br>
><br>
> @@ -1488,6 +1488,12 @@ static int mount_add_one(<br>
> goto fail;<br>
> }<br>
><br>
> + u->source_path = strdup("/proc/self/mountinfo");<br>
> + if (!u->source_path) {<br>
> + r = -ENOMEM;<br>
> + goto fail;<br>
> + }<br>
> +<br>
> r = unit_add_two_dependencies_by_name(u, UNIT_BEFORE, UNIT_REQUIRED_BY, SPECIAL_LOCAL_FS_TARGET, NULL, true);<br>
> if (r < 0)<br>
> goto fail;<br>
> @@ -1517,7 +1523,6 @@ 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>
> @@ -1531,8 +1536,6 @@ 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>
> @@ -1558,7 +1561,6 @@ 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>
> --<br>
> 1.7.2.5<br>
><br>
</div></div>> _______________________________________________<br>
> systemd-devel mailing list<br>
> <a href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
><br>
</blockquote></div><br></div>