Message ID | 20230609093125.252186-10-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 k13csp836218vqr; Fri, 9 Jun 2023 03:09:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4NNG000KpB9pCK2j9dQe+/wgQO/u3TlruoFHZgBD6tS+01ugWrq8bawK7s1khG0O/YXrOj X-Received: by 2002:a05:6a20:3d08:b0:10b:91c5:45b5 with SMTP id y8-20020a056a203d0800b0010b91c545b5mr985308pzi.31.1686305351793; Fri, 09 Jun 2023 03:09:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686305351; cv=none; d=google.com; s=arc-20160816; b=mfTjwqQkQt6ThQ7DD4C+ehboxehMW827bxMUIAVFgsmvoaC122zvp7p395tHUmttCD 0xa4XodD0ArIbBQ+dUCdVBmxamAgTsz+UdgnoVmGVdWrjt69FYMZc70B1pY2QwWTDtmg RsgHl972u07mQb11QPIHzKXhDZRHAGspw/nMrY96zz+fdzx4c75FO9x+UWv5y8Dw27UV JeXgxuEIvD1Jq7sUSWIzL2DETBGujhVgExJHVfd7S+KJl91K0WsJZ+Ez3F9fF+mbj4DT gSYEUH2am+KJx+uLXvBmx02Ak2idHRXlbfMCy/QWoR2dzne9zXHI3YJ5VikugJmq2oD1 L64A== 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=kRtya9vNnJsHnlJFsQiUMmcKKT8ZGQqP3swgCnXRiRw=; b=IsSR42yZcnVjGxCD9AgmNv3LxNhmMUv2dJWefXeVe9g1m6neGidNjaEJI0kj03NlM6 ZZ5jJARihIi6+YAymh7SzP+xKsAyTW5+JBWQhfnC2OaUYMubdQ0DUGlGG5yk+ro100fw G5z7DX3VcgNsIEvT6xItdUFb97PuCSGncLnD/AnF2upWMWdrIuXeF0IqIz5GA3ObtIZc cpwoeZVqX5B4yp55xcAwz+6+xmsBLOTExe3s+FVu1mhe7O25EQao9UaC3mFjvmYnm6IA 1fRGjS5VD1Aw32RT83XwE8a5c76qBrTX8KqNocVfIqJ1zNOYp33x34rCoeEPfCo1DYRm 1xsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=bmEwusq0; 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 o9-20020a639209000000b0054294720d55si2464842pgd.262.2023.06.09.03.08.58; Fri, 09 Jun 2023 03:09:11 -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=bmEwusq0; 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 S241804AbjFIJvx (ORCPT <rfc822;liningstudo@gmail.com> + 99 others); Fri, 9 Jun 2023 05:51:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241798AbjFIJvL (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 9 Jun 2023 05:51:11 -0400 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B42CE7AA4 for <linux-kernel@vger.kernel.org>; Fri, 9 Jun 2023 02:44:23 -0700 (PDT) Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (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-0.canonical.com (Postfix) with ESMTPS id 470F13F576 for <linux-kernel@vger.kernel.org>; Fri, 9 Jun 2023 09:32:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1686303176; bh=kRtya9vNnJsHnlJFsQiUMmcKKT8ZGQqP3swgCnXRiRw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=bmEwusq0cnKXIIy90FwGLJgXUCarhP3s3EfiTRaTXDky+wOr+flgB6EYNucdXGErR TyAk/9Fy5jagq1Sy/sLoiFsrUkI8/vswtxmTpwylE2T/xZW9ZX/WVc6m3PfGbW41bn efz5ioFETHwNG5kNIxcZCLJrX9jY1PXmUsJDGhW/BA56UbzcG/+7oj9oCEWkKBFY/r 85iD2NQeeukpEjGVpYkISpkE3bNlL/8CdUAI3cU2rCXRC/BERPq/b9RPuR6rLI3C0p 3GOQ+tW8/z8MIjjcBpmFL+hmIPwZsyTKaaWalpINGw9P29yhS1Ci30p0D6j3zYqg5h +qb6k7XBuN2Zw== Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-516a043f74eso1591021a12.1 for <linux-kernel@vger.kernel.org>; Fri, 09 Jun 2023 02:32:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686303174; x=1688895174; 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=kRtya9vNnJsHnlJFsQiUMmcKKT8ZGQqP3swgCnXRiRw=; b=JmENW5jNrc1xnB56s0hBwiLFfN4PTDOi8w0sPvsAOG3j4nmzetuiid81W2CVLv6cAb 6rSQ6j1u9pVVBchX5CrPRx0J2BgAhM2vqWp+a626AOW9crxPB/TmIm92l6w0Zw6xLj3/ 9uz3jErAmWm4QyzlMWMHly34DC3pQH4ZKewM54JdUNoYNJNfcnXOIEfWUhQ/F4wm2hK/ 58Z+IY+QbR/thA2OgrcNKhEen3dl9VPzVaQlzqndJiL0dA+i19vIsXpbcRRGEK7pte+w LnwmRzX2DawWWOz5+Fvs8uFAV9c0Feirw15DRju5lUcqKnr6ghQfOm0A0AJUFI5ZLkjU 8ytw== X-Gm-Message-State: AC+VfDwNRENOinB+RggeN15c/4357XvXrcMfk9KrnE3tQ8bY9FogOHum g5kNmpavHvTjoUVHQVMOXVZ+wmWcxDJ+BK6JBqBfmg2KNt/X6W6qrDfm8cE8G5kyTOpilvBM4vt tfhM6wCRWTcJn6aX+Bn9ovN8+Xi6wAz3tlcijyuoFYg== X-Received: by 2002:a17:907:9801:b0:973:fd02:a40f with SMTP id ji1-20020a170907980100b00973fd02a40fmr1311015ejc.59.1686303174468; Fri, 09 Jun 2023 02:32:54 -0700 (PDT) X-Received: by 2002:a17:907:9801:b0:973:fd02:a40f with SMTP id ji1-20020a170907980100b00973fd02a40fmr1310997ejc.59.1686303174276; Fri, 09 Jun 2023 02:32:54 -0700 (PDT) Received: from amikhalitsyn.local (dslb-002-205-064-187.002.205.pools.vodafone-ip.de. [2.205.64.187]) by smtp.gmail.com with ESMTPSA id e25-20020a170906081900b0094ee3e4c934sm1031248ejd.221.2023.06.09.02.32.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jun 2023 02:32:53 -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 v6 09/15] ceph/acl: allow idmapped set_acl inode op Date: Fri, 9 Jun 2023 11:31:20 +0200 Message-Id: <20230609093125.252186-10-aleksandr.mikhalitsyn@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230609093125.252186-1-aleksandr.mikhalitsyn@canonical.com> References: <20230609093125.252186-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,URIBL_BLOCKED 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?1768219320460469893?= X-GMAIL-MSGID: =?utf-8?q?1768219320460469893?= |
Series |
ceph: support idmapped mounts
|
|
Commit Message
Aleksandr Mikhalitsyn
June 9, 2023, 9:31 a.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: 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 <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 f53f7a758c05..d4be4c2d63c3 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;