Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp558916pxa; Fri, 14 Aug 2020 11:15:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrBUUWgko7jC+oyw7SHwbygNNT/nSqmxCuReynkKOba24cDtlv/0FdLPulaA5QMUYHeXob X-Received: by 2002:a17:906:c18d:: with SMTP id g13mr3531015ejz.239.1597428957503; Fri, 14 Aug 2020 11:15:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597428957; cv=none; d=google.com; s=arc-20160816; b=WgU8RYfTNpJFYS5xEw0WXD5xoHG46Dq22BEZo5QZz4tPVmC4ZyjC7DGSiNw59oxhHd m64KMBj028uCpbTBEskMKv3vFOwVmwyJsIBhu+NFrSLESRIAitoSSiKTUR5iryXJdJNK jfiFsMNaFF5CL/Ej6+12yeK9tSNmVyOwK9T9oWs0QqVDWtVRDCfsEUR4tklWr86hZ23L /BgGK2iwISBnoP4/YmrGZ69sQ6UawOSS1cIZGj9RJaZeFLhLR+9n4mSKLjppTsvLehpi +psCq/ukmABjnS9omX0X2LP9cJJIw+wGjWdIRV1sbGB8amWhWHtzPtEUBl5sH3zjTfp8 A0pA== 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=qYuJ9NHHO+qnoSaHW0PlHI0fiXCW7zDlZFu/ah5uFho=; b=sqon3YnP11juBZIAT3CvEmifS3jILAs7d+spjVl5NoIoYrXYcxY9wuuOdQBykNVJFu fiWjbk2SQTE952vamRUdROElY3ZLXLRltbJuCjpfm75l/4arl3FNC69LLjmROvDwXSSp jZzSpB54KWEJX8kPTgcSrKNBXW/hbynK/PqpT5ZdPyBlZBI4XI9a7KIFLv6YduqvNAS0 ksCA/el7GkLEuSRcTYCWiGHgpvfDjwTzee0MYDC7NOEq37qrgoGuOvPUilZaVf5e/kjF 0113PWsvtq/2UF1oBrhGJmkq0uorzkBoymYz9XgpuHxffnw6kZmE1Nm02TJu1UnGeWDo 0RAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=QZC+eNnn; 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 q18si6075267ejz.135.2020.08.14.11.15.34; Fri, 14 Aug 2020 11:15:57 -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=QZC+eNnn; 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 S1726772AbgHNRFc (ORCPT + 99 others); Fri, 14 Aug 2020 13:05:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726270AbgHNRFa (ORCPT ); Fri, 14 Aug 2020 13:05:30 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E10C3C061385 for ; Fri, 14 Aug 2020 10:05:29 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id t6so10643915ljk.9 for ; Fri, 14 Aug 2020 10:05:29 -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=qYuJ9NHHO+qnoSaHW0PlHI0fiXCW7zDlZFu/ah5uFho=; b=QZC+eNnnLcPaczh2E7Iym7nx2PQpiiDURT50bzxJZUsdtO86YlDCUBTiiWPJAXsWnA U49+U2ao8O1Ymle/LvRAFOmnKYrXWnRy0koTc1q4uPH3YiU1H0Bu0Wp5Fx58rMDOEorn lZP3mAReqkIBPzLDybNfptRtvd5sif7WdrmnA= 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=qYuJ9NHHO+qnoSaHW0PlHI0fiXCW7zDlZFu/ah5uFho=; b=SuiH43T1E7DHvuStNyCypHb3TZpdbXwcjW+QUOXEoP77/clQnQv1hdJwxr61fyBJP8 xZdc6ndo/VA28IRF7frBUBeS7VyFS9SUP2i32B64317N+Kpb2/GfCICHLFqXgQO+dc2U LrZYeRj47JRl3tQEsiNHTemk1xPMimnr7Snx/w8k4O4zvSYQutZRdMYsspp7ymTWu0eR gcgyENZSNrDEfsu8a90p12hvT7azd2PeyLQ4WZ+6iDVzrY7+IkxMsUlKAAabbE0YkVK3 0LfUJnjgz1INmucC/MmNE4VzKFnNDYUKCQZ+aW2EMp1AWcbhMa10qC0xBx7MsSpCAOfb 1J8g== X-Gm-Message-State: AOAM531MsoFbpN5Ecx0QIQwnkwc0QJe3fW8pRhZS+yvaBu+cGaio+bBh wFWUojUZkdV5IG4oUHeME4f26a3gkCHCwg== X-Received: by 2002:a2e:5c5:: with SMTP id 188mr1639387ljf.466.1597424727926; Fri, 14 Aug 2020 10:05:27 -0700 (PDT) Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com. [209.85.208.169]) by smtp.gmail.com with ESMTPSA id t20sm1869189ljd.12.2020.08.14.10.05.26 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 Aug 2020 10:05:26 -0700 (PDT) Received: by mail-lj1-f169.google.com with SMTP id v9so10684180ljk.6 for ; Fri, 14 Aug 2020 10:05:26 -0700 (PDT) X-Received: by 2002:a2e:9a11:: with SMTP id o17mr1629608lji.314.1597424726058; Fri, 14 Aug 2020 10:05:26 -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> <679456f1-5867-4017-b1d6-95197d2fa81b@auristor.com> In-Reply-To: <679456f1-5867-4017-b1d6-95197d2fa81b@auristor.com> From: Linus Torvalds Date: Fri, 14 Aug 2020 10:05:09 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: file metadata via fs API (was: [GIT PULL] Filesystem Information) To: Jeffrey E Altman 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 Wed, Aug 12, 2020 at 8:53 PM Jeffrey E Altman wrote: > > For the AFS community, fsinfo offers a method of exposing some server > and volume properties that are obtained via "path ioctls" in OpenAFS and > AuriStorFS. Some example of properties that might be exposed include > answers to questions such as: Note that several of the questions you ask aren't necessarily mount-related at all. Doing it by mount ends up being completely the wrong thing. For example, at a minimum, these guys may well be per-directory (or even possibly per-file): > * where is a mounted volume hosted? which fileservers, named by uuid > * what is the block size? 1K, 4K, ... > * are directories just-send-8, case-sensitive, case-preserving, or > case-insensitive? > * if not just-send-8, what character set is used? > * if Unicode, what normalization rules? etc. > * what volume security policy (authn, integ, priv) is assigned, if any? > * what is the replication policy, if any? > * what is the volume encryption policy, if any? and trying to solve this with some kind of "mount info" is pure garbage. Honestly, I really think you may want an extended [f]statfs(), not some mount tracking. Linus