Message ID | 20230803135955.230449-11-aleksandr.mikhalitsyn@canonical.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp1193871vqx; Thu, 3 Aug 2023 07:39:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlGnxcybQs9zaAT566acbDRxcK40xVrBwPNKeB1q7waPbFP80rM1ar9rFg1yFJwCTht4WOva X-Received: by 2002:a05:6402:2048:b0:522:2c4f:199e with SMTP id bc8-20020a056402204800b005222c4f199emr7616699edb.34.1691073565505; Thu, 03 Aug 2023 07:39:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691073565; cv=none; d=google.com; s=arc-20160816; b=lE4FxgBRLGr1MolS727022P7uGEL6ggj2rfj77rCn+1S4yhqQVrfpFgIzF/Nmrwl4W 5+97EFcaG1Y+dbL+FDcc/qb68i2vCm1ogrx7utUv5Q3r0lZ7UlcxK0+6l7AdjjpUy8qX z+Gwkb2CfDz3SnF1Wk/0f4DZhEkgLRQSWKyObgQbtNMfrIXX4wJ3RdLAWdGFzjbTgtO8 x7S0QwIuRADv1r6pNOjYnzIPK5+O53zgwG1auRdF3O1CID2kbBvdkjaLEIaofF8yq/7O A2woDTR1n1zr4lKPjsQMUWeUM8opHCpcLiyipn1FHwaqAg4AfK72GdKRwCfZka6QVXlH VPxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ARhwDsiPa3Ci/G2xteJutduXCGuj42UUR3o8sfJhjpo=; fh=Z2mkFIQPI1atT1PXylFFs5aXkUtGzwkgwqJaEftWDsI=; b=W81HMUrmW2yxVmpPUQCgv5mXMbjQZuIcrEgiyYKrJ83e5ymlWbRnnBl5SPIy0ZS4Rt Ko0CCYBXjELMRr8KFUeXBiUYey44LsNz0XkxFx8g7wyuG7CBxEcjEyWtOGOOB+tXyLF3 6FWLhay+iLBJrgxV+j2DmB9adaEt2F8a2Aw13OnmfzMDjL0Z0q6gKg/NO2Rc/fHxB4Sp Io5yFp5B/6uH7mOH6aTXcLumn8oPRB3y1uWCDu8LoHyv+bVJ3QkvuZdWqggCIv7+Kk/K XmyLLm+SxpeGvHLBTT7coT7nb0FpS00Qc/p6qBVNFYRyz6HhN3DZHLcvZEE3zcX34Fdr +ZZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=YPaEm74U; 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=canonical.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r16-20020aa7d590000000b005223f4f74a8si8028948edq.398.2023.08.03.07.38.59; Thu, 03 Aug 2023 07:39:25 -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=@canonical.com header.s=20210705 header.b=YPaEm74U; 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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236580AbjHCOCH (ORCPT <rfc822;guoshuai5156@gmail.com> + 99 others); Thu, 3 Aug 2023 10:02:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234858AbjHCOBX (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 3 Aug 2023 10:01:23 -0400 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D4AA3AA3 for <linux-kernel@vger.kernel.org>; Thu, 3 Aug 2023 07:00:47 -0700 (PDT) Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 5EFBC417A3 for <linux-kernel@vger.kernel.org>; Thu, 3 Aug 2023 14:00:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1691071237; bh=ARhwDsiPa3Ci/G2xteJutduXCGuj42UUR3o8sfJhjpo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=YPaEm74UBhZ4IswqsnXdrKtiZbfGJIDdznc2z5O/+/Hw7R9h1SUf8zDpa5fl/i7uQ hhO8ROyTwnrq4du4AkmmqVw1ChicBQ6AURI2Q0yJnh689LIN7YRTzsEj8ia9wTU7Xh AcqXQo4YPLWw54oqezQUVi7CaQMnfJg72CyH+BnA2u2sOssyESlTMcO1RgaP4NR0mK HLSW3j/eho+ucQ+bhpfiJ348Bsj+WZjimmD+REjsTgz8ZnK3o4NSVP0br3BEDDroqw cs8LKK9cKSfzc/pjXjYTqmVhwcZbXeUUyiaJHw6SHsJIn2xAVC0ywkhuMwcRuE1ibj L4U0/SeC+FQow== Received: by mail-ed1-f71.google.com with SMTP id 4fb4d7f45d1cf-51a5296eb8eso788422a12.2 for <linux-kernel@vger.kernel.org>; Thu, 03 Aug 2023 07:00:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691071236; x=1691676036; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ARhwDsiPa3Ci/G2xteJutduXCGuj42UUR3o8sfJhjpo=; b=fTWYIOd0HHgHiSBNHmuoqJUGjIAFtYoDUUQKGvlovUwE9lNHtUGjicMESgbzKo8BCU xM884s/BgTrCj7tfkjmGuFZmhfrCRWorqXwou/r5D5DKL2/NYn0bZwoZEti2Qbmf8U0p DoIXWJKB7vJJ9TfvvVhYxPWUzdO9kvHkzMePnIXoq4c9FnTf2isIgTMPaafKAUxzRvLl 8ANoRnvFbS+F0xZTefd0i/a54780Xs+rjCXVddPJgkeJCLQg3hjokBxgKNIJ5SNggLhu P9wlz2DiXpgDuSDujXjU4kf2hnULDaqbq27rK/Fhlo6Ow3hbUSJ68qtAz+xmKCmRbBBu CwmQ== X-Gm-Message-State: ABy/qLaupMBuYj4QUv550gK51xtDfRRIyim7dUAoAAUg78xp8eNaxgg5 Ql1uowhCMozKy0Ob2ttXvDdhRlq+pDSxK9EAJr5Exq0zlxmS9Qy4EmX65J3BoJ7qUckZmlBIPDu wqyaQTfsu6MtUr8bhdqfImBEk+NBJ+yLPODP79/CT7g== X-Received: by 2002:a05:6402:3d8:b0:522:3a0d:38c2 with SMTP id t24-20020a05640203d800b005223a0d38c2mr7901997edw.9.1691071235957; Thu, 03 Aug 2023 07:00:35 -0700 (PDT) X-Received: by 2002:a05:6402:3d8:b0:522:3a0d:38c2 with SMTP id t24-20020a05640203d800b005223a0d38c2mr7901988edw.9.1691071235823; Thu, 03 Aug 2023 07:00:35 -0700 (PDT) Received: from amikhalitsyn.local (dslb-088-066-182-192.088.066.pools.vodafone-ip.de. [88.66.182.192]) by smtp.gmail.com with ESMTPSA id bc21-20020a056402205500b0052229882fb0sm10114822edb.71.2023.08.03.07.00.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Aug 2023 07:00:35 -0700 (PDT) From: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com> To: xiubli@redhat.com Cc: brauner@kernel.org, stgraber@ubuntu.com, linux-fsdevel@vger.kernel.org, Jeff Layton <jlayton@kernel.org>, Ilya Dryomov <idryomov@gmail.com>, ceph-devel@vger.kernel.org, Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>, linux-kernel@vger.kernel.org Subject: [PATCH v8 10/12] ceph/acl: allow idmapped set_acl inode op Date: Thu, 3 Aug 2023 15:59:53 +0200 Message-Id: <20230803135955.230449-11-aleksandr.mikhalitsyn@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230803135955.230449-1-aleksandr.mikhalitsyn@canonical.com> References: <20230803135955.230449-1-aleksandr.mikhalitsyn@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773219154961543821 X-GMAIL-MSGID: 1773219154961543821 |
Series |
ceph: support idmapped mounts
|
|
Commit Message
Aleksandr Mikhalitsyn
Aug. 3, 2023, 1:59 p.m. UTC
From: Christian Brauner <brauner@kernel.org> Enable ceph_set_acl() to handle idmapped mounts. This is just a matter of passing down the mount's idmapping. Cc: Xiubo Li <xiubli@redhat.com> Cc: Jeff Layton <jlayton@kernel.org> Cc: Ilya Dryomov <idryomov@gmail.com> Cc: ceph-devel@vger.kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com> --- fs/ceph/acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ceph/acl.c b/fs/ceph/acl.c index 89280c168acb..ffc6a1c02388 100644 --- a/fs/ceph/acl.c +++ b/fs/ceph/acl.c @@ -107,7 +107,7 @@ int ceph_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, case ACL_TYPE_ACCESS: name = XATTR_NAME_POSIX_ACL_ACCESS; if (acl) { - ret = posix_acl_update_mode(&nop_mnt_idmap, inode, + ret = posix_acl_update_mode(idmap, inode, &new_mode, &acl); if (ret) goto out;