Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2678132pxa; Mon, 17 Aug 2020 16:22:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnp6WFJigp80l5qlvMp2Ikrfpi/sPQ2y6IE/uXo8Gss3cKwkSMAkQXp0Od3hgZwQ+uw0ja X-Received: by 2002:a50:9fe6:: with SMTP id c93mr16589032edf.286.1597706548998; Mon, 17 Aug 2020 16:22:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597706548; cv=none; d=google.com; s=arc-20160816; b=s7LFu8HjPlb4g+Dxt5E9vhwImPTTODcv52H4NuOVLi+Cj4FDoy4GL2pfKH9WEQXmWr g9hkX8FyhyhvUxvpRo4rOmyN5AjJP7Lc25pb/XOPbLjBynoi0R8xpBGDyenAQ0l2ZhN+ 2Ur4NbD44Wxd6AjqG7W/vznaNBeRcVLRTm2U8gfM5Yzv9v54Jy24/pfgh2NbWCMO9Zhu lOf6FfcB//Is2whwXyu5mjsyCAl+TvNSIgfkSubMwxe9146Vtzm88cAy3N7JsYwq8GTm x1lhQQ3F+SOL71v84pL7Nwc5DsMuNuAnrpFR+LImtN4jkIjLi18INeRIaQ6HJVCV4EPB xB6A== 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=D4oCLwSFAMfX0jUk1zRXnY7OWQRSXzVnX6hrYGZa4vs=; b=uQRGE9H61kwdNqZNdSmMRhyymrfP2J7wIhJcljFGtVn6sMuP3o+BZH0mHdfzS+EZ/U ec72hPXnkCEbM19AbZz925xcobSkljW5+Idfr+6YmeKovpK+eLvCnWDj9NX5EJI/yIWv m3/nfCgPMz65AMNk5gtSJMaCs4W/h67iFruM+MiK4J9OFLaew9q4PZmM0RhYlJ4Hwlm6 FZQZcti7HoG0Ts/04VfmjF/nfPrR46v12ZWi0FhmZLHTm9DXu/tWcl8lLyqQGBcdwsyO J2h4DSGl5xSKN4F3FbjjWZKKobmtfGZMKAzN2VDNERnsGearlkqNU4CmWMGjWKQv/H+i ANtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Ot97LDuE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gs14si11864431ejb.615.2020.08.17.16.22.05; Mon, 17 Aug 2020 16:22:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Ot97LDuE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730812AbgHQWpN (ORCPT + 99 others); Mon, 17 Aug 2020 18:45:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729273AbgHQWpA (ORCPT ); Mon, 17 Aug 2020 18:45:00 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67A11C061342 for ; Mon, 17 Aug 2020 15:44:54 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id t6so19248290ljk.9 for ; Mon, 17 Aug 2020 15:44:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=D4oCLwSFAMfX0jUk1zRXnY7OWQRSXzVnX6hrYGZa4vs=; b=Ot97LDuE1VQD/tFXQHGZ9kal3BL+Bs8jJUmcjt3HaQFhxwhsmdVZmU7bqaxx6SHCOi Am2J3ry3DoqYNnlkX0YdsYu0rNFw9zoYcgEwV5ZpYnntndFXmS3jFlz+g59jSMMLNjLs FbV6xSzh8EqoGh9CvhAN6frNL/9IP9BgJF/YE= 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=D4oCLwSFAMfX0jUk1zRXnY7OWQRSXzVnX6hrYGZa4vs=; b=YTjel9vpdQmD25Un+sQrv6WzTNnrINs8YrIj08+1uqjKlHW5ZBXxKOqY9sIwlpp3J3 JjhBtTkOuCE2aPqEfCfs0b4Qfn14Tq48K3viq+L6yKodbZeV6l4dsRSWesLzkGnQNEsN EEBy698T2v0jG1VR+fU8123b2Nr2ft50XJNOrX0jdpmdkT4O9nMG94DEiLzF3cRIQS8n OejZp2RRyJQMnsNI/KElHdy6YMXc/Ze1IDpV+sA155h25DrqOpg/yxs1RJqebuNe6kCQ efETpAccAqD7elnECvLW1bh6mWOiSyHdhaxR8BIEFvOxxsIbpkypv5IyIrw3KFcDQ4lc Spxw== X-Gm-Message-State: AOAM533Je7hYDknno1y8z4vUocZMb1T2YXVIUn2VXXmMBlSo4B97pnwG hS12cI99eSuT75bECXxLEbSc5hZVlsCyzw== X-Received: by 2002:a2e:851a:: with SMTP id j26mr7706918lji.251.1597704288577; Mon, 17 Aug 2020 15:44:48 -0700 (PDT) Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com. [209.85.208.178]) by smtp.gmail.com with ESMTPSA id k12sm5867689lfe.68.2020.08.17.15.44.45 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Aug 2020 15:44:46 -0700 (PDT) Received: by mail-lj1-f178.google.com with SMTP id i10so19280182ljn.2 for ; Mon, 17 Aug 2020 15:44:45 -0700 (PDT) X-Received: by 2002:a2e:2e04:: with SMTP id u4mr8046290lju.102.1597704285617; Mon, 17 Aug 2020 15:44:45 -0700 (PDT) MIME-Version: 1.0 References: <1842689.1596468469@warthog.procyon.org.uk> <1845353.1596469795@warthog.procyon.org.uk> <20200811135419.GA1263716@miu.piliscsaba.redhat.com> <52483.1597190733@warthog.procyon.org.uk> <066f9aaf-ee97-46db-022f-5d007f9e6edb@redhat.com> <94f907f0-996e-0456-db8a-7823e2ef3d3f@redhat.com> In-Reply-To: From: Linus Torvalds Date: Mon, 17 Aug 2020 15:44:29 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: file metadata via fs API To: Steven Whitehouse Cc: David Howells , Miklos Szeredi , linux-fsdevel , Al Viro , Karel Zak , Jeff Layton , Miklos Szeredi , Nicolas Dichtel , Christian Brauner , Lennart Poettering , Linux API , Ian Kent , LSM , Linux Kernel Mailing List 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, Aug 17, 2020 at 10:15 AM Linus Torvalds wrote: > > So it has this very complex "random structures of random things" > implementation. It's a huge sign of over-design and "I don't know what > the hell I want to expose, so I'll make this generic thing that can > expose anything, and then I start adding random fields". You can see the overdesign in other places too: that "time granularity" is some very odd stuff. It doesn't actually even match the kernel granularity rules, so that fsinfo interface is basically exporting random crap that doesn't match reality. In the kernel, we give the granularity in nsec, but for some reason that fsinfo stuff gives it in some hand-written pseudo-floating-point format. Why? Don't ask me. And do we really want to have that whole odd Nth/Mth thing? Considering that it cannot be consistent or atomic, and the complaint against the /proc interfaces have been about that part, it really smells completely bogus. So please. Can we just make a simple extended statfs() and be done with it, instead of this hugely complex thing that does five different things with the same interface and makes it really odd as a result? Linus So honestly, there's a