Message ID | 20230608154256.562906-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 k13csp375672vqr; Thu, 8 Jun 2023 08:59:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5/qbbvFQVM6Sm1bDVKpM3bJF0JNKRTSqvoR5jxp2YBqv8dSjnsVlM2a2BvuWmHs89zZ/05 X-Received: by 2002:a05:6a20:a126:b0:10c:7c72:bdd6 with SMTP id q38-20020a056a20a12600b0010c7c72bdd6mr4583226pzk.59.1686239965745; Thu, 08 Jun 2023 08:59:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686239965; cv=none; d=google.com; s=arc-20160816; b=EBm79xgfQbkEDFaXTFRU8Xs+aeWmtK+vRQKSbm0F8V2eu36ddpRfZfoALG3x2Lce1D +zb1Y5D9PuQCImxa5r4uoLqWZX8GVE86sR50EgiP213ek8pZGUUsCRGtt03662ix8IIS Iv3srcgttiEIkfuPp4ZA4K3vy7WO+5rD7Ke4nsstrhXhgC3UrprwIiDSmCFL/chVoEpx gh+T3sZNPRo6StNG6yv1cqba13J9LeVEwpbPj6rrG7MgGh2eaA/uwO0+/u48JCjM1GCn q2mOZFGlrApUWwX6C5OwjHw5wQ90EjYZCi/rgk5F+VIv+/OoPob3k/r2VKKpL+ebMxyc NppQ== 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=/It8VSgZDTEKktJxHTMOOJHpvqL0RXNtakCJDr6cWYA=; b=WK2FOEbbsGUhQf9nqCxGg8smPnSJ3M9hHl8TYcCTddlqIgWg45VJor7eltZQYCaIYg QMGi3D86YF+hoJG4C+tdluVVHiL7PL2ALxkPxJzOlDxHcXeX6Kr+4wCqxd+agsrt9qsT F8xt4WgA5WocGi2cDAu3KZsNAcR15yFsNYRKkHGsxXbLIn/W4o1RoWUm/bTbjcs5k4uD FN+GqtPO4zHA1ueuZTaghpMJ+2I3hXlyvNtAeM554CcuyfT/fxFUQI0xpjdXB9SgstpW 2GR/rnoEjy2udYkaQ59Um6G+Ge7IA8JfggyJ9lgKkY435IudhW+N8/ftvqvlIT7b9DDH AAOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=ZhAFBfhe; 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 s5-20020a63af45000000b00517ab01bb8fsi1188607pgo.100.2023.06.08.08.59.10; Thu, 08 Jun 2023 08:59: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=ZhAFBfhe; 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 S236193AbjFHPou (ORCPT <rfc822;literming00@gmail.com> + 99 others); Thu, 8 Jun 2023 11:44:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237203AbjFHPo2 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 8 Jun 2023 11:44:28 -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 294AB35A2 for <linux-kernel@vger.kernel.org>; Thu, 8 Jun 2023 08:43:59 -0700 (PDT) Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (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 E0FE73F370 for <linux-kernel@vger.kernel.org>; Thu, 8 Jun 2023 15:43:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1686239026; bh=/It8VSgZDTEKktJxHTMOOJHpvqL0RXNtakCJDr6cWYA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ZhAFBfheINB8eE2BwI9zeoKJZLRNin5AAEkC7I74PxVXoNXw2gxoGhD3ddTXopxEv PbgOnXBh8osyvi109qX6yC4dhGv5hUEbBkta3fnlUNuuQLolI3chfK8THaFUOo2ywR Ryda4hye1cUOA1TLVeAZ8Ff9qdRAFAPgYd22p325I+xj9mtuPDuXK358YngLOpZBVR GkWLzNc7PYq+WVk96hCDE5w+RP2OV3NH09EY9u5zkL71SC1XMcufUjkBq/PXhemQVi zl2MGilLnXAQtVWFGacifoojo+3m7MS80zvlc8XES7sRuBNelluZKdZdkxd2XXJj8z 57OxDV6KtDTCg== Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-514b05895f7so845264a12.0 for <linux-kernel@vger.kernel.org>; Thu, 08 Jun 2023 08:43:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686239024; x=1688831024; 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=/It8VSgZDTEKktJxHTMOOJHpvqL0RXNtakCJDr6cWYA=; b=ke4qHT7rDGnWThiYEbKEMavi3X2g44LcKhbx0ujdmTm49NfsRXKl+vX2iijqPpiHm+ Ldm62DFGVXcV67ZW4IrO3hdT0zz1OTp4lDxjwYqhl80LmkKK4nuJZSiKEJVJhrgWcFRP vlXPJ+4aEAm2gwjivtbIdJxnwIEzIFmW6jztE+K+bngE8koUwb7BjblbFK0jH4pEUWPV PIXxjpndt4v6+LuqWjBJxC7FQY7KHh/Hcb5DCgJkxqg+QE8+PBwgNk2xJAd8WJPqjbQC zb+zpZCoGY05L1fmLaThkIYLqqF4mxalAhp9gfFXpotD02uk8cNetAd14lIFoHusMGuw ISOw== X-Gm-Message-State: AC+VfDwx1GorwqjFxTkOp2RggacNY9uyrR8Hn2Ik1JlPlz75pKc6xzOl yx75+r2kPwhbyk9PGKfye8KZ22dnGLtwfhJFfXcrjAWF/khxtbfRrw7xRfH1wR3aqrM1lhrTrhH DPrp+yeyL6TZ2gLXl7Zgib79NOEBUOYuYl+1puX4dkg== X-Received: by 2002:aa7:d88a:0:b0:50c:cde7:285b with SMTP id u10-20020aa7d88a000000b0050ccde7285bmr7205759edq.29.1686239024658; Thu, 08 Jun 2023 08:43:44 -0700 (PDT) X-Received: by 2002:aa7:d88a:0:b0:50c:cde7:285b with SMTP id u10-20020aa7d88a000000b0050ccde7285bmr7205750edq.29.1686239024530; Thu, 08 Jun 2023 08:43:44 -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 y8-20020aa7c248000000b005164ae1c482sm678387edo.11.2023.06.08.08.43.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jun 2023 08:43:43 -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, Christian Brauner <christian.brauner@ubuntu.com>, Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>, linux-kernel@vger.kernel.org Subject: [PATCH v5 09/14] ceph/acl: allow idmapped set_acl inode op Date: Thu, 8 Jun 2023 17:42:50 +0200 Message-Id: <20230608154256.562906-10-aleksandr.mikhalitsyn@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230608154256.562906-1-aleksandr.mikhalitsyn@canonical.com> References: <20230608154256.562906-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?1768150758655396191?= X-GMAIL-MSGID: =?utf-8?q?1768150758655396191?= |
Series |
ceph: support idmapped mounts
|
|
Commit Message
Aleksandr Mikhalitsyn
June 8, 2023, 3:42 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: 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 51ffef848429..d0ca5a0060d8 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;