Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4700721imm; Mon, 30 Jul 2018 21:17:46 -0700 (PDT) X-Google-Smtp-Source: AAOMgpexZvI0AhQUTNs25Z2bDNvxACiaChW1iZ7kCA7LQpEvIHLrQzs7rRi3fzNbMaFKU//dlA+q X-Received: by 2002:a63:1403:: with SMTP id u3-v6mr18774530pgl.13.1533010666009; Mon, 30 Jul 2018 21:17:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533010665; cv=none; d=google.com; s=arc-20160816; b=kGLSpgKqkOE2BQ+Spo+vnmPizWk/sIeu46IQVjJMi0ktQqhfD0PUk0T9ALctZ2k0d8 3Vk7Und0XSko3b+27IaxbuZL9sRmSckUXKRxGDcXDyzOsDMsYY7WhjDhuncV4yP3Wdbz zHP5/1OKekA8Lj1qQL0tAzmuOlS6eV8//31hayUmB+ZfG/MCBtvZY/RjPYdoOejKkOOg BOhapFAGXxHDl15GhaCyu8XZGUBsPJHpxyZb2x1tVyNUTlrjX93MaNetHMyjJkeLOBib xd2NLjcES1QbFc/5dUKwuMNAd3ux0vfKjSa+l58MCTYkv/zhyZ/YjCRHmTgYXDV7uDu/ rc6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=PJ+zdi3fu9meHJ3MZvddahp+IZnq7IhdD39waOXhsOw=; b=wNAIz1Bk0158L7ylgvkOZ3oi8C5W0S9t9sodDprPbLbEHCR0zX6/mg5FcW4ZO9Lw87 BP6BXoSrc44dVpoJePwxVG3yt51d29zKvRBXluK3JeIEW1wpfrgkcKkpXLIK3hBOjDna QONnBcpJWA60X8zvMD03tOokqrtqi+nrrMMjGWlIyumRgig6KXneZr4kamxEpmozbf5N QxFmpupyHia92pMAODtUEcvGAfdwmfvKe2BLnhz5fyPgefC882ELblVzUxPY1CZ3ogQe rY/A2OsXMQBU/+s9JKkLjAxgYXGd9E5aCX7pk/uWS9+iFle0JJHMs5h08+Lv/uXrcUbp tkAA== ARC-Authentication-Results: i=1; mx.google.com; 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 u186-v6si11898698pgd.578.2018.07.30.21.17.31; Mon, 30 Jul 2018 21:17:45 -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; 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 S1727397AbeGaFzA (ORCPT + 99 others); Tue, 31 Jul 2018 01:55:00 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:60806 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726071AbeGaFzA (ORCPT ); Tue, 31 Jul 2018 01:55:00 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.87 #1 (Red Hat Linux)) id 1fkM5S-00015w-Ou; Tue, 31 Jul 2018 04:16:42 +0000 Date: Tue, 31 Jul 2018 05:16:42 +0100 From: Al Viro To: David Howells Cc: linux-api@vger.kernel.org, torvalds@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 34/38] vfs: syscall: Add fsinfo() to query filesystem information [ver #10] Message-ID: <20180731041642.GH30522@ZenIV.linux.org.uk> References: <153271267980.9458.7640156373438016898.stgit@warthog.procyon.org.uk> <153271291017.9458.7827028432894772673.stgit@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <153271291017.9458.7827028432894772673.stgit@warthog.procyon.org.uk> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 27, 2018 at 06:35:10PM +0100, David Howells wrote: > params->request indicates the attribute/attributes to be queried. This can > be one of: > > fsinfo_attr_statfs - statfs-style info > fsinfo_attr_fsinfo - Information about fsinfo() > fsinfo_attr_ids - Filesystem IDs > fsinfo_attr_limits - Filesystem limits > fsinfo_attr_supports - What's supported in statx(), IOC flags > fsinfo_attr_capabilities - Filesystem capabilities > fsinfo_attr_timestamp_info - Inode timestamp info > fsinfo_attr_volume_id - Volume ID (string) > fsinfo_attr_volume_uuid - Volume UUID > fsinfo_attr_volume_name - Volume name (string) > fsinfo_attr_cell_name - Cell name (string) > fsinfo_attr_domain_name - Domain name (string) > fsinfo_attr_realm_name - Realm name (string) > fsinfo_attr_server_name - Name of the Nth server (string) > fsinfo_attr_server_address - Mth address of the Nth server > fsinfo_attr_parameter - Nth mount parameter (string) > fsinfo_attr_source - Nth mount source name (string) > fsinfo_attr_name_encoding - Filename encoding (string) > fsinfo_attr_name_codepage - Filename codepage (string) > fsinfo_attr_io_size - I/O size hints Umm... What's so special about cell/volume/domain/realm? And what do we do when a random filesystem gets added - should its parameters go into catch-all pile (attr_parameter), or should they get classes of their own? For Cthulhu sake, who's going to maintain that enum in face of random out-of-tree filesystems, each wanting a class or two its own? We'd tried that with device numbers; ask hpa how well has that worked and how much did he love the whole experience...