Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756318AbbFPNJy (ORCPT ); Tue, 16 Jun 2015 09:09:54 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:15142 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752404AbbFPNJo (ORCPT ); Tue, 16 Jun 2015 09:09:44 -0400 X-AuditID: cbfec7f5-f794b6d000001495-cb-55802015df72 From: Beata Michalska To: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org Cc: greg@kroah.com, jack@suse.cz, tytso@mit.edu, adilger.kernel@dilger.ca, hughd@google.com, lczerner@redhat.com, hch@infradead.org, linux-ext4@vger.kernel.org, linux-mm@kvack.org, kyungmin.park@samsung.com, kmpark@infradead.org Subject: [RFC v3 0/4] fs: Add generic file system event notifications Date: Tue, 16 Jun 2015 15:09:29 +0200 Message-id: <1434460173-18427-1-git-send-email-b.michalska@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrMLMWRmVeSWpSXmKPExsVy+t/xq7qiCg2hBncncFp8/dLBYnFuwQxG i9MTFjFZPP3Ux2Ixe3ozk8Wty6tYLM42vWG3WPZgM4vF5u8dbBYz591hs9iz9ySLxeVdc9gs 7q35z2rR2vOT3YHPo2VzuceCTaUem1doebx9GOCx6dMkdo+mM0eZPd7vu8rm0bdlFaPHmQVH 2D0+b5IL4IrisklJzcksSy3St0vgyljddJG5YIdExarvR1gaGLsEuxg5OSQETCTu7LnCCGGL SVy4t54NxBYSWMoosakhr4uRC8huZJI4vGknE0iCTUBf4tWMlWC2iECMxMFdPSwgRcwCrxgl /jxcDpYQFnCVmL7vEDuIzSKgKjF790kwm1fAXaLlRR+QzQG0TUFiziSbCYzcCxgZVjGKppYm FxQnpeca6RUn5haX5qXrJefnbmKEBOXXHYxLj1kdYhTgYFTi4Y34VBsqxJpYVlyZe4hRgoNZ SYR3nkhDqBBvSmJlVWpRfnxRaU5q8SFGaQ4WJXHembvehwgJpCeWpGanphakFsFkmTg4pRoY j7cUq2lWTZGWVwzb57fXc0ZRWdOC9I8RexpOdqm/kRcq+yB2VUNVb9apd+5XxZYqLZaRujv5 llrpVV2dhce4xBa95X86Zb9nusWqnim9QTsDHc9tfaCRy3plXUv9/o1zTK5YTz8fz51+seHw /omvW332PPVIb7UMeXFq1YcnfPx9LUm/UveWKrEUZyQaajEXFScCAN/fFjFGAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3294 Lines: 84 Hi All, First of all, apologies for the delay: illness ruled out my plans for having this out for a review as intended. Anyway this is an updated version of the patchset for generic filesystem events interface [1][2], hopefully handling issues raised during the previous run. Changes from v2: - Switched to kref for reference counting - Support for the events has been made optional (config option) - Use dynamically assigned id for multicast group instead of using static one - Verify if there are any net listeners prior to sending the msg - Make the interface more namespace-aware (handling mount dropped and showing the content of config file). As for the network namespaces - as before only the init net namespace is being supported. Changes from v1: - Improved synchronization: switched to RCU accompanied with ref counting mechanism - Limiting scope of supported event types along with default event codes - Slightly modified configuration (event types followed by arguments where required) - Updated documentation - Unified naming for netlink attributes - Updated netlink message format to include dev minor:major numbers despite the filesystem type - Switched to single cmd id for messages - Removed the per-config-entry ids --- [1] https://lkml.org/lkml/2015/4/15/46 [2] https://lkml.org/lkml/2015/4/27/244 --- Beata Michalska (4): fs: Add generic file system event notifications ext4: Add helper function to mark group as corrupted ext4: Add support for generic FS events shmem: Add support for generic FS events Documentation/filesystems/events.txt | 232 ++++++++++ fs/Kconfig | 2 + fs/Makefile | 1 + fs/events/Kconfig | 7 + fs/events/Makefile | 5 + fs/events/fs_event.c | 809 ++++++++++++++++++++++++++++++++++ fs/events/fs_event.h | 22 + fs/events/fs_event_netlink.c | 104 +++++ fs/ext4/balloc.c | 25 +- fs/ext4/ext4.h | 10 + fs/ext4/ialloc.c | 5 +- fs/ext4/inode.c | 2 +- fs/ext4/mballoc.c | 17 +- fs/ext4/resize.c | 1 + fs/ext4/super.c | 39 ++ fs/namespace.c | 1 + include/linux/fs.h | 6 +- include/linux/fs_event.h | 72 +++ include/uapi/linux/Kbuild | 1 + include/uapi/linux/fs_event.h | 58 +++ mm/shmem.c | 33 +- 21 files changed, 1419 insertions(+), 33 deletions(-) create mode 100644 Documentation/filesystems/events.txt create mode 100644 fs/events/Kconfig create mode 100644 fs/events/Makefile create mode 100644 fs/events/fs_event.c create mode 100644 fs/events/fs_event.h create mode 100644 fs/events/fs_event_netlink.c create mode 100644 include/linux/fs_event.h create mode 100644 include/uapi/linux/fs_event.h -- 1.7.9.5 -- 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/