Message ID | 20230524153316.476973-12-aleksandr.mikhalitsyn@canonical.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp28508vqr; Wed, 24 May 2023 09:22:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5bVEOvycjYlW7EdkxYYTNIhZ7E+iWFtl7fAHD3dBY2laHua6VJpK2ZGBewPi8GYZ+mHG/K X-Received: by 2002:a05:6a00:c96:b0:643:98cb:ec1 with SMTP id a22-20020a056a000c9600b0064398cb0ec1mr4721524pfv.0.1684945320006; Wed, 24 May 2023 09:22:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684945319; cv=none; d=google.com; s=arc-20160816; b=CDvQcUL/bXiqIZHMqEfzPViwXwUh2aEsqsebQ2hT7HtVAMzN7JskQ91kaf4NTuYiHE +pz5XvEQMoqTBcyCgXMbRWXQVm1jcnv+df4TxzNgw4OwlzY9g+8SfGnGdlmJCzxEd/MK gOJoA6eTLulnC/5PtrmYq6yjLfUUjSQILO241PfRPaEjTusF3Q94wTyGUil6gHXJh/xe Oy2CGjKB1z0lM5zrSFi5JWp5IkTgxxGlnffcRN1DADE5A2DWip4Obl9Al5C3tP/GRulP uIPeltCq2S26WUJtwNdliKSDQiDhvzsRdRbiz6wEmDsYKWtmXgxFcknU6RGhQwQCB5jc 4wxw== 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=iDvGWD+26D2Z+S1TMox8zoqslkMySxbj4ujfm+xfm2I=; b=FIYSWhlKSQAESTkCsrWnNOcVZ32789fKvHmD3BUXCvFzKzfDKJ6qJ77eO7k2rZ0Boe e8pUjyHK4nXTMHF6qCEvAcjq/GBx3XIoTMP/ODN5f/5m5O3y6UsiMJsgVU9md7Fos74j 6o1kt/DkkQoj9GGZUuATJERQyD0NZwyorSgaOSbH12zsVgTXqccK5Iv0BbTzUChK/aJZ CC1FUjVfrISOK74XwAyjV9li3dinXUMAUAdVGlhX2ugBTD189wblSR49rjGNjmZMD8xp wK3s8Sw5UUtiAjaHD/Obt/l2wf3H6rpPQrQaqJ5vKh3SK/aZ6fv9ERqsx+2+04KevI+x Ot8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b="O2RnG/Nq"; 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 a20-20020a637054000000b0053872f6398fsi3824759pgn.472.2023.05.24.09.21.45; Wed, 24 May 2023 09:21:59 -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="O2RnG/Nq"; 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 S236614AbjEXPhV (ORCPT <rfc822;ahmedalshaiji.dev@gmail.com> + 99 others); Wed, 24 May 2023 11:37:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237227AbjEXPgn (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 24 May 2023 11:36:43 -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 B85FA10F8 for <linux-kernel@vger.kernel.org>; Wed, 24 May 2023 08:35:17 -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 1A73E41D5E for <linux-kernel@vger.kernel.org>; Wed, 24 May 2023 15:34:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1684942461; bh=iDvGWD+26D2Z+S1TMox8zoqslkMySxbj4ujfm+xfm2I=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=O2RnG/NqRTB/VKC6XnLngYd8oftmjIqd/4j10bZx2aHZ2ehKpGHKYnvSxUjElydvW iF8rf4b0z6Jl4ZBbZGR23FZpU95HW4+EBWipmQ+aEUTQQLoSAQrRx3ZrN1bl3xDaIu vuepfkjDUmf5Xlssly9pT+WwTVtbc1c0qrav3HxVTDx4Mak3zlcE3Osk/EYQpVxLnR Gq6g1rk4nLk9PYav5AKOQNUhaBVS4l/tmdtLX+x5/zIcOyHa8G18ZnNT0Hk2GwCl55 bL4e2S4Mwp5gJgPSgOYHIX8SvQL5kW9JueZsdlQnXFOLAASKn/7snk4u/i6o9Gs18+ dyHUn54TSRS0A== Received: by mail-ed1-f71.google.com with SMTP id 4fb4d7f45d1cf-51392d645d5so1411476a12.1 for <linux-kernel@vger.kernel.org>; Wed, 24 May 2023 08:34:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684942457; x=1687534457; 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=iDvGWD+26D2Z+S1TMox8zoqslkMySxbj4ujfm+xfm2I=; b=EzBccQ7EW7rh7e2rud+FzdR2W6eRSR/Jh1l4/9/vusc0sYcISGHV0Qv+uBpF3aKnlE gSKKpLzWQLzSxxVRtDPEIMVl5sTa3Q54xGMyHN+Ym0h67Arsm2yWlDtfRCgWpzqrl/Kx T/2pAKi/lNFpXSRxbpiAUQ/XOs2k8fiMBBIscckfXIJAfP7pfbw+KM90lsZmNHVjzBk2 fXy3qW2kHAISxUil9HoTYZibZMNYEGXUMXdbWGsqb5B9KzxVTRJe6S525uyAgvV9IQ93 v3E2ZjZy/9EDceiTFA6Hf0uPm+HiaPl4os+S8pzrvTbaQJM7JlZWUoNKZv0huSW3w7OI jMUg== X-Gm-Message-State: AC+VfDzMkLMq1hKGSVYpuktGVXVfolaHpR0bhNxeUJNlz5iw6whQ7V/W IuS96fpN7hDsAvqxW05tnq7pco7cwHIDvxp0jjSKntiL/XHeSYSizawVuFriO5PkzSlIWx30iKp JSN56iw1DYUbjUQsgqXeSGNOh+bIYdf/B/RAzR7Vbjg== X-Received: by 2002:a17:906:dac1:b0:966:471c:2565 with SMTP id xi1-20020a170906dac100b00966471c2565mr15855325ejb.48.1684942457338; Wed, 24 May 2023 08:34:17 -0700 (PDT) X-Received: by 2002:a17:906:dac1:b0:966:471c:2565 with SMTP id xi1-20020a170906dac100b00966471c2565mr15855304ejb.48.1684942457080; Wed, 24 May 2023 08:34:17 -0700 (PDT) Received: from amikhalitsyn.local (dslb-088-074-206-207.088.074.pools.vodafone-ip.de. [88.74.206.207]) by smtp.gmail.com with ESMTPSA id p26-20020a17090664da00b0096f7105b3a6sm5986979ejn.189.2023.05.24.08.34.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 May 2023 08:34:16 -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, Christian Brauner <christian.brauner@ubuntu.com>, 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 v2 11/13] ceph/acl: allow idmapped set_acl inode op Date: Wed, 24 May 2023 17:33:13 +0200 Message-Id: <20230524153316.476973-12-aleksandr.mikhalitsyn@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230524153316.476973-1-aleksandr.mikhalitsyn@canonical.com> References: <20230524153316.476973-1-aleksandr.mikhalitsyn@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 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=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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766793224094023010?= X-GMAIL-MSGID: =?utf-8?q?1766793224094023010?= |
Series |
ceph: support idmapped mounts
|
|
Commit Message
Aleksandr Mikhalitsyn
May 24, 2023, 3:33 p.m. UTC
From: Christian Brauner <christian.brauner@ubuntu.com> Enable ceph_set_acl() to handle idmapped mounts. This is just a matter of passing down the mount's idmapping. Cc: Jeff Layton <jlayton@kernel.org> Cc: Ilya Dryomov <idryomov@gmail.com> Cc: ceph-devel@vger.kernel.org Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com> 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 6945a938d396..4291c890e324 100644 --- a/fs/ceph/acl.c +++ b/fs/ceph/acl.c @@ -105,7 +105,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;