Message ID | 20230804084858.126104-11-aleksandr.mikhalitsyn@canonical.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:44a:b0:3f2:4152:657d with SMTP id ez10csp222804vqb; Fri, 4 Aug 2023 05:23:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGX2YZfQnPX0WChKjAsjeWJqZmV9vpS+3xkmJO2Z2zfXg4zG1tZtVXvHDmkSY3DaiP5rZdA X-Received: by 2002:a05:6a00:1a07:b0:686:be77:431c with SMTP id g7-20020a056a001a0700b00686be77431cmr1716534pfv.13.1691151780649; Fri, 04 Aug 2023 05:23:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691151780; cv=none; d=google.com; s=arc-20160816; b=iL13J2qSy93inkSGyH/TSmM6VnUjhZnrINYBL57AepTWX6ot4SkN0CqG8IB+2bdqLP tTeLQ34VextOPAk3B9lee70nmY2BiQDLBCOGtwEvVmotx644VomMD2yzB0y+5T5WSkLx V3m+TC+f+DpKA/VhICHq16cDbN/o9xAujsUMUzg7aaHqEcMa73RhbBGB6xoXpjV5qLFv GfSXW4yCpwANZLcPZuzYTPP5HoywhexOL3Az4myGk3vaSZevhY4eTqSlBSt8FQa4y6EC tMnQZiB2ssFHXpwvCnAfRA2LeTZfCrPAikl+JSTU48Ni9PhJt/jeOczS+gACW8DsfSxY 8IOg== 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=GlRx3r8uRPjMs+DLF3RRTPZgwG8TkVNVdqfIJzfMOLMuLmHdkAAHTCTEuD8ZFeasgT KVamtO9t5PYAqqc0xk36iq7VuMksx5YIbMeyTRxh4qWToKXBAir3cGkkljHUCrKhTkse 0qQdDHMdNWr4NKu/wsz+WXtDDzORsUEOrNKAcfy3xlgAZomahlFKyyykMxlfOaH+YZVu yt07ncr6x/amPZ/oTPY18Xl5hGYEqr4XMGwICUiQC6mF5AsjyjPbdvelqh3s8+6mmufp VR0X/qh+Zog4NPZkOItbua1jkbLPwszV2RS+DHXfzvyEhgNDfz4auswbDhGSExVnJ6YD +HvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=GkddBikp; 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 l15-20020a63700f000000b005647218b4f9si1719380pgc.225.2023.08.04.05.22.36; Fri, 04 Aug 2023 05:23:00 -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=GkddBikp; 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 S229959AbjHDIvh (ORCPT <rfc822;sukrut.bellary@gmail.com> + 99 others); Fri, 4 Aug 2023 04:51:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229766AbjHDItx (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 4 Aug 2023 04:49:53 -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 86E2B4ECF for <linux-kernel@vger.kernel.org>; Fri, 4 Aug 2023 01:49:49 -0700 (PDT) Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) (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 B2F29417BC for <linux-kernel@vger.kernel.org>; Fri, 4 Aug 2023 08:49:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1691138987; bh=ARhwDsiPa3Ci/G2xteJutduXCGuj42UUR3o8sfJhjpo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=GkddBikpB2/vEVvij461v8mB4ZowSfYppuqPoI9H0KEPxpVdSkHpctJYbs3pq66tr E/Pg6HFpHqp/dIyV5OdhhTXQdNlH+M2bOAgpagRxAS3y8VeGb9teARxVsO9phgBW3C XiHQsHgQyDHV2dx/hIpfGG0oP6sLpJdK6aey/YWPggCLfNmCQNsYuMzerZkQVD4Jzt R9PjVQVWUM1qe/p6JPkJWSEYBe7cN6tuz0KRQOC5CVs6bANEUYqXtaPa3bAjQbOCKu Ml3BUcTSQJ4+7YAOJ5uwDohDlVkMFDcz4riwbKBDSCJ/Io6OoGOP9AibNoeTbX3Hil zPzJ/EJfbMMFA== Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-99c03869a67so124527366b.1 for <linux-kernel@vger.kernel.org>; Fri, 04 Aug 2023 01:49:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691138987; x=1691743787; 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=RTJhV/75kmaZtaL1W7tid3/4I7KDR+0cG0Il20Qp9KSkvCP52fbbPEm1gvR3v1IhGw aGdtXlHBvBmewmDjcmEBvRqU+eQgrW0FOthgZZmt3/Ejxk/ZREIT2nYfUtzaZF9VY3FB JZrfCGDTol0vQCZwK90oNDf0WwIY+uyHLbYa0cirpvNSky9hz6NvemG40TKgqqeyzoeO uXlRktD1vZjUvwOGbprPGLKAtkB0AKpwWLcxiud58XyLVs56dpDcBJfiMQTEVi3pSwPL i2eJji9+szWVXQsHt/dGeAQVMAqkaaZVOvC9DgObiUgvyF7CUuGEDF0Vax34tmazcQgO pahA== X-Gm-Message-State: AOJu0YyBv4dgL0X/MLYGmSvU2hkIp/rJDWr4x2M5H53aCXPRTmHrvnXd Td78VCxth1bS75eQqHhWxmaCYpIIdHA3tg6klC7oZ/SFta/N3bhUgqNnd5+o/D8ez50p4eIG27D W+f4gK/reWL1O/B4qtFAW15mFxLVR6s4n4DfzyUoDAQ== X-Received: by 2002:a17:907:77d0:b0:994:5577:aeed with SMTP id kz16-20020a17090777d000b009945577aeedmr995720ejc.5.1691138987401; Fri, 04 Aug 2023 01:49:47 -0700 (PDT) X-Received: by 2002:a17:907:77d0:b0:994:5577:aeed with SMTP id kz16-20020a17090777d000b009945577aeedmr995708ejc.5.1691138987251; Fri, 04 Aug 2023 01:49:47 -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 k25-20020a17090646d900b00992e94bcfabsm979279ejs.167.2023.08.04.01.49.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Aug 2023 01:49:46 -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 v9 10/12] ceph/acl: allow idmapped set_acl inode op Date: Fri, 4 Aug 2023 10:48:56 +0200 Message-Id: <20230804084858.126104-11-aleksandr.mikhalitsyn@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230804084858.126104-1-aleksandr.mikhalitsyn@canonical.com> References: <20230804084858.126104-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,URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773301169298410950 X-GMAIL-MSGID: 1773301169298410950 |
Series |
ceph: support idmapped mounts
|
|
Commit Message
Aleksandr Mikhalitsyn
Aug. 4, 2023, 8:48 a.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;