Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp430926ybb; Fri, 3 Apr 2020 05:35:58 -0700 (PDT) X-Google-Smtp-Source: APiQypKRS6imMepHFRZUsyip31p9Ap+wQaXLzT2PGSXcgqcRsmP+CgTsoJpEiBpSQYOBtsm9wYTd X-Received: by 2002:a05:6830:1d67:: with SMTP id l7mr5958017oti.72.1585917358412; Fri, 03 Apr 2020 05:35:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585917358; cv=none; d=google.com; s=arc-20160816; b=w4K5ObN3iYoRt7xBIiE/fgAiqt8KHxPGHyS60jygU5+0yay/zl3G5oMcS1u1I2s/HE NcBJZ17x84PzDtSWtIj7hSwrT/PpCzv+yvWcTq40XMVmiXotp5rze/byQ9fQpjinU1bu NQnl2nrnyeley0Rf1RugfK9MSaMSeRwc2elPAXJnZwvOE/3o1qdiYMtUUwXmgA61b/eF azlha/l8en3sosPV+KCSfKilS3U+eLZ/vBC759Peno30HP10RJDAGsQu42cBZJTPjCpd sdd7ZZw7FtVgkMEdQ8IEk83/X1muuNREFwc2ZNt/T8ongQvAcU4uU6hpDGfbGmHj1rJc Glcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=4xz6spXtxxXdjkDuCcyDHWPj+MoNvcOatFi0zEd+zC0=; b=B7+Nfqtt77dLQW4kYnQHMBSNYqHTmEeMIl2G3YvQLyw6KPx00MVViGFA2eyCAdblTh 4SB0JR4njm+eZsjBPB4B2zuDd1iGsQAAdVPyXb9wVUBXnpO4Ofa8bDXH2WWNIbreEG9C 0JzRakvkp1USXFiQAlKk/KpXbtOXbfGd3ojKfcr09EUDn2iDag5I0/9OEphmSPAc6ENn Bw9C4XT/5Jf6qPFSNfAutncRQgdmcaPeQtTfrIL85Y5SeHPeJOFwU0iiA0EwKUaNLWAt YbBwGxgASu+8iNKo6ZTrTvg5Nd8t2Mzi+txb3almaZZyBhMjxWINWhpqluGhsKHPzZDN gAVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rdInxIDZ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m12si3568401ooe.71.2020.04.03.05.35.45; Fri, 03 Apr 2020 05:35:58 -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=pass header.i=@gmail.com header.s=20161025 header.b=rdInxIDZ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403850AbgDCMFh (ORCPT + 99 others); Fri, 3 Apr 2020 08:05:37 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:46284 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728133AbgDCMFh (ORCPT ); Fri, 3 Apr 2020 08:05:37 -0400 Received: by mail-wr1-f65.google.com with SMTP id j17so8138330wru.13; Fri, 03 Apr 2020 05:05:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4xz6spXtxxXdjkDuCcyDHWPj+MoNvcOatFi0zEd+zC0=; b=rdInxIDZH8FzPi57P97yKIhOoXuVFtuqAb8PKguS0X1qKjdDr+qAG1PciOTqJxQ+Tz A1MNbOjSq9u4pwN8w48hwIekA1PRVNzQO89nb4KNL39ZCJuej1UqfsMDjD5y+ggmyzTp KJF+A4u7bkEHfF3LQfoBWGAWTXKDlIPfcOCIYFlrmHXlOIW8IH2vsfTUEgWF+nkbryXv 7t202s3pRaNZYm4ztPHeWsr0WTKU6Q5d2S+X5/XdOwzus9exF5ESNN3iON9qPDLw1aZa 62YsUsMcEK0cSyGHOTK9YctN8wFcucj7R7UhZsTzTEFDui8HJS++bY2vT6GxCvfIG/eN +i0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4xz6spXtxxXdjkDuCcyDHWPj+MoNvcOatFi0zEd+zC0=; b=YxhBOqKhxqQsrvXN0k0pZKLJhdyLlMs5C4wRKqU4/lFXDzpKZLmpcmtZQe5LqD/g/W PkSW4a1JCnOmojpTeSNreIu4QRNAQ/9fevMJCdcO59pzv3hwcZZhydEgyFDmYNd0SfzZ YCM+K1cXsMupvcr2UfsmTc311Gk0gLqh24eP+cN+lpxD5Txuh0X0WCzxYQ2HS1pH3VLh yfQFPbdIWtON6sImRbLr41oUPdryQzkxAjNKDe6/4X5Oizf+3BHj5pkb7AoZpuL5Ca7v TrBb6fnUMgICT71NJmQIHSFrVkHpeWHbx16nIt+P0HSlskagbXjKtZJa4gd/RwPpdRfN xNAQ== X-Gm-Message-State: AGi0PuYHDaKQ3fc6aPTEvZQXIhtYiWEtfLx/PKpAXyaDWVwPv1HdD1gp dybAPWSDxoyhim3PnlMHHE9xYA7G4vljjiTAS8fEJg== X-Received: by 2002:adf:a482:: with SMTP id g2mr3495010wrb.214.1585915535427; Fri, 03 Apr 2020 05:05:35 -0700 (PDT) MIME-Version: 1.0 References: <20200330211700.g7evnuvvjenq3fzm@wittgenstein> <1445647.1585576702@warthog.procyon.org.uk> <2418286.1585691572@warthog.procyon.org.uk> <20200401144109.GA29945@gardel-login> <2590640.1585757211@warthog.procyon.org.uk> <36e45eae8ad78f7b8889d9d03b8846e78d735d28.camel@themaw.net> <27994c53034c8f769ea063a54169317c3ee62c04.camel@themaw.net> <20200403111144.GB34663@gardel-login> In-Reply-To: From: Richard Weinberger Date: Fri, 3 Apr 2020 14:05:23 +0200 Message-ID: Subject: Re: Upcoming: Notifications, FS notifications and fsinfo() To: Miklos Szeredi Cc: Lennart Poettering , Ian Kent , David Howells , Christian Brauner , Linus Torvalds , Al Viro , dray@redhat.com, Karel Zak , Miklos Szeredi , Steven Whitehouse , Jeff Layton , andres@anarazel.de, keyrings@vger.kernel.org, linux-fsdevel , LKML , Aleksa Sarai Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 3, 2020 at 1:40 PM Miklos Szeredi wrote: > > On Fri, Apr 3, 2020 at 1:11 PM Lennart Poettering wrote: > > > > On Fr, 03.04.20 09:44, Ian Kent (raven@themaw.net) wrote: > > > > > > Currently the only way to find the mount id from a path is by parsing > > > > /proc/self/fdinfo/$fd. It is trivial, however, to extend statx(2) to > > > > return it directly from a path. Also the mount notification queue > > > > that David implemented contains the mount ID of the changed mount. > > > > I would love to have the mount ID exposed via statx(). > > Here's a patch. I was looking more than once for a nice way to get the mount id. Having it exposed via statx() would be great! -- Thanks, //richard