Return-Path: Received: from mail-eopbgr110040.outbound.protection.outlook.com ([40.107.11.40]:30816 "EHLO GBR01-CWL-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753074AbeE3NfS (ORCPT ); Wed, 30 May 2018 09:35:18 -0400 Subject: Re: [PATCH v3 4.17] inotify: Add flag IN_EXCL_ADD for inotify_add_watch() To: Jan Kara Cc: amir73il@gmail.com, linux-fsdevel@vger.kernel.org References: <20180516104430.1191-1-henry.wilson@acentic.com> <20180530102613.1194-1-henry.wilson@acentic.com> <20180530130136.uaj7akyuyp44mg3c@quack2.suse.cz> From: Henry Wilson Message-ID: <470ddceb-fa27-7467-c6ad-1aca4c551432@acentic.com> Date: Wed, 30 May 2018 14:35:13 +0100 MIME-Version: 1.0 In-Reply-To: <20180530130136.uaj7akyuyp44mg3c@quack2.suse.cz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On 30/05/18 14:01, Jan Kara wrote: > Thanks. The patch looks good. I've added it to my tree. BTW, do you plan on > working on a similar addition to fanotify? > > Honza > Ah that's grand, I'm glad to have helped to improve things. I'm not familiar with fanotify, however a quick look at fanotify_user.c suggests that a similar approach may be taken by modifying: if(!fsn_mark) { ... } else if (create) { return -EEXIST; } in both fanotify_add_vfsmount_mark() and fanotify_add_inode_mark() Regards, Henry.