Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6241789iob; Tue, 10 May 2022 13:44:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9O7x115hXs1Jn1eoRcaZkLWYrT4XWurOvEhJ6bmKaBoIgBQW9iiTGo9nyZUCG82kdEq4l X-Received: by 2002:a17:906:60c2:b0:6e7:681e:b4b7 with SMTP id f2-20020a17090660c200b006e7681eb4b7mr21730723ejk.130.1652215479908; Tue, 10 May 2022 13:44:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652215479; cv=none; d=google.com; s=arc-20160816; b=bapAIeg5woDQarlhQAWs5HHwOKjXDLGY4F+UhBsZ18Cky2sXpJoe+OXTKxuOQ1q8UE O9pdL/BQrGI4GpUGLp7DaT2cMKQUquAVwi2wOXXlPWqtHA0GAgTtXynCaoEimcZSAApk FWD3M3AUVK+P0wHSd+rYa+rOb19UeRCGUjUZeA08mYNA80QmR+v9yr4TUumnz5maajRK mYHHvh+SgwUFoSq8hAo3p+nrv9485oD70/tGTALrZkPf8PnBELxuQXa5rAxgc39yKPWe mbWObZq4zFPhF8+SyE3Z2h5UIGGQf8HR/qA6uQCZinWmUc4KvEO9TbHTvA9wo38x+19l 0aPA== 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=q0kIV1SwXQMNPqOufG4oNCm/OKmJd8Pq9VuUM/8qF2c=; b=LwVV55do7LRJDmwDYZGRNEOKPLEnDXqcTunXujDyINh7gvPk49nOje+4UKumG4uSrS X5pjextmDDzePet9jgZSxZ1RyJ+Qi2vLjJ4vT4xU2c7ZQgiTOulA1s6npnnf2wKRhHV1 uTixZhfv6Tq/S3InON9kfsENK3NouJefIQHq6rhcCrl8PfPk/d1yG7JU2r8oJIlVA4Oh duLnXRROW7eO3PSoOzvcnIpqKWhyJXvK4M36eO3vf/ZgMN0oO+hUZztNl3XEQQkgyVkr Wdm0y1dg6WwBnNNgRoR61xU/FZPSKiBIet+7wuyiknQZOm6oTBa7cs7Xz0OzV3QD5Spi APKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=iH3GtIL3; 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 c69-20020a509fcb000000b0041d81347011si213105edf.382.2022.05.10.13.44.16; Tue, 10 May 2022 13:44:39 -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=iH3GtIL3; 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 S1345473AbiEJPK0 (ORCPT + 99 others); Tue, 10 May 2022 11:10:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345593AbiEJPKE (ORCPT ); Tue, 10 May 2022 11:10:04 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A83C663FF for ; Tue, 10 May 2022 07:41:49 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id d6so20282411ede.8 for ; Tue, 10 May 2022 07:41:48 -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=q0kIV1SwXQMNPqOufG4oNCm/OKmJd8Pq9VuUM/8qF2c=; b=iH3GtIL3/HqFhI5vcBNrLNm4DRccYURKHIqy8W7HZ/otX11R9Ov4rZTaAVltaR0Mva 80FE8kcPQSs8h8JSbjpouDxLkQTv+hMaf/4Y2m1lh8xn4wzs5s4/MBy4c2DwoScw3e+o E+MdKVSqLPJ9pFE7K2Y3sfcRJNwtl4QfNG+Pw= 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=q0kIV1SwXQMNPqOufG4oNCm/OKmJd8Pq9VuUM/8qF2c=; b=6tpH4lVR8LsI69UO8LB/k4+wD6GJcM3g5SpRTwpnCH6//kvqIQ3qMHQYhw85AFnm5i JwF4XcOGTr68kfAhIT88p3qfiVP6E5Y6TvFpE3EuCnxiPRPxBJGo7WumlVIA5GTvuDSd /njzIyUqucinBcOgJ4dQUJAoXMXuQK9UGv8C9lzQ/i8kXpmFEQh5Xcfk2Jlc8Z/LQ7to JBKDxm1vtM2iqH1YTbAUOmMdKFl8TQZLWVfWIVhv8R/1DApCesemU5Im6+qxT05kEHai vwjfDh2TgJS1O8MAG2Egr98bArAelybLTPHBBaux82Bf5r/n3QHYky3RwkONel0M7T5Y +T8g== X-Gm-Message-State: AOAM530yuO6rGVzeUrpPe3eMBvpbGoNOynCHPHovaKqXzX5Jz1RNPPcZ PGl0KmOO+4Jct0/dFXjoUkBfLmTLPKoyrt6NLHsvuA== X-Received: by 2002:a05:6402:5ca:b0:423:f330:f574 with SMTP id n10-20020a05640205ca00b00423f330f574mr23198373edx.116.1652193707637; Tue, 10 May 2022 07:41:47 -0700 (PDT) MIME-Version: 1.0 References: <20220509124815.vb7d2xj5idhb2wq6@wittgenstein> <20220510115316.acr6gl5ayqszada6@wittgenstein> <20220510141932.lth3bryefbl6ykny@wittgenstein> In-Reply-To: <20220510141932.lth3bryefbl6ykny@wittgenstein> From: Miklos Szeredi Date: Tue, 10 May 2022 16:41:35 +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 16:19, Christian Brauner wrote: > Fwiw, turning this around: unifying semantically distinct interfaces > because of syntactical similarities is bad. Moving them into a > syntactically equivalent system call that expresses the difference in > semantics in its name is good. You are ignoring the arguments against fragmentation. You are also ignoring the fact that semantically the current xattr interface is already fragmented. Grep for "strncmp(name, XATTR_" in fs/xattr.c. We don't have getsecurityxattr(), getuserxattr(), gettrustedxattr() and getsystemxattr(). It would be crazy. Adding getfsxattr() would be equally crazy. getxattr() pretty much describes the semantics of all of these things. Thanks, Miklos