Re: [RFC][PATCH] VFS: create /proc/<pid>/mountinfo

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <jengelh@...>
Cc: <miklos@...>, <akpm@...>, <linux-fsdevel@...>, <linux-kernel@...>, <util-linux-ng@...>, <linuxram@...>, <viro@...>, <hch@...>, <a.p.zijlstra@...>
Date: Sunday, January 20, 2008 - 8:20 am

> On Jan 19 2008 12:05, Miklos Szeredi wrote:

It is similar, but there is a significant difference: __d_path() shows
the path relative to the current process's root (possibly crossing
mount points), while dentry_path() shows the path relative to the
_filesystem's_ root (ignoring mount points, and current root).


OK.


OK.


The former is more readable, I think.  My rule is: surround anything
with {} if it's more than one line, even if not strictly necessary.
This is especially true for nested if/else statements, but makes sense
for 'for' as well.


OK


IDA returns int, so why change it?  Going over 2^31 number of mounts
doesn't seem likely in the near future.

Thanks,
Miklos
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC][PATCH] VFS: create /proc/&lt;pid&gt;/mountinfo, Miklos Szeredi, (Sat Jan 19, 7:05 am)
Re: [RFC][PATCH] VFS: create /proc/&lt;pid&gt;/mountinfo, Miklos Szeredi, (Mon Jan 21, 5:25 pm)
Re: [RFC][PATCH] VFS: create /proc/&lt;pid&gt;/mountinfo, Miklos Szeredi, (Mon Jan 21, 6:09 pm)
Re: [RFC][PATCH] VFS: create /proc/&lt;pid&gt;/mountinfo, Serge E. Hallyn, (Tue Jan 22, 4:56 pm)
Re: [RFC][PATCH] VFS: create /proc/&lt;pid&gt;/mountinfo, Jan Engelhardt, (Sun Jan 20, 7:20 am)
Re: [RFC][PATCH] VFS: create /proc/<pid>/mountinfo, Miklos Szeredi, (Sun Jan 20, 8:20 am)
Re: [RFC][PATCH] VFS: create /proc/&lt;pid&gt;/mountinfo, H. Peter Anvin, (Sun Jan 20, 1:41 am)
Re: [RFC][PATCH] VFS: create /proc/&lt;pid&gt;/mountinfo, Miklos Szeredi, (Sun Jan 20, 4:23 am)
Re: [RFC][PATCH] VFS: create /proc/&lt;pid&gt;/mountinfo, H. Peter Anvin, (Wed Jan 23, 3:02 pm)
Re: [RFC][PATCH] VFS: create /proc/&lt;pid&gt;/mountinfo, Miklos Szeredi, (Wed Jan 23, 3:32 pm)