Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3141832ybb; Mon, 30 Mar 2020 22:12:20 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsUVw0Vi3o6dwOcemCJqGqPuv121D/E9b71hVHQRdnvhLnMGpdzKvIhgqLDTBLt62chdPx2 X-Received: by 2002:aca:c6d1:: with SMTP id w200mr928870oif.43.1585631540176; Mon, 30 Mar 2020 22:12:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585631540; cv=none; d=google.com; s=arc-20160816; b=GGv42QprII8+qZQM2uMr13uajKFcPmhQvzANpFG1qr4sEP9gwTIWgmujPb3dVhf5nO CjhR5OwycoSIKhYcgnvPE+6GtjYbhHAFavYYnS/7ipcARf0atdeAXoqwU687G6okW614 aVr675ZBEWru7XtQigzt6CbaeGsZkPsFICCm2kZYB385+/TFCnPJ4WDJtNwG/isnJoWc zjTsKpNRgBKI4YIcHlJkgUa//Ddl3mOJdlfxZvYbeKYJ/EygGxd3pOyFrDMBVxetb/Ul xwMB7gzby7Hzw7CB1lGBrgn7mHaybBk5rXb6xpVN51EZTDM0VQ8/s+kXSDLd4v2rpve+ J0rg== 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=181xT05kF3H0VD4f8J7xShi9xZwvoRHrcpvFBQLeEIA=; b=lrPgc9iozAZF1HcpZHuRdAc7psk87aCHN64uFOW+pDWqxX3vGaNR/fhlLbEebuGflU 1lcZ6F1wwAW7kybkovgVpEFo/VOkN5u///NhwdBQ09Kps/EdqovLgOtIxvKk7Su8NuGC 9QY+xh42cftXK6P0e91lQ5W4/wQrltt8mSb3tVNDcG/+ZVu8ZIf/adqIKqdzNmNzxkr4 rWLwCpX3VxcAovqjm/kHxSs8MBcCoHhLWIlsIM5B4zq36r23bg20grKae4x/4qqjIHkA hs5ar+MiKlNoJDMxG6iyQTzpEneFxZqH7R8F6ms418KDVdx22SxBu38LAvaM326ifufk r6dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=m3IgsGGZ; 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 h6si6597529oib.246.2020.03.30.22.12.07; Mon, 30 Mar 2020 22:12:20 -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=m3IgsGGZ; 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 S1726543AbgCaFLY (ORCPT + 99 others); Tue, 31 Mar 2020 01:11:24 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:43336 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726520AbgCaFLY (ORCPT ); Tue, 31 Mar 2020 01:11:24 -0400 Received: by mail-ed1-f68.google.com with SMTP id bd14so23553205edb.10 for ; Mon, 30 Mar 2020 22:11:23 -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=181xT05kF3H0VD4f8J7xShi9xZwvoRHrcpvFBQLeEIA=; b=m3IgsGGZrBgakxVw5if3yzczNN+msQw/g4O9F81ImNkKRl6IR0dPN9pgwGDudyXoFD wIWE3Xb4wifN6VLA2/4V2jQdkh5DWnfWy9gEgEbaIM2wokowxXNZoF3v4dB085lzm0sT cxBvjCc7bpBAb5dgoCxTIjslzsJDa+Q/lTfFI= 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=181xT05kF3H0VD4f8J7xShi9xZwvoRHrcpvFBQLeEIA=; b=Ja+x7ucTZ1jnX8jFDVn9a9hCkHJ9k5RLYs8+Yamx3iaTHVzAAurAbFdutVkOnEyUd9 Zc0NJkDc+hrFoRjvOmRobklseZSe9TmSKAI24cvS0OK65uLbJQF8xwD5on2CJFspX3Rm qidaXhBxvwTPgqglrEXq6aq1GxVU58LsRx4xniAoFPUsK2OSpbwxWIFdnd9G3AdUUNpR vrIY+qDbCTMz8//FxHS+Utbt2RmYZuFXpvClJsuOItH/hY+iu+QqUqHCXJ1yMm00GlSt xGDPiTPXBNWgZt66gvWkgV3yP9cmccfnwe0nHvaPpvyWhLxadB+g6mC3Jx8nN1S7Qikd Zdnw== X-Gm-Message-State: ANhLgQ3IxUTZvh80D56USN24L29gxd+S6ezsCMUIhDjOpsXlx6aGDAyQ TvIOqU8gLUW2QaUKPZ4pk7/mQcHauDtYBnR9DoFJ6g== X-Received: by 2002:a17:906:9ca:: with SMTP id r10mr13543753eje.151.1585631482578; Mon, 30 Mar 2020 22:11:22 -0700 (PDT) MIME-Version: 1.0 References: <1445647.1585576702@warthog.procyon.org.uk> <20200330211700.g7evnuvvjenq3fzm@wittgenstein> In-Reply-To: <20200330211700.g7evnuvvjenq3fzm@wittgenstein> From: Miklos Szeredi Date: Tue, 31 Mar 2020 07:11:11 +0200 Message-ID: Subject: Re: Upcoming: Notifications, FS notifications and fsinfo() To: Christian Brauner 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 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 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. > 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 issues or just vague bad feelings? Thanks, Miklos