Return-Path: Received: from mail-lf0-f67.google.com ([209.85.215.67]:34967 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751488AbcJJT2i (ORCPT ); Mon, 10 Oct 2016 15:28:38 -0400 Received: by mail-lf0-f67.google.com with SMTP id x79so8302162lff.2 for ; Mon, 10 Oct 2016 12:28:28 -0700 (PDT) From: Amir Goldstein To: linux-fsdevel@vger.kernel.org Cc: Jan Kara , Lino Sanfilippo , Eric Paris , Al Viro Subject: [RFC][PATCH 0/7] fanotify: add support for more events Date: Mon, 10 Oct 2016 22:12:57 +0300 Message-Id: <1476126784-12520-1-git-send-email-amir73il@gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Hi all, This series is a prep work for using fanotify to monitor all events in a file system with a single watch. The end result is indented to be an alternative to the recursive inotify watches scheme, which has its problems. This first part adds support for most inotify events to fanotify when watching a directory. The next part will add support for watching a super block, which is not the same as watching a mount point. I am posting this WIP to get feedback on the idea and to find out if there are any users out there interested in the improved fanotify capabilities and/or in the super block monitoring use case. Amir Goldstein (7): fsnotify: pass dentry instead of inode when available fsnotify: annotate filename events fanotify: new init flag FAN_EVENT_INFO_PARENT fanotify: store mount point from which an inode watch was added fanotify: support events with data type FSNOTIFY_EVENT_DENTRY fanotify: add support for create/attrib/rename/delete events fanotify: pass filename info for filename events fs/notify/fanotify/fanotify.c | 85 +++++++++++++++++++++++++++++++---- fs/notify/fanotify/fanotify.h | 24 +++++++++- fs/notify/fanotify/fanotify_user.c | 92 ++++++++++++++++++++++++++++++++++---- fs/notify/fdinfo.c | 4 +- fs/notify/fsnotify.c | 2 +- fs/notify/inode_mark.c | 1 + fs/notify/mark.c | 15 +++++-- include/linux/fsnotify.h | 46 ++++++++++++++----- include/linux/fsnotify_backend.h | 24 +++++++--- include/uapi/linux/fanotify.h | 41 ++++++++++++++--- 10 files changed, 287 insertions(+), 47 deletions(-) -- 2.7.4