Message ID | 20230607180958.645115-6-aleksandr.mikhalitsyn@canonical.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-fsdevel-owner@vger.kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3C9EC7EE2E for <linux-fsdevel@archiver.kernel.org>; Wed, 7 Jun 2023 18:11:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232594AbjFGSLH (ORCPT <rfc822;linux-fsdevel@archiver.kernel.org>); Wed, 7 Jun 2023 14:11:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232600AbjFGSLB (ORCPT <rfc822;linux-fsdevel@vger.kernel.org>); Wed, 7 Jun 2023 14:11:01 -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 15FD51FFD for <linux-fsdevel@vger.kernel.org>; Wed, 7 Jun 2023 11:10:49 -0700 (PDT) Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.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 1A63B3F1B1 for <linux-fsdevel@vger.kernel.org>; Wed, 7 Jun 2023 18:10:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1686161446; bh=NiXISWdTTKqrASGu11LnECL/5NzVPnT3d4irPieP8Oo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=XgN5B1Yiztgj/t8rhRPu7wr9p24BT0ycwiU4Fv6q/7o+wjeVQ+ru5OxuywL+V+hzZ Ps6DpXslqTkcWqqW8YE+Uhw78i7GKD1fJA+5HZA2FDK+euyKXXYdKUuMtOLzaE2XhR 9SeN647CY4KGzkJUror9bW7kmIBGydACngrs8hnmMgjbXDNdxNpd6JfsRFEqE9SSBo NQHorrkNoOtMpsElLXTXLvJjdYDOTcsOV//7Sg0w6rgL/X2xT8xgsLWO5Iv37TrLnq PRz94ST5Ch0AyYTh3Ic/WvFZzOX4Tq/uDJ9DC7rv31e0KlwdpErwhWLnIN7hKlVZEI r+VLcLjNSZyxA== Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-977e6c94186so304173766b.1 for <linux-fsdevel@vger.kernel.org>; Wed, 07 Jun 2023 11:10:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686161443; x=1688753443; 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=NiXISWdTTKqrASGu11LnECL/5NzVPnT3d4irPieP8Oo=; b=fQsn3iCn0ztdkRLYxgUi+Lb8+V1A8x2epAMZNtL4gVun1ZrQkIC+Qkdgg2ORCnOw8k vezu669fUoRgbNspaxMRMfx8NDBW22bg4X4Yus3zJRU2XX9yeJEjCKGz5FruT+jL27yK C102WhT3ACVxSPTOlH/dZLyJx9QLqYCZVXQd0dJYOUJ561SlzBk3V1H5MG51cZ5aEwKx Y/jmVKvIzmXj/pUzEnYDeEz/UgCOy25gpkhoW1e54yllbBmecghbzoTLNC+vM17dpApm Fvuy6Eq8kPjIJngIjKqouEZ5q8zuYIVzXmcN/8Vm4qgpLLdsKJIYgG0JwXjdBrkogDhH LC4Q== X-Gm-Message-State: AC+VfDwIr1viSXhmSvOv67CKCSeDh/uI0UJb1JEPwiS32V5NSiVTPttX LNSckH/7AFGBuSVfsSrblCbEXDhagAGJSzG+PcIDObb6EJxlXRYkmlcB2WJnU0QckpCr7PQwZhV claoPG0uOhpYOnwOX1ZRz5myaXXbpsqLraOqz4WImObU= X-Received: by 2002:a17:907:7203:b0:971:9364:f8cd with SMTP id dr3-20020a170907720300b009719364f8cdmr7198744ejc.44.1686161443500; Wed, 07 Jun 2023 11:10:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6v6uUPJK8+xV3dSA9zftqoqH4Sl5IhvWY6O86BBmABFIFnOcXD46uWK9jOFmxZDQRLCE5RZg== X-Received: by 2002:a17:907:7203:b0:971:9364:f8cd with SMTP id dr3-20020a170907720300b009719364f8cdmr7198723ejc.44.1686161443215; Wed, 07 Jun 2023 11:10:43 -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 oz17-20020a170906cd1100b009745edfb7cbsm7170494ejb.45.2023.06.07.11.10.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Jun 2023 11:10:42 -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 v4 05/14] ceph: allow idmapped symlink inode op Date: Wed, 7 Jun 2023 20:09:48 +0200 Message-Id: <20230607180958.645115-6-aleksandr.mikhalitsyn@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230607180958.645115-1-aleksandr.mikhalitsyn@canonical.com> References: <20230607180958.645115-1-aleksandr.mikhalitsyn@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-fsdevel.vger.kernel.org> X-Mailing-List: linux-fsdevel@vger.kernel.org |
Series |
ceph: support idmapped mounts
|
expand
|
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c index aaae586de4de..5025b570683d 100644 --- a/fs/ceph/dir.c +++ b/fs/ceph/dir.c @@ -956,6 +956,7 @@ static int ceph_symlink(struct mnt_idmap *idmap, struct inode *dir, req->r_num_caps = 2; req->r_dentry_drop = CEPH_CAP_FILE_SHARED | CEPH_CAP_AUTH_EXCL; req->r_dentry_unless = CEPH_CAP_FILE_EXCL; + req->r_mnt_idmap = mnt_idmap_get(idmap); if (as_ctx.pagelist) { req->r_pagelist = as_ctx.pagelist; as_ctx.pagelist = NULL;