Re: [d_path 6/7] Filter out disconnected paths from /proc/mounts

2007-04-20 Thread Alan Cox
> There is some disagreement what /proc/mounts should include. Currently it
> reports all mounts from the current namespace and doesn't include lazy
> unmounts. This leads to ambiguities with the rootfs (which is an internal 
> mount
> irrelevant to user-space except in the initrd), and in chroots.
> 
> With this and the next patch, /proc/mounts only reports the mounts reachable
> for the current process, which makes a lot more sense IMO.  If the current
> process is rooted in the namespace root (which it usually is), it will see all
> mounts except for the rootfs.
> 
> Signed-off-by: Andreas Gruenbacher <[EMAIL PROTECTED]>

This change in behaviour appears to be fine for glibc (except when trying
to find the name of a file from a namespace we are not in, which wouldn't
have come out right before either)

Acked-by: Alan Cox <[EMAIL PROTECTED]>

(but still NAK on the getcwd change)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [d_path 6/7] Filter out disconnected paths from /proc/mounts

2007-04-20 Thread Alan Cox
 There is some disagreement what /proc/mounts should include. Currently it
 reports all mounts from the current namespace and doesn't include lazy
 unmounts. This leads to ambiguities with the rootfs (which is an internal 
 mount
 irrelevant to user-space except in the initrd), and in chroots.
 
 With this and the next patch, /proc/mounts only reports the mounts reachable
 for the current process, which makes a lot more sense IMO.  If the current
 process is rooted in the namespace root (which it usually is), it will see all
 mounts except for the rootfs.
 
 Signed-off-by: Andreas Gruenbacher [EMAIL PROTECTED]

This change in behaviour appears to be fine for glibc (except when trying
to find the name of a file from a namespace we are not in, which wouldn't
have come out right before either)

Acked-by: Alan Cox [EMAIL PROTECTED]

(but still NAK on the getcwd change)
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/