Message ID | 20230607180958.645115-6-aleksandr.mikhalitsyn@canonical.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <ceph-devel-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 415CBC87FDC for <ceph-devel@archiver.kernel.org>; Wed, 7 Jun 2023 18:11:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232776AbjFGSLI (ORCPT <rfc822;ceph-devel@archiver.kernel.org>); Wed, 7 Jun 2023 14:11:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232606AbjFGSLB (ORCPT <rfc822;ceph-devel@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 171011FFE for <ceph-devel@vger.kernel.org>; Wed, 7 Jun 2023 11:10: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 7CFB73F199 for <ceph-devel@vger.kernel.org>; Wed, 7 Jun 2023 18:10:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1686161445; bh=NiXISWdTTKqrASGu11LnECL/5NzVPnT3d4irPieP8Oo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=qjYmZwqPLPnWJp3rp5Og5Ah3yN53lSjD1SE6FBm/6eowdok+jnD0RPwl+l0P92P2T LNoF+ESn2HPHv/0dJYeCepvyyOiyenDx/OJxK+wBgXPUL5a7sa+VnvkP35lg3YcQTY KDZcXzDyZxoRD01Vaoq90EZ+SGrzqCg6KJDud2zmhmBm4D0Z24FCIospMsljK0frB9 ItdbROs2pA3OoqyL0QboiRpOr5VoqJapBhx/bj4cVFnuNP5QTH4p8ulAjeSRdhD1vU FejnXDe98/lszO+jZPuIU7hCmntXQqSJZxtHXVCemDB5T00d6GjYz7W1hw1x8tmCiD LGwk+HmsBiJRg== Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-975942c2a29so463455766b.0 for <ceph-devel@vger.kernel.org>; Wed, 07 Jun 2023 11:10:45 -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=Kk9q7/pkSya5PO7JbqiPfwxflcxjcSqT4pSyt+XbvKPptSQdaIr2tHZbCN6mGb14+A LiMkSPEclWYQ1cGLtvdLKQDx7f1rD8NIPNnXCTIZaX7ocrGwLKLHCTuMRunxly5iwvu6 yTR9Squ7zwrhiPMV/Q/mOcvKIfExbCXbIG/K2eL5lQUqHaRVGNi7EaEz/uE4zozVBzmS PjowdQHOCdc5h52GHRiIgxZPUUml1ChaE7ZkG41YA2t2mXc2k0pLCtZjCuk6VwNi2pCN iKaadkohqin57vQtHzmWINI3Vw1IJFiQ1MahWVeBz4xbPtjvSumTSt74Raa2RmEwDWOZ SkHA== X-Gm-Message-State: AC+VfDzinZcmmDbb/Nbwc1oVFvTjSOVEtnsmUjLghxlnxYYvBbGzPvFy LTEOy4NoyoQbdUsxPfdWb3r54Y3y7Du5WV4WX9Zxz+9pxRyBZXYd4uiySKtKMN5FydkoNkMLdkn qWGrSW58rzmy42Mis3lozunW7D9XzRzqTvnHvHwU= X-Received: by 2002:a17:907:7203:b0:971:9364:f8cd with SMTP id dr3-20020a170907720300b009719364f8cdmr7198752ejc.44.1686161443503; 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: <ceph-devel.vger.kernel.org> X-Mailing-List: ceph-devel@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;