Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1956516ybb; Thu, 2 Apr 2020 10:22:03 -0700 (PDT) X-Google-Smtp-Source: APiQypKhcMOceE57pbPzn8A8CTQDlki/UeV0awEJgx5o92Qv9aMqagVcI2QSft5QdOjZgdf/aarQ X-Received: by 2002:a4a:8585:: with SMTP id t5mr3562431ooh.39.1585848123155; Thu, 02 Apr 2020 10:22:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585848123; cv=none; d=google.com; s=arc-20160816; b=Rz0v+xXWZjSWmASuxgTiOIFOOh4TslCFtYP57P3yYaSED5KBkHaD7YGZA8ayUpDcar T4ZaaphMmwN2AalmXqnqUApZ14h2LUGV9lK/fzFCDpoozEvVGDHcr1zUdn2eZv3rWJkd FoDF1s79kRuakuZDm7+0gTKx6LIigidNAJO8RKp19dioI9h2z2pu6nhIBp36CwDOyOwh b5NtQl6aFt4xcLMC9fHP9te4+04IBeScbwxKW/02YvHe4fQATjPGu/f9fEV7x68adwxW rnMrtVEZxuwT50edLb0s2FuloQDWnTX8HvhMQOci0WvPtzd/bwH55FLnDuFBD/nN17sl ib9g== 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=/8EoII7z9i5h4OnvIq0Rj015ZeVzlUXsiRDLRpXTqXw=; b=VQ0nwKml+5n3LBn148EDgCCoMjq2pTFCkRu0bFl1vOGsWZQFRTEL0+iOKKFELryCOA B1ynbPfhqIGtU01QTs0cfxx614/OLEmvqwq3WnOEEwcR9YPocBUIViPR2c3+Qm6U6m6n mGBwCruEx2Csgrhg0h1dkkvP2PWTIUV39yuLuDtcA0TZ9B5R2O3IAbQfJx1EJ0s5deJZ EWTe/T5Bt1xrNM9/f7FzXuUHi4nVIpBpxJkDqIvBJQBDoi1GM3geglCAR9y9e4fHUXv4 BRv9OY3Xm0K6DyAU3FDE3Y4AvdnDYG32g+0e6rShBNOPWvTW0JAZovg6f6stxwbkuof+ Hmkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=qazYXUmb; 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 h2si2151686otg.290.2020.04.02.10.21.50; Thu, 02 Apr 2020 10:22:03 -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=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=qazYXUmb; 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 S2389248AbgDBRUk (ORCPT + 99 others); Thu, 2 Apr 2020 13:20:40 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:39861 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389165AbgDBRUk (ORCPT ); Thu, 2 Apr 2020 13:20:40 -0400 Received: by mail-ed1-f68.google.com with SMTP id a43so5241593edf.6 for ; Thu, 02 Apr 2020 10:20:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/8EoII7z9i5h4OnvIq0Rj015ZeVzlUXsiRDLRpXTqXw=; b=qazYXUmbDRgfAw8MLzT3O7+59Pt4zqcbTg4g0l/11y7Dr1rCScxhqWrtzb5yM/chh5 xRLOjQHXW3454+bqFfrL1FiSjO9gPgydQ36xBjx2kVTf975fxHNN0Qpy7X52lFiDdAwG YO5SKfy/vuW+9URF5W7+XZqL7uBAwxH9JaXFA= 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=/8EoII7z9i5h4OnvIq0Rj015ZeVzlUXsiRDLRpXTqXw=; b=inauW8bniQNIJ8+y1/uvI4olQghjLBbX28b3GXCsbleq9HdXC6F8XbD81eqeRIfaEm tMTs7xjiPF9lqtUP2YzUrkqeR9RZKttS6GXRnocTQJqtk0vGKBnLTUBW4f+1tJ2hPpBB 6Jf3Z5adeGcd2B23Csfr5qIGW1ZbP6Z1mac/r0NkCCBLa75k02re9O8PU3EwbAtFqVkc IMDt0g8a+AWQ14/CJ3XP1vScXulRj7AD8Gt6c3USHVCXwjVx7O465sMhOsguZQ/o7NSh WID0d8ZS9qn56ydIaVn+U945IlW2d0SFn6qxcPplQkbBrnYWE51UEZo0RpTHCcUR2ICv 9yUQ== X-Gm-Message-State: AGi0PuYJDRvB6fnozC39hrLSVY0ZceI5f90y5A3eqtAHoaf9M4LSB0Yg RPnFqMVmAq/HG02j2LQKAUSdQIb6jDe4SlvZ4s8bgQ== X-Received: by 2002:aa7:cfd4:: with SMTP id r20mr3924122edy.378.1585848038082; Thu, 02 Apr 2020 10:20:38 -0700 (PDT) MIME-Version: 1.0 References: <20200401144109.GA29945@gardel-login> <2590640.1585757211@warthog.procyon.org.uk> <36e45eae8ad78f7b8889d9d03b8846e78d735d28.camel@themaw.net> <20200402143623.GB31529@gardel-login> <20200402152831.GA31612@gardel-login> <20200402155020.GA31715@gardel-login> In-Reply-To: <20200402155020.GA31715@gardel-login> From: Miklos Szeredi Date: Thu, 2 Apr 2020 19:20:26 +0200 Message-ID: Subject: Re: Upcoming: Notifications, FS notifications and fsinfo() To: Lennart Poettering 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 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 Thu, Apr 2, 2020 at 5:50 PM Lennart Poettering wrote: > > 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. Unfortunately that's not guaranteed by umounting all filesystems from the init namespace. A filesystem is shut down when all references to it are gone. Perhaps you instead want to lazy unmount root (yeah, that may not actually be allowed, but anyway, lazy unmounting the top level ones should do) and watch for super block shutdown events instead. Does that make any sense? Thanks, Miklos