Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2242375ybi; Mon, 1 Jul 2019 08:36:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqyF7nLc+64KdkzGd18G3tvXItUkE1Nv7CGw6OHpEnCdRBDS1B+s3nZFHuILd7ruczSSLy1z X-Received: by 2002:a63:c342:: with SMTP id e2mr11726903pgd.79.1561995384187; Mon, 01 Jul 2019 08:36:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561995384; cv=none; d=google.com; s=arc-20160816; b=dCP7wsPlNprj0nY8buHhpSNVk71hS5HVRHfK1vLE7nkG3XfKPy3jdX8/EoHbXknWQM BVyN9J8uUoINOlq+IhOvxhN63Dkf6OsmZ/QSs8QEBoN6BhLByhtSl9HAY03vjVd7zW1G xYhU+jUibSNUzTSAvSzk8k2PEG8sLajpa3A8Z3RkXh4r6slp8t24t+ECoxCJQY7VnmZc O+TV84ctSeBZcJhgfzRwG7JfGGZyXAtp6aqiPFApAbhl4qcuFHe16j/U9F+/zmjBZuQb pI2yBkQLIVa+ZuIftm1Dke0Wf7RFVDzoWW0p5PVutKg2XAnaGi8sXEJrflTtLg/knOS+ SUBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=iNgGMHAOMdwbYrGUW9dUANMTp/OnqfmLFCUXKRGNhqU=; b=j344kSqrPzVdrgtl31KIuukrA1NtHdNZiBH1kwmpRIQO5HkQvlyEMSFReQV+h+KC2W 0c0kr+0XMXyhm9aCiqizLZ5mqHQqNZlV/NDNi8IDiMK+d6DtqI6azF9X4V71vzeB6W+y Od3wlC7xSem2WY3d/BYsVKIzEUB26hW/B9WhsfNw2xjsiCb8IEtMTLt983deEm+GRsDP fpFGEym4f4vRURjFhUqw0we0/FyROpBZOBKrv4ML/Osjn7xF2l3PeDELd9n8GAAn6eEy pTRf/DmSCxeWbKRDjCWZQiuTpeGFv/MzzoWdAE0gZ6l7/kFjZ9RzjbC47O25WdzXnyJk P+tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=tKAdlaBk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q18si10469715pll.79.2019.07.01.08.36.07; Mon, 01 Jul 2019 08:36:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=tKAdlaBk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729875AbfGAOwF (ORCPT + 99 others); Mon, 1 Jul 2019 10:52:05 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:47448 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726967AbfGAOwF (ORCPT ); Mon, 1 Jul 2019 10:52:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=iNgGMHAOMdwbYrGUW9dUANMTp/OnqfmLFCUXKRGNhqU=; b=tKAdlaBkc6+ZhWNkkzk5/6n+v 9FLtdiXQhfQnlRJPwhhhuN7r6QAfd7K2X5s5fBgSViAS+piJS1JIqKLf5tSXkUX7FiFrdWYlm9lJj n3HotnqonJghfRMa66zYF+c+C7dhQ9LdhW2e6HSNiiYicixA9R9pBedgTX+fkOdHoXGm/GCUxVzAp QoR1IcodhQcJLz8OwyX7ucYFio2hkDTxx9SilsZ+OYRaq1W+3vt3E5/K8meT3t3JW7Zf8Q8YtxMzO 1/eSFB0FTnl950+jA4eE2B+XQW27I0BXn10RSPUY+W144d/BPUjMMLME8n2VoMPHixcfv0MJvtVUs rf9M2wc9Q==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hhxf1-0008LD-9H; Mon, 01 Jul 2019 14:52:03 +0000 Subject: Re: [PATCH 2/6] Adjust watch_queue documentation to mention mount and superblock watches. [ver #5] To: David Howells Cc: viro@zeniv.linux.org.uk, Casey Schaufler , Stephen Smalley , Greg Kroah-Hartman , nicolas.dichtel@6wind.com, raven@themaw.net, Christian Brauner , keyrings@vger.kernel.org, linux-usb@vger.kernel.org, linux-security-module@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org References: <7a288c2c-11a1-87df-9550-b247d6ce3010@infradead.org> <156173701358.15650.8735203424342507015.stgit@warthog.procyon.org.uk> <156173703546.15650.14319137940607993268.stgit@warthog.procyon.org.uk> <8212.1561971170@warthog.procyon.org.uk> From: Randy Dunlap Message-ID: <90d07cf5-5ba4-1fb6-72b3-f120423a7726@infradead.org> Date: Mon, 1 Jul 2019 07:52:02 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <8212.1561971170@warthog.procyon.org.uk> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/1/19 1:52 AM, David Howells wrote: > Randy Dunlap wrote: > >> I'm having a little trouble parsing that sentence. >> Could you clarify it or maybe rewrite/modify it? >> Thanks. > > How about: > > * ``info_filter`` and ``info_mask`` act as a filter on the info field of the > notification record. The notification is only written into the buffer if:: > > (watch.info & info_mask) == info_filter > > This could be used, for example, to ignore events that are not exactly on > the watched point in a mount tree by specifying NOTIFY_MOUNT_IN_SUBTREE > must not be set, e.g.:: > > { > .type = WATCH_TYPE_MOUNT_NOTIFY, > .info_filter = 0, > .info_mask = NOTIFY_MOUNT_IN_SUBTREE, > .subtype_filter = ..., > } > > as an event would be only permissible with this filter if:: > > (watch.info & NOTIFY_MOUNT_IN_SUBTREE) == 0 > > David > Yes, better. Thanks. -- ~Randy