Re: [patch 4/7] fs, notify: Add procfs fdinfo helper v4

2012-11-12 Thread Cyrill Gorcunov
On Mon, Nov 12, 2012 at 05:00:17PM -0800, Andrew Morton wrote: > > > > static const struct file_operations inotify_fops = { > > +#ifdef CONFIG_PROC_FS > > + .show_fdinfo= inotify_show_fdinfo, > > +#endif > > .poll = inotify_poll, > > .read = inotify_read, > >

Re: [patch 4/7] fs, notify: Add procfs fdinfo helper v4

2012-11-12 Thread Andrew Morton
On Mon, 12 Nov 2012 14:14:44 +0400 Cyrill Gorcunov wrote: > This allow us to print out fsnotify details such as > watchee inode, device, mask and optionally a file handle. > > For inotify objects if kernel compiled with exportfs support > the output will be > > | pos: 0 > | flags: 0

[patch 4/7] fs, notify: Add procfs fdinfo helper v4

2012-11-12 Thread Cyrill Gorcunov
This allow us to print out fsnotify details such as watchee inode, device, mask and optionally a file handle. For inotify objects if kernel compiled with exportfs support the output will be | pos: 0 | flags: 0200 | inotify wd:3 ino: 9e7e sdev: 800013 mask: 800a

[patch 4/7] fs, notify: Add procfs fdinfo helper v4

2012-09-12 Thread Cyrill Gorcunov
This allow us to print out fsnotify details such as watchee inode, device, mask and optionally a file handle. For inotify objects if kernel compiled with exportfs support the output will be | pos: 0 | flags: 0200 | inotify wd:3 ino: 9e7e sdev: 800013 mask: 800a

[patch 4/7] fs, notify: Add procfs fdinfo helper v4

2012-08-16 Thread Cyrill Gorcunov
This allow us to print out fsnotify details such as watchee inode, device, mask and file handle. For example for inotify objects the output is | pos: 0 | flags: 0200 | inotify wd:3 ino: 9e7e sdev: 800013 mask: 800afce ignored_mask:0 | inotify wd: