Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5893739iob; Tue, 10 May 2022 06:13:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7IpmXS/+5YhwX3/H5oDFDUlSd7gyh4CSZ8zbLUvJDAYK9YfzL/ceuVJaDobX5MiK/8NwP X-Received: by 2002:a17:902:da91:b0:15e:d22f:cfd7 with SMTP id j17-20020a170902da9100b0015ed22fcfd7mr21156597plx.85.1652188380723; Tue, 10 May 2022 06:13:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652188380; cv=none; d=google.com; s=arc-20160816; b=rV1/4tHXFhp2ABIV3CSKAcE1ZkQ5v9nvBCVcJSUWHnfoVYp4nNonVhMD1PVsxbpgNH Yk8dCXtHfMUf9r5qBjrMjDV6npJLEILHCri6SFLGGZVlngGV0G+LZ3fzUgwwqc2YlFeM fEzE7YkEFH0rlZy4lOqUCwEwX00uU4lu0EmEcTMyKOEhPy8WJpHhUD0vwlZvlZ5P/1Y1 sxO9KVQ8RxcE2XPhW1ZpWADbvpNagyT7KQLEYPEW5Cm2AHeduEPka69M8N2xq7slG/Lf 7Oa9P94DHvucwX7S0T3YUy+20LWGxxYNtuEfGPWqoPaafhwpC6Ll8ltUjFc5BuaOgxIt WuPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=OHedlp3XgvvvmR96eUT2A7KFNCgoAcFZOekYnqMAIR0=; b=XmaiQFSm3DgYMwGac0eIXXI29WOc4eqxDcKCwrqhmZXzRuI9FYnR1nNRozlYb1Ddua HTiHSFg4B7Li3TbgBszih/8//0mWH8I9PRyJjbRIDUNR1seAqNomx8Uy9KOR8CwWbDuf J0znuc8xwzKGydROYnpUuQSPxPy0JeXXT4LNHMP06340cXdiDNHbygR1LyaHYPxt8jo4 74u73UNSVu1mEPmZzs2+wVTHfNpRJaUKzjgxBVJAUInrvsOCuVhpxmbW10FjBgpdeY5C 2vSGlr7GKVYdIkCNsReUKE5pbk7S6WVXBEQZrfe7vagIzVB0Ebwgd8EMU3TfTWo0GAEL ymmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Vj37IWHp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h11-20020a63574b000000b003bc32360914si18243084pgm.373.2022.05.10.06.12.45; Tue, 10 May 2022 06:13:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Vj37IWHp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234453AbiEJMtx (ORCPT + 99 others); Tue, 10 May 2022 08:49:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241975AbiEJMtu (ORCPT ); Tue, 10 May 2022 08:49:50 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 06FD037038 for ; Tue, 10 May 2022 05:45:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652186751; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=OHedlp3XgvvvmR96eUT2A7KFNCgoAcFZOekYnqMAIR0=; b=Vj37IWHpUEYDZsyCzSotWTOW0CDgyHEozOnulXROhU+MqzDZOBGi4/dzEP7f4MY5LTyr+0 bthywaRoN8bZIlXEhMGWKGRpv0ZLnGgA445IA//jFFPXdamNJp8NAhe9hUqzjiyKi3c44D WTjoJqxs9vXwJtxgHsv5tYjR/ZL41iQ= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-556-p3o-IMlRPjOSxJC9pFCAqQ-1; Tue, 10 May 2022 08:45:45 -0400 X-MC-Unique: p3o-IMlRPjOSxJC9pFCAqQ-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 82FF38002BF; Tue, 10 May 2022 12:45:44 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.39.192.113]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E3BCC43F70C; Tue, 10 May 2022 12:45:40 +0000 (UTC) From: Florian Weimer To: Dave Chinner Cc: Christian Brauner , Miklos Szeredi , linux-fsdevel@vger.kernel.org, Theodore Ts'o , Karel Zak , Greg KH , linux-kernel@vger.kernel.org, Linux API , linux-man , LSM , Ian Kent , David Howells , Linus Torvalds , Al Viro , Christian Brauner , Amir Goldstein , James Bottomley Subject: Re: [RFC PATCH] getting misc stats/attributes via xattr API References: <20220509124815.vb7d2xj5idhb2wq6@wittgenstein> <20220510005533.GA2306852@dread.disaster.area> Date: Tue, 10 May 2022 14:45:39 +0200 In-Reply-To: <20220510005533.GA2306852@dread.disaster.area> (Dave Chinner's message of "Tue, 10 May 2022 10:55:33 +1000") Message-ID: <87bkw5d098.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Dave Chinner: > IOWs, what Linux really needs is a listxattr2() syscall that works > the same way that getdents/XFS_IOC_ATTRLIST_BY_HANDLE work. With the > list function returning value sizes and being able to iterate > effectively, every problem that listxattr() causes goes away. getdents has issues of its own because it's unspecified what happens if the list of entries is modified during iteration. Few file systems add another tree just to guarantee stable iteration. Maybe that's different for xattrs because they are supposed to be small and can just be snapshotted with a full copy? Thanks, Florian