From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7FBDEC433E0 for ; Wed, 12 Aug 2020 18:18:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5B03C2080C for ; Wed, 12 Aug 2020 18:18:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597256326; bh=Xob0b9wfX/1/4X19lJ4MoqCGbw4npN7y22G8fVD+GbM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:List-ID:From; b=k7MaWnLTXzJTXk9z+4+1Jo2Wh7ZT0IWnmkFNcIB4Di5eyb2d/ILQwefej+YUA0LUG VeBLLaIM6dHvezEtecwioHwVlhSUy7vP2Npd9jq3CJxRF9iVzHnwmSUwWtCcK6SrIj ZpbutUp1ibDNrCCHFehNl5/nswqo4dJLQ/4pHf2A= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726547AbgHLSSq (ORCPT ); Wed, 12 Aug 2020 14:18:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726510AbgHLSSp (ORCPT ); Wed, 12 Aug 2020 14:18:45 -0400 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBAABC061383 for ; Wed, 12 Aug 2020 11:18:44 -0700 (PDT) Received: by mail-lf1-x144.google.com with SMTP id s9so1675314lfs.4 for ; Wed, 12 Aug 2020 11:18:44 -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=nSBk65q7JjayAP2WykEz8Q1ID4Y4GexJoM77k1Dl8UEa8fV/n+AcmjZz2PCjA/h0l2 bqRb6Vp2pwynJOwMkbF/AkMziUKlHxb2RS+NQP61yk3nGMqzp8ShBCWBEV6TR85yxbFG xzifW0dvhH3K28/74rw2tMk4GHhpr6LVsSK00AZGtLQTw1PRLvCU/P6g/Jmd6c8EXEMa LVYtaBEnxrJ8SmKyJJ/BGT82FGCN9nwxGyrMgUKN80wcrokNX3zkExEDfCtEI5w/UjR6 RB4azdAxuYvLF3cvYH6t3HhNIYuT1qF7Mvv1U36DSm/7rfOsw8JPzvt7jbNYD3qtEQVZ BV8g== X-Gm-Message-State: AOAM533JSbaVRL3hv1nxoeb1zIWO3Dbakpl0Kp4CLZyzVP/UmEtYeCqO pLbuz4knBM5/NAhES836rXqWftXihwM= X-Google-Smtp-Source: ABdhPJybhohY7L8i82mN3TCG2ZIx8hW6Grid3cwoTptGx7kQ3iQoIbKRInTKSB78h6Zvp402ETwPVw== X-Received: by 2002:a19:cccc:: with SMTP id c195mr323260lfg.88.1597256322823; Wed, 12 Aug 2020 11:18:42 -0700 (PDT) Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com. [209.85.167.48]) by smtp.gmail.com with ESMTPSA id k23sm585354ljk.37.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:40 -0700 (PDT) Received: by mail-lf1-f48.google.com with SMTP id b30so1647542lfj.12 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-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@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