Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1925877ybb; Thu, 2 Apr 2020 09:49:15 -0700 (PDT) X-Google-Smtp-Source: APiQypKWX0AU8JsscizfLh6/jMblQee4HmBxnlmswsmc+QvEOKeEgwGXG+20nPj6v/OmP2poPAph X-Received: by 2002:a05:6830:1413:: with SMTP id v19mr2952052otp.41.1585846155725; Thu, 02 Apr 2020 09:49:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585846155; cv=none; d=google.com; s=arc-20160816; b=PPiwoGQ1EnM4jntF4TUpTuomgJ4FunwbToGzaaTJ4UZGkeCBueVYyDu38P4e3zn00I mAgT6MkEPgQcD/82QANECGlfAu2TgTD/EVIYI/9NLZqhcfTQ/jHFUAfvriDQFRzj3XLw PQNu74Qu8p3DHIYdRx4Ohq0LrRtQmn8SixazP06ztDZNUkUWGKuBW4WQPBfSK2oDy+3F knNfbs3LGYfaFrag2hn1LDE2iSe/JEKLxrlEF6zqoqS4XrEiX0TgsxYPNddkMgZDqIOd 3pzKmnWbA2KVT7ygoqqlNCC5VxHuDaFqDeN8gFliyrauXOPkRlkA8AIXysYGIermJftr nTRQ== 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; bh=QdB60MkcJhcClfH7xPMK4WaxEc0AzyGZvLMOrFqj9Vg=; b=WBYySKpSfmlzlOa5zAmkor3Fl3CjKJUNWdCHQSnQKp8vVNnzVrN9xThBZUDYj79mTk sZORXQAjW/PfTi6OohU3liNc52eBfAVuG6scBIaRnwME/ncwBDl+O6rtnG+BeA6ChNbi j1jmTO4dZNW13EEN60yqfUKl7nrBXvM634lbN4N5Zois8ln4NFmyxXlRPchEMtsJNBBV 5GILfmWLYtpkwG2u7Z/n1H54kIO11CkpNqrzbetnjD74FKWxhyMUT2OFrI7cFl/yOqO9 /o2f52DhLheNa9/WhpT68LMp/Up3iSrnHB0BSCNadqTx71RtCAQy21fcyzdTaw+LNrYj 6VAQ== ARC-Authentication-Results: i=1; mx.google.com; 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 w79si2561784oif.21.2020.04.02.09.49.03; Thu, 02 Apr 2020 09:49:15 -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; 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 S2389574AbgDBPu0 (ORCPT + 99 others); Thu, 2 Apr 2020 11:50:26 -0400 Received: from gardel.0pointer.net ([85.214.157.71]:51122 "EHLO gardel.0pointer.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388677AbgDBPu0 (ORCPT ); Thu, 2 Apr 2020 11:50:26 -0400 Received: from gardel-login.0pointer.net (gardel.0pointer.net [IPv6:2a01:238:43ed:c300:10c3:bcf3:3266:da74]) by gardel.0pointer.net (Postfix) with ESMTP id 8DB8FE80148; Thu, 2 Apr 2020 17:50:23 +0200 (CEST) Received: by gardel-login.0pointer.net (Postfix, from userid 1000) id 5B840160337; Thu, 2 Apr 2020 17:50:20 +0200 (CEST) Date: Thu, 2 Apr 2020 17:50:20 +0200 From: Lennart Poettering To: Miklos Szeredi Cc: 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@vger.kernel.org, linux-kernel@vger.kernel.org, Aleksa Sarai Subject: Re: Upcoming: Notifications, FS notifications and fsinfo() Message-ID: <20200402155020.GA31715@gardel-login> References: <20200401144109.GA29945@gardel-login> <2590640.1585757211@warthog.procyon.org.uk> <36e45eae8ad78f7b8889d9d03b8846e78d735d28.camel@themaw.net> <20200402143623.GB31529@gardel-login> <20200402152831.GA31612@gardel-login> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Do, 02.04.20 17:35, Miklos Szeredi (miklos@szeredi.hu) wrote: > > systemd cares about all mount points in PID1's mount namespace. > > > > The fact that mount tables can grow large is why we want something > > better than constantly reparsing the whole /proc/self/mountinfo. But > > filtering subsets of that is something we don't really care about. > > I can accept that, but you haven't given a reason why that's so. > > What does it do with the fact that an automount point was crossed, for > example? How does that affect the operation of systemd? We don't care how a mount point came to be. If it's autofs or something else, we don't care. We don't access these mount points ourselves ever, we just watch their existance. I mean, it's not just about startup it's also about shutdown. At shutdown we need to unmount everything from the leaves towards the root so that all file systems are in a clean state. And that means *all* mounts, even autofs ones, even udisks ones, or whatever else established them, we don't care. I mean, the autofs daemon can die any time, we still must be able to sensibly shutdown, and thus unmount all mounts inside some autofs hierarchy at the right time, before unmounting the autofs top-level dir and then what might be further up the tree. systemd needs to know the whole tree, to figure out deps properly for things like that, hence we aren't interested in filtering, we are interested in minimizing what we do when something changes. Lennart -- Lennart Poettering, Berlin