Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6189214iob; Tue, 10 May 2022 12:22:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/X/cY2t+SQQ4WE12gJchV/cwZMKNgzj+a3hKknKcgD1v2yLqdzuHNmbJPQ8piKOhQip0q X-Received: by 2002:a17:90b:70a:b0:1d8:5662:6de0 with SMTP id s10-20020a17090b070a00b001d856626de0mr1358671pjz.212.1652210565714; Tue, 10 May 2022 12:22:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652210565; cv=none; d=google.com; s=arc-20160816; b=G16YqEuxkgHVs5XtqfCgvgqbTU23rFXXUPNJOt/aG+A2OJ5esmxrZqzX2EW9kFFcCt W2bywnM4tN5qsBcWquYpgxc+spl1tg9QgwdAb4IhL/2mOuMcxMpb0SLgdxEh7gW8txag SDEkp/vnFf8nJSFk7cruOzZAWSgn6yjKeSqPjz3fo9U1bxjCgBqbAsd3KYhmORwgzwZS VvQTObMrhsRoXvWZlarZuPHrLFBiZKf89J/QOIxmW2GwCZoAgPWhkmYqT9gOq8XnHYLk JNs2MsziXweAUten5HIHiA2ES0nlMRYNLQ2Sfv6/FvDgJAdt3n0qJojts7o7jjrhsQRw 8lpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=TDgGs9CgwXyWbub9AhjowkEjkVJeBjS3w2UHtPu470w=; b=lV5KwZP6q8lUjHJUBvaz/lYfXcWmrK32znJHySdXNKRtLugEMg1wONnemaqmpfnXOk ae7M5WYc1Vnp2RwNAGlOEfU4qwaQnyVa7puqkyDMgddhlq5ei42TWIkUq5irQxBoJELi E4nXQHasY4TUMXKcX0pinMVOj/bfxZjDdP9iceH8sA0ZFEnmVjZgwBzc2nXiz7i1VUBY iFVcYSYfzh2hQxCfyT+O355VxOZXqI6RAAijdvuNw5D2TEN/fSgi4O19iAMlibgpg+Xd plIDEmzs+Iur6RR/WW0SaLkBZIJidX2+mwyfWUeWH9+RODq0RI/72rSeAbSJ1fSQAScP ygrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=BWf3C8d4; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b7-20020a170902d50700b0015d168a0c7fsi5047443plg.94.2022.05.10.12.22.29; Tue, 10 May 2022 12:22:45 -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=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=BWf3C8d4; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345065AbiEJPzz (ORCPT + 99 others); Tue, 10 May 2022 11:55:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347211AbiEJPwF (ORCPT ); Tue, 10 May 2022 11:52:05 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB75227D01B for ; Tue, 10 May 2022 08:47:26 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id gh6so33885395ejb.0 for ; Tue, 10 May 2022 08:47:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TDgGs9CgwXyWbub9AhjowkEjkVJeBjS3w2UHtPu470w=; b=BWf3C8d4lnfR8oyZMmiSG29J+xMF4byi5shsnljwByLz3ZI+tA9YQmsP2wO3AXfCLN 2FwC+K5kV6TSxgVYPDqMHoowvhwbnvoTOQ40tdtYAFdfGW4iBRWmqdfMI9myYUzSRZju K90x6QomLH3PQ8C+QlMs9A5PkLTsIFFI8EnHU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TDgGs9CgwXyWbub9AhjowkEjkVJeBjS3w2UHtPu470w=; b=eImXkGAfY/DLB2WG9NSXMuimNRVfmQuTkcUeWfOYq/TnmFmE40r/E38ozgWRx9jT2j srFrtmE0qfHCojxOlAsoj/Y/od0JAtcYpU0GBz1KNR6BIFVnYQgngeUZVjKPZYS6XqYY nHua+6UYJdv16NFNKt2Geb1gvtSTLx/YB69iMtOScme3qT5FFHaasJkHjF25ZKREd71k 1RkaeeAYw+82fhMdT/cglcxnudEix6rc41onynwYq3wND2i0dzdWK4v65nGXMg3vFnUf kiltDSWVDWAzTmccNLvzu2a73Uz2M4sSUWKoU4m9KHN1GNnF8K+rHkUcNTf5ercTH1pc HnbQ== X-Gm-Message-State: AOAM5319rQAm/jo93XDaPFWW+QkJBOW9m51hGjsKxL0R9Rv+CZl+fI1t ZHFU7Td8QSPzCaxbe/2nCK2twZqzJ+2sWdJgKu+XHQ== X-Received: by 2002:a17:906:9749:b0:6f5:6cd:5bd9 with SMTP id o9-20020a170906974900b006f506cd5bd9mr20675818ejy.523.1652197645318; Tue, 10 May 2022 08:47:25 -0700 (PDT) MIME-Version: 1.0 References: <20220509124815.vb7d2xj5idhb2wq6@wittgenstein> <20220510115316.acr6gl5ayqszada6@wittgenstein> <20220510141932.lth3bryefbl6ykny@wittgenstein> <20220510153050.cgbt3wezbvf2jfnb@wittgenstein> In-Reply-To: <20220510153050.cgbt3wezbvf2jfnb@wittgenstein> From: Miklos Szeredi Date: Tue, 10 May 2022 17:47:13 +0200 Message-ID: Subject: Re: [RFC PATCH] getting misc stats/attributes via xattr API To: Christian Brauner Cc: linux-fsdevel@vger.kernel.org, Dave Chinner , "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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 On Tue, 10 May 2022 at 17:30, Christian Brauner wrote: > But now we're in the process of extending the *xattr() calls to operate > on mounts and filesystems so an additional getfsattr() (or another name) > is not fragmentation imho. And I definitely don't think this would > qualify as "crazy". In that spirit st_dev does not belong in struct stat, because that is the property of the block device, not the inode. But I feel we are going round in circles, lets please not get hung up on this issue. Linus will have the final word on which variant (if either) is going to go in. Thanks, Miklos