Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp703578pxa; Wed, 12 Aug 2020 11:21:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKb/kAcd4V4APTvmv+3oOijqQxp+1efjnzpUoccHUu6gxx9tFwJ+lMKuGtW/r3FBoqKQEA X-Received: by 2002:a17:906:89a:: with SMTP id n26mr1007561eje.363.1597256467246; Wed, 12 Aug 2020 11:21:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597256467; cv=none; d=google.com; s=arc-20160816; b=V5rUgyuh/RSekA/CUaiGFdXJQdCX3LSWBhNMO+r/1G/3cDX3FqMI2AWxBCNlRVGRIu EhOBF+GnKvDbs2lSttl78iIjDMiYF2N0aMnIbJWuhEYkQXtB/8IJ091bjHsq8CxTfEZM Gk13LSTMWy1HwJz9w4uou8xKhAzWtfgohkNDEN46BPkzL6GvPa9g5UVoVQfM6jO6iUNq /4J2wHnqUaK04dExkf8FMvzNQE5XX5Oxl5pvGJk+wnTAy1lnBzBuWWqrYSJAGXU+Cc9f +sDY2eMTfjKhDVhGrj2TrtUFrkfyQV9ulmtStWxtRoDo9EmsyqznLW4nfpbT1SC9wD+s ZMpQ== 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=O5NX6kMDP5qmBpQCPkWzwhmOd6ct20g0CcQwpleYHFc=; b=y5swUb00UYbnPcyqkW+7sGgb02xDUconhgL/S0ERdNgF66Vw+j7ighk2bbWV7VPsMK b1ySbWcxa08kW2W0GEdTKXOMRHVcBHSQV9soMYGRbYq4x636src6Yf/bkyLKBsdZi4Zy yq7sEIkcYuHWzxiA0ZhVp1raNIy2PDOaLVsFlEVKYUz2OQ+zPYcFTMjVGzW6G5aH1YZi vQnAElj6QvtFOxKCUZWJRuP9TsM06UOzix3s7XwvZcV2VZESzEOO/A6qXyZhp+6w/gmL 5LcwV3oGMs+nRLzdbN7f1HzklD18cfkj4ZGsXGFwgv2+CqTN1J3aGM2/6D9kxhqDGbaE 9G/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=US2q3Mwn; 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 jz19si1760476ejb.34.2020.08.12.11.20.42; Wed, 12 Aug 2020 11:21:07 -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=US2q3Mwn; 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 S1726568AbgHLSSt (ORCPT + 99 others); Wed, 12 Aug 2020 14:18:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726554AbgHLSSr (ORCPT ); Wed, 12 Aug 2020 14:18:47 -0400 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 453ECC061384 for ; Wed, 12 Aug 2020 11:18:46 -0700 (PDT) Received: by mail-lj1-x242.google.com with SMTP id v4so3343698ljd.0 for ; Wed, 12 Aug 2020 11:18:46 -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=O5NX6kMDP5qmBpQCPkWzwhmOd6ct20g0CcQwpleYHFc=; b=US2q3MwnTSjWfqpie9O3CRcizx9uSCz4S3vkL7p/ooj414+R066sTYC3Q4A4VD1OD6 WbBdeRdiPaC//fSZsRo3WOoZpu8gTtAt7k7tMZ8hwJVqEhGHjLO4oOIslMbvG22T1LrR FvpBZZmDKWHcNGLeiM+6hKFDuuH8IvkNuF9T8= 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=O5NX6kMDP5qmBpQCPkWzwhmOd6ct20g0CcQwpleYHFc=; b=ueFbTcW9omRsKdcd75cmf+KdnwuJDzy17bxma5pbJErB2doVeFs64oci5DNIYTWqAH 2Lb1o2vmADf10/W0ujwNdlbKDskgTlF3lOWRGpql29tk/jo9JptLxHsMrhqwOff34+Yl Hyl952ERh78ehdGpT8k05SQpMVa2NzwEPIj5J65BMPFAYh4plnOBa4qjH04FXU5fpZoj xsj4iTT6H5p/xavVYtIunQJQ3odVx9Hhs1iZHhumMjFhDjZBBkrKKHR7jqdCQYNwgYS8 jbC6bNsaEEjpWlrujztHACRGSLU/880+aFcbpErQvuwp0nUGVws5w7+6jq5rFT6Cg9TB E24g== X-Gm-Message-State: AOAM533TsQ92gy4oxZX0LOpwK7mVasql2cITQvwvxBKYzrdtptypLoi1 q0Sn4OdPkFGLnqjhiDVx2xOJhNDLK3M= X-Received: by 2002:a05:651c:1396:: with SMTP id k22mr241312ljb.62.1597256324147; Wed, 12 Aug 2020 11:18:44 -0700 (PDT) Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com. [209.85.167.50]) by smtp.gmail.com with ESMTPSA id z20sm584964ljk.97.2020.08.12.11.18.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Aug 2020 11:18:41 -0700 (PDT) Received: by mail-lf1-f50.google.com with SMTP id j22so1678659lfm.2 for ; Wed, 12 Aug 2020 11:18:40 -0700 (PDT) X-Received: by 2002:a19:408d:: with SMTP id n135mr315813lfa.192.1597256320205; Wed, 12 Aug 2020 11:18:40 -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> In-Reply-To: <52483.1597190733@warthog.procyon.org.uk> From: Linus Torvalds Date: Wed, 12 Aug 2020 11:18:23 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: file metadata via fs API (was: [GIT PULL] Filesystem Information) To: David Howells Cc: 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 Tue, Aug 11, 2020 at 5:05 PM David Howells wrote: > > Well, the start of it was my proposal of an fsinfo() system call. Ugh. Ok, it's that thing. This all seems *WAY* over-designed - both your fsinfo and Miklos' version. What's wrong with fstatfs()? All the extra magic metadata seems to not really be anything people really care about. What people are actually asking for seems to be some unique mount ID, and we have 16 bytes of spare information in 'struct statfs64'. All the other fancy fsinfo stuff seems to be "just because", and like complete overdesign. Let's not add system calls just because we can. Linus