Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5145435rwe; Tue, 18 Apr 2023 02:44:04 -0700 (PDT) X-Google-Smtp-Source: AKy350bMrR5r/clQMOSoHp06fEggpHZz4kpv1QQgtCopT/TaH+Vs9Da6GVJVv5N4semfrMMG3udA X-Received: by 2002:a05:6a20:1616:b0:ef:f558:b7d with SMTP id l22-20020a056a20161600b000eff5580b7dmr7060328pzj.59.1681811043851; Tue, 18 Apr 2023 02:44:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681811043; cv=none; d=google.com; s=arc-20160816; b=FNZheDEgCd346JpVxMBwUqFv+J2SnI8haaVja6BCQM94eipapb7CBS2lyXg7Fep5eK bwk/VQ0sY5ye3H3JIaJ62fxjg6DxRZ59EBbCv3iGWrk72CCeWkVJm2OFUJaWLjoJstRW rqkw9zytMAu7F8McuvfJglnY+t6kTFdZY4WCTFRxL80L8kBUkCZSFgW3eNagvDWJJTo2 eMGKCwvscYPg5f6srGdTlCJRoH9sK8IxdDUGsX6t9u4erzYEjGsnW8Qg6rPEm9j6DQTf rdqPRA/ixNM36Np/PPA9E5q8nrwN5UdlPjEXy9HEYGx6KOTSYXe6dIJul5cMiwF+FecO Jv/A== 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; bh=T/Z+NUqnL9BMmXQemDIVDYS6j5UZZXnJKIVTVcIkqrw=; b=beQnvNlsNplnoKG0vyaa3YcyDOY8FKANAG/PrpYlmbtvDe8WGnPZxcCBELk/6u7BIZ 0Uqpm7WdeFVpz+/3Zb+L5hzyFTCX7Obbv0jiDwirrzJKcLkP/OMmUboxWZvu+TcxtfiH zr0EFo4XvDJw9qIMDN+FWD6CSgnl1NbvD2l5dmObxuFYT3QpgUuTUis1M8D7skw4ZYUP iI3BRv7t5PrQwjBlFhjECnCdNVzJ1ewOJsY6VhtxZKKyx6ar1zRFOAvj6iS/JY2CE9Sk VvYNuDSRpJVL6jMNoxkP0DaTVa1t0YY+MG6WpebWX2vQqZmaWgyr+AgfCOXHrluJyRxt 7tHw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t21-20020a17090ad15500b00246abe40ca9si16565269pjw.9.2023.04.18.02.43.49; Tue, 18 Apr 2023 02:44:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231247AbjDRJeb (ORCPT + 99 others); Tue, 18 Apr 2023 05:34:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231384AbjDRJeX (ORCPT ); Tue, 18 Apr 2023 05:34:23 -0400 Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2F2E1BCA for ; Tue, 18 Apr 2023 02:34:21 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 960B964548A2; Tue, 18 Apr 2023 11:34:14 +0200 (CEST) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id WqJz7wN4xyni; Tue, 18 Apr 2023 11:34:14 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 3094564548AF; Tue, 18 Apr 2023 11:34:14 +0200 (CEST) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id oiLpZsNiUCZH; Tue, 18 Apr 2023 11:34:14 +0200 (CEST) Received: from blindfold.corp.sigma-star.at (unknown [82.150.214.1]) by lithops.sigma-star.at (Postfix) with ESMTPSA id A2CDA6431C51; Tue, 18 Apr 2023 11:34:13 +0200 (CEST) From: Richard Weinberger To: linux-nfs@vger.kernel.org Cc: david@sigma-star.at, david.oberhollenzer@sigma-star.at, luis.turcitu@appsbroker.com, david.young@appsbroker.com, trond.myklebust@hammerspace.com, anna.schumaker@netapp.com, steved@redhat.com, chris.chilvers@appsbroker.com, Richard Weinberger Subject: [PATCH 5/8] exports.man: Document reexport= option Date: Tue, 18 Apr 2023 11:33:47 +0200 Message-Id: <20230418093350.4550-6-richard@nod.at> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20230418093350.4550-1-richard@nod.at> References: <20230418093350.4550-1-richard@nod.at> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE,T_SPF_PERMERROR,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: X-Mailing-List: linux-nfs@vger.kernel.org Signed-off-by: Richard Weinberger --- utils/exportfs/exports.man | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/utils/exportfs/exports.man b/utils/exportfs/exports.man index 83dd6807..b7582776 100644 --- a/utils/exportfs/exports.man +++ b/utils/exportfs/exports.man @@ -468,6 +468,37 @@ will only work if all clients use a consistent secur= ity policy. Note that early kernels did not support this export option, and instead enabled security labels by default. =20 +.TP +.IR reexport=3D auto-fsidnum|predefined-fsidnum +This option helps when a NFS share is re-exported. Since the NFS server +needs a unique identifier for each exported filesystem and a NFS share +cannot provide such, usually a manual fsid is needed. +As soon +.IR crossmnt +is used manually assigning fsid won't work anymore. This is where this +option becomes handy. It will automatically assign a numerical fsid +to exported NFS shares. The fsid and path relations are stored in a SQLi= te +database. If +.IR auto-fsidnum +is selected, the fsid is also autmatically allocated. +.IR predefined-fsidnum +assumes pre-allocated fsid numbers and will just look them up. +This option depends also on the kernel, you will need at least kernel ve= rsion +5.19. +Since +.IR reexport=3D +can automatically allocate and assign numerical fsids, it is no longer p= ossible +to have numerical fsids in other exports as soon this option is used in = at least +one export entry. + +The association between fsid numbers and paths is stored in a SQLite dat= abase. +Don't edit or remove the database unless you know exactly what you're do= ing. +.IR predefined-fsidnum +is useful when you have used +.IR auto-fsidnum +before and don't want further entries stored. + + .SS User ID Mapping .PP .B nfsd --=20 2.31.1