From owner-freebsd-current@freebsd.org Fri Sep 18 23:21:37 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 98B5E3F34D1; Fri, 18 Sep 2020 23:21:37 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from CAN01-QB1-obe.outbound.protection.outlook.com (mail-eopbgr660082.outbound.protection.outlook.com [40.107.66.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BtVG8220Jz4Hth; Fri, 18 Sep 2020 23:21:35 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LMEwMO1HDXk7iTuWilyQxVJRTbncrrtfwTHQ+GxWdNPL6Tx/QwgQs7dS50aUwK9lBYvm+t9W4HD0sAEI21t4P8P/wanb+QBK+zAU5qqNEp2oJ+4RsST7kZMFyYLWnIjghqip9s6RPBlL+al7oUuM4wtiviG2jy9wQdbM8KEvjx97icqRc9YYsE+PBT24UTyopQKp+JPJfKwNrlNNS5Oxf/SBPuHRKCvjiextaCOCVKCX4EQHMoDKdInHpWLTU2Pxwpd/tZ+YE030W/5KuTvz1icXaKFbUp/J4NHW1+OSOxZqu6AldJe4IvUfmZFcra3WeGyRqeqUC5RQtG5hJUzRsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=W5LKnMXyy+n9gi+zwxAcIv/SWaWvi7c/8aemy6Ae+/s=; b=K/D5jnoggw5JvMg7FYNXpKp1ZabkPq1YSQsZ0fLrS7/VmuxakF/4XQRdw++zXL1LFy+OrK7RsgQ1yGvU0kId1QOMuAP9sP4mdXWcRuvzPI404sRYecmGlV6EqcKvOr5fSRiM0hqN+yrU1bOqR/5muY9e7mmw+lBcVU4B9ec+LYeV47xQtdGC/++LReW8YeJLldvZ0wCxoJtiOa/Wn8Xzyhyw3tsNUaXmwtzK//xh44Wkp0ylDJTkfKtUvZSVLeQ+T/VO873P3P9jeTk32XXrgTmXRnTvCokM8vHK8StsliiSV6B7NGkUmem+KDdVi+Hm8m7B/3Ie2MPO2402BpkxHw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=uoguelph.ca; dmarc=pass action=none header.from=uoguelph.ca; dkim=pass header.d=uoguelph.ca; arc=none Received: from YTBPR01MB3966.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:24::27) by YTXPR0101MB1213.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b00:9::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.19; Fri, 18 Sep 2020 23:21:34 +0000 Received: from YTBPR01MB3966.CANPRD01.PROD.OUTLOOK.COM ([fe80::687f:d85a:a0a3:bd20]) by YTBPR01MB3966.CANPRD01.PROD.OUTLOOK.COM ([fe80::687f:d85a:a0a3:bd20%6]) with mapi id 15.20.3391.014; Fri, 18 Sep 2020 23:21:34 +0000 From: Rick Macklem To: Shawn Webb , "freebsd-current@freebsd.org" , "freebsd-stable@freebsd.org" Subject: Re: Documentation regarding NFSv4 Thread-Topic: Documentation regarding NFSv4 Thread-Index: AQHWje0ADCDVEU1HgUOgviWAKyD/+KlvBqx2 Date: Fri, 18 Sep 2020 23:21:34 +0000 Message-ID: References: <20200918185319.7o27ciyviwdyhr7v@mutt-hbsd> In-Reply-To: <20200918185319.7o27ciyviwdyhr7v@mutt-hbsd> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: dbbb37fa-c086-4b19-c162-08d85c29957f x-ms-traffictypediagnostic: YTXPR0101MB1213: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: BvBOM1IxPvIEkx1yp2Wo2Ot2vBrWT03UTgBPU00/n4Cy4oOfzGuv1FaESkhAUimfl84Izti0rdKqEQvcazR7zzWo5yQ9vCC2K27YCYBkuCGqjVOWPr9w/9XHQinXvH5/vrNPo6/R9ofTyLDx8NkoD2cZwBMV4M0aGz0Vkm1FjvVBygTgPXihvDntCeq7rWwrcu0pq35H/WcqT0E7eRt2aja9AXipiivfttnlfDy6h3bg5qhgH/HCLyQ9/2LCoBP1Mrrrc2ZoP/X6eCR5Y/3MvW/q3ETeHLJCV8FsBAylixFYfd1FhqwcibjfxHPHrkCpJasgIObXlNwm8S6FvazZCK0FR4NrrbozA1N8uxDK7nQBN5fBB5C1IHHNrsNx2FyQ4t/2xyZV0cFi9ZG3DuFEKw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:YTBPR01MB3966.CANPRD01.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(396003)(39860400002)(346002)(376002)(136003)(366004)(8676002)(9686003)(7116003)(8936002)(55016002)(52536014)(966005)(86362001)(33656002)(186003)(6506007)(83380400001)(5660300002)(7696005)(91956017)(478600001)(66446008)(64756008)(66556008)(66476007)(110136005)(71200400001)(786003)(76116006)(316002)(2906002)(66946007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: vgIbYbblrs8BqsdT9Ar31/9+NQ9eE9WOcm9pvpafM3iseGH0TWgjQM3iFA6O9j7qfB25rpeZ+hq3hRKm54C4A40+FAqaGq8KseiJoFZbmT2Z1m0H3WXnhnhn33y37QeJ0gz0t/u/W/ffPaOgOxAVlveZaLUC2yIxh38MOMWqv5H0TMmsHpDgdonabtLY6dYuZDuz+dTcUH1pliA3azAVoi14YRaFb5wlfGzm8BVXW50La3zZdig75qobe31BdAL/ElmBrnauAc3ucL59vJG2/3GF7xnTqiJBwGNfhf9Dh9MXQkrMMincKAqzAslgWGhp6j3npDAfJk4f2ONN4NObiR54EbWT+RIljYwEZmQoZHmE7fDubjcm8zqXUNtLzBPjls7zJresQGBEHH87EJo7egnQwnUg4iSGuURUKaqrxlnrfd4MKGCQYUxXSKBcthmzb01jhReEwoza7vwWI789Eb/QkrljKK4JYx8k0wtNe8fWiVS66HiiKh5wj9tBs0oaVrmKFeBEeYKKTy6PujMT7A/0+NZ3ZVGX8jKkgE7LvrboF5G2yvFLPwa2Uj37ZQrAPeY+kDVmdIO3o9fj3KzNxpnG6cyQbmcv7OgivndbYRlYwhws59tpSUHB8Y/mbRFbX7PwMlWrPTX6tqjs6wFV8lRyxdAgaxtp1Sftm/MYlIUdy/h4Kyq0GlH+9dwmHdR0/kJBJdohl7Tol1uQ72BZtQ== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: uoguelph.ca X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: YTBPR01MB3966.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: dbbb37fa-c086-4b19-c162-08d85c29957f X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Sep 2020 23:21:34.3098 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: be62a12b-2cad-49a1-a5fa-85f4f3156a7d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 4dWeTd6ui33d7tpKiReck25knUf/hcboICZx4eR0IWF8nWdzq0pF5UTm3pqDDLF6vqAD0itioOPmmaEePyruyw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: YTXPR0101MB1213 X-Rspamd-Queue-Id: 4BtVG8220Jz4Hth X-Spamd-Bar: ------ X-Spamd-Result: default: False [-6.49 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.995]; R_DKIM_ALLOW(-0.20)[uoguelph.ca:s=selector1]; FREEFALL_USER(0.00)[rmacklem]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:40.107.0.0/16]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.03)[-1.034]; DWL_DNSWL_LOW(-1.00)[uoguelph.ca:dkim]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[uoguelph.ca:+]; DMARC_POLICY_ALLOW(-0.50)[uoguelph.ca,none]; RCVD_IN_DNSWL_NONE(0.00)[40.107.66.82:from]; NEURAL_HAM_SHORT(-1.46)[-1.460]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:8075, ipnet:40.104.0.0/14, country:US]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; MAILMAN_DEST(0.00)[freebsd-current,freebsd-stable]; RWL_MAILSPIKE_POSSIBLE(0.00)[40.107.66.82:from] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Sep 2020 23:21:37 -0000 Shawn Webb wrote:=0A= >Hey all,=0A= >=0A= >It appears the Handbook and the nfsv4 manpages don't really agree,=0A= >leading to some confusion as to how to properly set up an NFSv4 server=0A= >on FreeBSD.=0A= >=0A= >Any guidance would be appreciated.=0A= 1 - I never look at the Handbook, but do try and maintain the man pages.=0A= Since you didn't explain the specifics related to your confusion, all = I can=0A= say is that the man pages are probably more correct.=0A= =0A= Assuming you already have a running NFSv3 NFS server, all you need to do=0A= is:=0A= - Add a V4: line to your /etc/exports files. This does not "export any file= systems"=0A= (that is done by other lines in /etc/exports exactly the same as NFSv3).= =0A= However, it does tell the NFSv4 server where the "root" is for NFSv4 clie= nts.=0A= (ie. Where in the server's file system tree a "nfs-server:/" done by an N= FSv4 client=0A= ends up.)=0A= - Add nfsv4_server_enable=3D"YES" to your /etc/rc.conf.=0A= =0A= Note that, since NFSv4 does allow a mount to cross server mount points (unl= ike=0A= NFSv3), a client will normally only do a single mount at or near the "root"= =0A= specified by the "V4:" line (see "man exports").=0A= =0A= If you explain what inconsistencies are in the docs, maybe someone could=0A= fix them.=0A= =0A= rick=0A= =0A= Thanks,=0A= =0A= --=0A= Shawn Webb=0A= Cofounder / Security Engineer=0A= HardenedBSD=0A= =0A= GPG Key ID: 0xFF2E67A277F8E1FA=0A= GPG Key Fingerprint: D206 BB45 15E0 9C49 0CF9 3633 C85B 0AF8 AB23 0FB2=0A= https://git-01.md.hardenedbsd.org/HardenedBSD/pubkeys/src/branch/master/Sha= wn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc=0A=