Re: [PATCH] proc: extend /proc/<pid>/fdinfo/<fd>

From: KOSAKI Motohiro
Date: Mon Feb 11 2008 - 05:20:58 EST


Hi Eugene

In general, I think this patch isn't wrong idea.
but it shuld be brush up more, may be.

> kerndev: ~/code/kernel# cat /proc/`pgrep pickup`/fdinfo/6
> mode: 0622

I think this is inode attribute, but not fd attribute.

> dev: 253,0
> ino: 21463057

may be useful, agreed with you :)

> uid: 89
> gid: 89
> rdev: 0,0
> pos: 0
> flags: 04002 FD_CLOEXEC # if close-on-exec flag is set

agreed with Miklos's opinion.

> path: /var/spool/postfix/public/pickup

may be, we shold think namespace..

> You can also use this to find out more information about locked open files:

is your requirement only fd -> ino pick up?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/