Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp3651337pja; Tue, 31 Mar 2020 02:50:21 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuag/1LLlODU49sAXO9mRw0+kqyjnR3VihFAErluI9Gfqj5fpb8c3nAD0wQm9wFIVsVJFOD X-Received: by 2002:aca:534d:: with SMTP id h74mr1362785oib.173.1585648221117; Tue, 31 Mar 2020 02:50:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585648221; cv=none; d=google.com; s=arc-20160816; b=ZWaFWWu8rE7sWY6jVrkBbwQunIiT7bMlMcTWRUQNSBNlYfwU+XNtvSFBhEG6+0y0g2 dE7PRQvE3d+uak5kewYCCBgsGRA2nxg4nwcfl6ixELjPpYlWR++IkiEHE0tlkiwufnz/ pBvozKDvYPakZIjrDaLEV8FpMK8yCuO3Ob9sBko4IgpQxLP0/wRA5ozLFotT9zWUgNs9 pHLKyiEPM4v4SoHsGcbRute+cnRwjEQ4XM7JUmQSemrDxcPNvdAvceIFas6i2Hs0/89J JkPWoiFoDxzXvHa8JJietvIb1Mgy4isnqlFNzmbMJeifJIq5LvUymYJqt2BGKmjKFTr0 cuuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Z4v/YtSm7khSMtma48XmYXMI66/O3qRGCFmAxLMn+2U=; b=TUnvVgSoc5U1n62QFP0PRIUl96n4SitEcSxz3h9bBn/CiptoBHuJ0BbIAhLgURohsm VK9Xv2oWJt5Scg1MuG3wzv0tod54hYqUO7Q+0XpXxdGSz+ZrHgRFP9PYKU93wkxHwOKt ctoaoLV638QpfSOE8FHZJ0AsVYbFkSGaDh9TmdCMfSx3OX4682LLqEnJ/zO1YrWKrU2/ 6m0y1aS1Zrwj4sppEq42InTpY3mu95iUNlmnvFWvFQKapWOVB3oIf1GX4gkpizoyPGjp 9IZtwuUxV2xYff4kLlgJ/ZKtUEWUEppEBiW72pyGTW2OMzVEKv+NEuqpxwcKaYeIB4h/ kcig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NqjYVLaC; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w11si6746894oib.235.2020.03.31.02.50.08; Tue, 31 Mar 2020 02:50:21 -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=@redhat.com header.s=mimecast20190719 header.b=NqjYVLaC; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730353AbgCaJto (ORCPT + 99 others); Tue, 31 Mar 2020 05:49:44 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:21695 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730131AbgCaJtn (ORCPT ); Tue, 31 Mar 2020 05:49:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585648182; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Z4v/YtSm7khSMtma48XmYXMI66/O3qRGCFmAxLMn+2U=; b=NqjYVLaCD7agG9fI4rD9iLT4+kBSb2mKLUv53oxUlHQn5vWcLsuAUfe/WUX6itl6X6DJLw r0oKHhNMH+V8idDnUbLhKl4kN/2bsacxbv0zG+LwZcpPuKFojeZwKebsdTRw62OM1tfhE3 SmIP7JpBr6Bw4JQLybDIH00zaOU3ck4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-479-wsmh7QxlMIexmPjb_Lr0Pw-1; Tue, 31 Mar 2020 05:49:38 -0400 X-MC-Unique: wsmh7QxlMIexmPjb_Lr0Pw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7F5621005509; Tue, 31 Mar 2020 09:49:36 +0000 (UTC) Received: from ws.net.home (unknown [10.40.194.51]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BB62598A21; Tue, 31 Mar 2020 09:49:32 +0000 (UTC) Date: Tue, 31 Mar 2020 11:49:30 +0200 From: Karel Zak To: Miklos Szeredi Cc: Christian Brauner , David Howells , Linus Torvalds , Al Viro , dray@redhat.com, Miklos Szeredi , Steven Whitehouse , Jeff Layton , Ian Kent , andres@anarazel.de, keyrings@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Lennart Poettering , Aleksa Sarai Subject: Re: Upcoming: Notifications, FS notifications and fsinfo() Message-ID: <20200331094930.3aipm3zrydpqqhms@ws.net.home> References: <1445647.1585576702@warthog.procyon.org.uk> <20200330211700.g7evnuvvjenq3fzm@wittgenstein> <20200331083430.kserp35qabnxvths@ws.net.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 31, 2020 at 10:56:35AM +0200, Miklos Szeredi wrote: > I think we are approaching this from the wrong end. Let's just > ignore all of the proposed interfaces for now and only concentrate on > what this will be used for. > > Start with a set of use cases by all interested parties. E.g. > > - systemd wants to keep track attached mounts in a namespace, as well > as new detached mounts created by fsmount() > > - systemd need to keep information (such as parent, children, mount > flags, fs options, etc) up to date on any change of topology or > attributes. > > - util linux needs to display the topology and state of mounts in the > system that corresponds to a consistent state that set of mounts - like systemd we also need in mount/umount to query one mountpoint rather than parse all /proc/self/mountinfo Karel -- Karel Zak http://karelzak.blogspot.com