Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp135124rwd; Wed, 31 May 2023 20:30:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6OS7K0LQLcS9QG02aiOlmGdIOw5i4mf/hs/ADZ0kHbIrieipQTOc+VO9SRr71GzCSDHXcY X-Received: by 2002:a05:6808:2219:b0:398:5d75:c0ac with SMTP id bd25-20020a056808221900b003985d75c0acmr6846364oib.14.1685590241987; Wed, 31 May 2023 20:30:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685590241; cv=none; d=google.com; s=arc-20160816; b=wQ/iOpchWru1MyS6GVWsjWzrxE1pvbniQ1xvfAlqdXDAKS+xgCthDNsk684k9AyltO A5MGv3lgohbCvUTRS80HMF8PehfeknBr6S61jdNGfbnkmd8LnDJMV2CTKTjSAke4TI5R RFL3agLGcMZKJ3xin3k6Utl+B5GBFU26aMEi3pls+x+qitYoMM6VqgzjGIJJaVAAMQU8 hSQbBEPxKI5prJWletrqnEeOhNwRr0POqmCjtf89vvouOyTaM+WZ/5RPNEKdDWSxTCQP bwBzt5Ex7LuNoIqa28zo84DpTysZDu7H2RTVDAQY2B7f0GdUwELN1fXy3MHbQVIX9HAg dczg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Fb1+L/KOtNhe5ONTPDenDlasvpYlul8w4Y9ps0WJHoI=; b=PO7YXUCvTSy9WF6ZhY56xCb+t/7blrBAC0h0Ue6Z27VGquSajN4Z7SC5eMw+L17qQ0 APYsyQTDpCaU6wrncJLLEJPuof3xgeWaRAxzI+Ebr1QImh2BbwxccFUQxvt6UoTFZeDh Sejvs3IGEncmAPPmbKm7+9RQbnmwfYj3eaF+lcRVJYhPutrfXrt5exiI1ZczEFSxaQ95 1pCWpV3Qz14qD1sMJT/Su8X37SY5v5E/gjLSylQZov9Aq4l5wZnBIESKjmYt6839ZdtC dVhqmDEhA5YsLBfPVQ8TKZubS/5+GxwgswseNn1S77LH/e1fFXzqkoPRsOh9quN3aBLp JrAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BzmOiuM4; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a8-20020a170902b58800b001a69d1be184si1897528pls.506.2023.05.31.20.30.30; Wed, 31 May 2023 20:30:41 -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=@kernel.org header.s=k20201202 header.b=BzmOiuM4; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229612AbjFADRX (ORCPT + 99 others); Wed, 31 May 2023 23:17:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbjFADRL (ORCPT ); Wed, 31 May 2023 23:17:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DFF8136 for ; Wed, 31 May 2023 20:17:02 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A6633640CD for ; Thu, 1 Jun 2023 03:17:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7C63C433D2; Thu, 1 Jun 2023 03:17:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685589421; bh=XvJPQ0XHSvZ7dSl5mVdAuoo5pLb3aJ1TYEwAlwW3WKo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BzmOiuM4sreAVnlRxGo5JdeBu5cNJ0fH4DwQquEL3P5EwrPyuc4sKspHzWZsVlMNz 20HDBLLr8iGVVxAwICCmrS0FpgIfq2mgLzAWErForkcDEFf7cW1udSlHDglRAoOKBS BeRlpU3bL+gYwgRMBZex9aPrkdWzvJkbAy3DPXTOYITesDlyXaGtiZX9ap5ZqsI+OZ XJQR0ptuiOH50QaobLo096PO5FHvQCMgnSbQcHk1ALytx5hucKUSPCwTTEcTGt7jKe QvWz5uom4ozXauycokNXLP2rq+8T5K0ABNH1QbjRbMzT9CSvn4Fp/lOyK6oafSjCg0 b6Zy78SwHVQgA== Date: Wed, 31 May 2023 20:16:58 -0700 From: Eric Biggers To: Sheng Yong Cc: jaegeuk@kernel.org, chao@kernel.org, linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Subject: Re: [f2fs-dev] [PATCH] f2fs: add f2fs_ioc_[get|set]_extra_attr Message-ID: <20230601031658.GA728@quark.localdomain> References: <20230529013502.2230810-1-shengyong@oppo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230529013502.2230810-1-shengyong@oppo.com> X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Mon, May 29, 2023 at 09:35:00AM +0800, Sheng Yong via Linux-f2fs-devel wrote: > This patch introduces two ioctls: > * f2fs_ioc_get_extra_attr > * f2fs_ioc_set_extra_attr > to get or modify values in extra attribute area. > > The argument of these two ioctls is `struct f2fs_extra_attr', which has > three members: > * field: indicates which field in extra attribute area is handled > * attr: value or userspace pointer > * attr_size: size of `attr' > > The `field' member could help extend functionality of these two ioctls > without modify or add new interfaces, if more fields are added into > extra attributes ares in the feture. > > Signed-off-by: Sheng Yong Aren't there enough things called extra or extended attributes already? Besides the standard "extended attributes" retrievable with the getxattr() system call, there is already the FS_IOC_FSGETXATTR ioctl too. - Eric