Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3253248ybb; Tue, 31 Mar 2020 01:16:01 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvXil9T4NmmgwezQw0k+O0FkEiAjPQ80qk0l7a4lm+XiX5XHN8zZ+AQJFBzNAy8oirdCIey X-Received: by 2002:a4a:3e90:: with SMTP id t138mr2171388oot.24.1585642561699; Tue, 31 Mar 2020 01:16:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585642561; cv=none; d=google.com; s=arc-20160816; b=HaXSmz+/qZySkYT0SUZvdEfpw94eBsLzkRYPiNJUp4NZiYK1/oNdAWBoGcrjAOkqLX cnKuNRzCm5jtIQVegOUcZ2QuZvmOG5LU7j5+o0PjECUqpL2VJybpUPGF7XOq/7zPjXH4 FTmao2EEgqH1gQ6ZZAvb8wzxUJcnXgg1XgFUwbyKYTW1Q0DUQkfo2U+vKJiDPfi2KNw/ NSKk0QvLUiAtn1fvkBswlcShe4qV+E/tTIQjDSIZjQPnJkjbL3AW3j7ydZaSHCaEWrS8 aDwzIZdEKk+D5eQKHD5xI0WEFYIqkh4pu/gnyEhBi94Tu9lD5mc3WMCdTXoSJshzzCfk LXDA== 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=mOapVKu+F5v3gU3AheDSmQdw0fcDQGgutYRNOXj4Qk4=; b=EeCFZ23bfz0fIrHUP99mkKXXwxfgI6omHMxs7GHSq5ReUfyAagHZP+sdTEr7go7Kfp udhxl2j8dJvKToyFgUagmiXs9VTNSA/vs0KiIx4l4rnezYMx+I1IYecpDvhHIcNKk42c UaDFtXQ7nmYN5z8rBmJ8OsyeyXVQfzsNf0Vfb8hNUkW51zJhlCqzR/Jk7Xo/HCYFKcpO /EKWot94nqGZM8Ni8xT+Q1oTkJgJZEYXxsDkmV3D4AL9VjitPxYEOcXk3v+7x+HOjZsV DCHd6pkVUknkWNBTYJi3W8H66Wl11HtOi3wS5KnIjoIxEmxbkmCkcjuI6ThxvYyx+Nvi zzeQ== 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 r18si1228426otq.124.2020.03.31.01.15.48; Tue, 31 Mar 2020 01:16:01 -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 S1730099AbgCaIPT (ORCPT + 99 others); Tue, 31 Mar 2020 04:15:19 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:36301 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729997AbgCaIPS (ORCPT ); Tue, 31 Mar 2020 04:15:18 -0400 Received: from ip5f5bf7ec.dynamic.kabel-deutschland.de ([95.91.247.236] helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jJC3B-0000Od-Ku; Tue, 31 Mar 2020 08:15:09 +0000 Date: Tue, 31 Mar 2020 10:15:07 +0200 From: Christian Brauner To: Miklos Szeredi Cc: David Howells , Linus Torvalds , Al Viro , dray@redhat.com, Karel Zak , 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: <20200331081507.f6an4x32cxwpxdpd@wittgenstein> References: <1445647.1585576702@warthog.procyon.org.uk> <20200330211700.g7evnuvvjenq3fzm@wittgenstein> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 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 Tue, Mar 31, 2020 at 07:11:11AM +0200, Miklos Szeredi wrote: > On Mon, Mar 30, 2020 at 11:17 PM Christian Brauner > wrote: > > > Fwiw, putting down my kernel hat and speaking as someone who maintains > > two container runtimes and various other low-level bits and pieces in > > userspace who'd make heavy use of this stuff I would prefer the fd-based > > fsinfo() approach especially in the light of across namespace > > operations, querying all properties of a mount atomically all-at-once, > > fsinfo(2) doesn't meet the atomically all-at-once requirement. Sure, > it's possible to check the various change counters before and after a > batch of calls to check that the result is consistent. Still, that's > not an atomic all-at-once query, if you'd really require that, than > fsinfo(2) as it currently stands would be inadequate. It at all that's only true for batch requests. > > > and safe delegation through fds. Another heavy user of this would be > > systemd (Cced Lennart who I've discussed this with) which would prefer > > the fd-based approach as well. I think pulling this into a filesystem > > and making userspace parse around in a filesystem tree to query mount > > information is the wrong approach and will get messy pretty quickly > > especially in the face of mount and user namespace interactions and > > various other pitfalls. > > Have you actually looked at my proposed patch? Do you have concrete Yes. So have others, Al actively disliked and nacked it and no-one got excited about it. > issues or just vague bad feelings? We have had that discussion on-list where I made my "vague bad feelings" clear where you responded with the same dismissive style so I don't see the point in repeating this experience. Again, I want to make it clear that here I'm stating my preference as a user of this api and as such I don't want to have to parse through a filesystem to get complex information about filesystems. We've had fruitful discussions [1] around how fsinfo() ties in with supervised mounts and the rest of the mount api and its clear and simple especially in the face of namespaces and implements a nice delegation model. So +1 from me. Christian [1]: https://youtu.be/LN2CUgp8deo?t=6840