Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1767930Ab2KONvV (ORCPT ); Thu, 15 Nov 2012 08:51:21 -0500 Received: from mailhub.sw.ru ([195.214.232.25]:16311 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1767793Ab2KONvS (ORCPT ); Thu, 15 Nov 2012 08:51:18 -0500 Message-ID: <50A4F340.9080201@parallels.com> Date: Thu, 15 Nov 2012 17:50:56 +0400 From: Pavel Emelyanov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 MIME-Version: 1.0 To: Cyrill Gorcunov , Al Viro , Andrew Morton CC: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Alexey Dobriyan , James Bottomley , Matthew Helsley , aneesh.kumar@linux.vnet.ibm.com, bfields@fieldses.org, oleg@redhat.com, rientjes@google.com, tvrtko.ursulin@onelan.co.uk, Andrey Vagin Subject: Re: [patch 7/7] fs, notify: Add procfs fdinfo helper v6 References: <20121114151937.344922058@openvz.org> <20121114152239.936025193@openvz.org> In-Reply-To: <20121114152239.936025193@openvz.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2513 Lines: 52 > 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: 02000000 > | inotify wd: 3 ino: 9e7e sdev: 800013 mask: 800afce ignored_mask: 0 fhandle-bytes: 8 fhandle-type: 1 f_handle: 7e9e0000640d1b6d > | inotify wd: 2 ino: a111 sdev: 800013 mask: 800afce ignored_mask: 0 fhandle-bytes: 8 fhandle-type: 1 f_handle: 11a1000020542153 > | inotify wd: 1 ino: 6b149 sdev: 800013 mask: 800afce ignored_mask: 0 fhandle-bytes: 8 fhandle-type: 1 f_handle: 49b1060023552153 > > If kernel compiled without exportfs support, the file handle > won't be provided but inode and device only. > > | pos: 0 > | flags: 02000000 > | inotify wd: 3 ino: 9e7e sdev: 800013 mask: 800afce ignored_mask: 0 > | inotify wd: 2 ino: a111 sdev: 800013 mask: 800afce ignored_mask: 0 > | inotify wd: 1 ino: 6b149 sdev: 800013 mask: 800afce ignored_mask: 0 > > For fanotify the output is like > > | pos: 0 > | flags: 02 > | fanotify ino: 68f71 sdev: 800013 mask: 1 ignored_mask: 40000000 > | fanotify mnt_id: 13 mask: 1 ignored_mask: 40000000 > > To minimize impact on general fsnotify code the new functionality > is gathered in fs/notify/fdinfo.c file. > > Signed-off-by: Cyrill Gorcunov > CC: Pavel Emelyanov > CC: Oleg Nesterov > CC: Andrey Vagin > CC: Al Viro > CC: Alexey Dobriyan > CC: Andrew Morton > CC: James Bottomley > CC: "Aneesh Kumar K.V" > CC: Alexey Dobriyan > CC: Matthew Helsley > CC: "J. Bruce Fields" > CC: "Aneesh Kumar K.V" > CC: Tvrtko Ursulin Acked-by: Pavel Emelyanov -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/