From owner-freebsd-fs@freebsd.org Sat Apr 23 01:44:59 2016 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B5268B18D95 for ; Sat, 23 Apr 2016 01:44:59 +0000 (UTC) (envelope-from bmueller@panasas.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 8A1631BF7 for ; Sat, 23 Apr 2016 01:44:59 +0000 (UTC) (envelope-from bmueller@panasas.com) Received: by mailman.ysv.freebsd.org (Postfix) id 896A6B18D90; Sat, 23 Apr 2016 01:44:59 +0000 (UTC) Delivered-To: fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 890BCB18D8F for ; Sat, 23 Apr 2016 01:44:59 +0000 (UTC) (envelope-from bmueller@panasas.com) Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0096.outbound.protection.outlook.com [65.55.169.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0B36E1BF6; Sat, 23 Apr 2016 01:44:58 +0000 (UTC) (envelope-from bmueller@panasas.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=panasas.onmicrosoft.com; s=selector1-panasas-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=VrZsaXj36A6dzlnZn4SvDHmyNNIyMmmP5w1e9hm9cF8=; b=D8VdiZU6NBOk56TgrGoQ5CjXTGLchHPl7S4ifxKCP4LFupcIfR4DimG2mAcZ+Uc7PKP3Yv1hFlBEvRpDrbSE5xjuH53AxWKu1T2ADFK8n4BooiN7w9caTqItnE78VibxKtRf90Iggw/sytlBISeMQp69NNoUHUeS96oea0FneQo= Received: from BN3PR0801MB0961.namprd08.prod.outlook.com (10.160.185.13) by BN3PR0801MB0964.namprd08.prod.outlook.com (10.160.185.140) with Microsoft SMTP Server (TLS) id 15.1.466.19; Sat, 23 Apr 2016 01:44:50 +0000 Received: from BN3PR0801MB0961.namprd08.prod.outlook.com ([10.160.185.13]) by BN3PR0801MB0961.namprd08.prod.outlook.com ([10.160.185.13]) with mapi id 15.01.0466.023; Sat, 23 Apr 2016 01:44:50 +0000 From: "Mueller, Brian" To: "fs@freebsd.org" CC: "rpokala@freebsd.org" Subject: Add NFSv3 tree root to mountd Thread-Topic: Add NFSv3 tree root to mountd Thread-Index: AdGc+6acZLPrcoy9QQ+IJFb6/cIX0w== Date: Sat, 23 Apr 2016 01:44:49 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: freebsd.org; dkim=none (message not signed) header.d=none;freebsd.org; dmarc=none action=none header.from=panasas.com; x-originating-ip: [2601:549:c101:4a56:e8bf:c388:f363:fd04] x-ms-office365-filtering-correlation-id: 525a57bd-b26e-48e6-59ed-08d36b18dc21 x-microsoft-exchange-diagnostics: 1; BN3PR0801MB0964; 5:FkzOEABRCLk7jgJXLUSUQlendwYeuudu14MDPssR16b5rWTvm+mVMrqqcxAwNcSX1Dcv0zwVOqDkXKzfV+1O2hHNMtPvvZOE303Tuxa9enegtopvW6H/8Z1dgckoOhmsT7MKokz97ovFIWAL4Sh91hqTRHIopzBgfC3EWCKSRKm5J+gZn5Uz1qHdJ5E9Ztq0; 24:4r6jO1DQYIqFM+KMvMegFUur4WXBEtQ9czJhHdCFeWhmjJvxDlyc7Kg3caxJPjR6qI34CFHJTHSYrD0Q9rGKzyuhwpsErxBp0EEUFbkcJCs=; 7:J7MLCETzs1lwhAiGN5fw3/u/Pp8aHaqe9/P3x9XB2Gy4yY5jPYsLiHY7X1gRUDFYT6+LEUL38ms3TM2PUq6vAoEr/sncPbo1/Ubkv67B2loRhTdsq0oO6Pk/Ik2Pz4l6iUpNykt+ZCsiYuw/aPBIPmBzLPYTjkTRFJb7+MO2usJ3suJkTqToinYv/PqtPgHepBpf3p1wM/OMoqT7WH19lTJ6HdIQXqkpc26EbXIzJTM= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0801MB0964; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(9101521062)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:BN3PR0801MB0964; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0801MB0964; x-forefront-prvs: 0921D55E4F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(11100500001)(19580395003)(5004730100002)(1096002)(19625215002)(6116002)(2906002)(99286002)(102836003)(790700001)(15975445007)(122556002)(229853001)(586003)(4326007)(1730700002)(3280700002)(450100001)(1220700001)(3660700001)(2351001)(2900100001)(86362001)(33656002)(77096005)(5640700001)(54356999)(5003600100002)(5008740100001)(9686002)(16236675004)(87936001)(2501003)(50986999)(81166005)(5630700001)(110136002)(92566002)(189998001)(10400500002)(76576001)(5002640100001)(19300405004)(74316001)(3826002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0801MB0964; H:BN3PR0801MB0961.namprd08.prod.outlook.com; FPR:; SPF:None; MLV:ovrnspm; PTR:InfoNoRecords; LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: panasas.com X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Apr 2016 01:44:49.7963 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: acf01c9d-c699-42af-bdbb-44bf582e60b0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0801MB0964 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Apr 2016 01:44:59 -0000 Similar to mountd's ability to specify the NFSv4 tree root via the V4: line= in the exports file, I would like to add the ability to specify a NFSv3 tr= ee root. The goal to have the same exported path for both the V3 and V4. = If you have exports file like the following: /foo/bar V3: /foo/bar V4: /foo/bar NFS clients would mount /foo/bar by running mount -t nfs -o ver=3D3 server:/ /mnt/v3 mount -t nfs -o ver=3D4 server:/ /mnt/v4 Without the change, the NFS client would need to specify different paths fo= r v3 and v4 mount -t nfs -o ver=3D3 server:/foo/bar /mnt/v3 mount -t nfs -o ver=3D4 server:/ /mnt/v4 Feedback appreciated. If there aren't any objections with incorporating th= is change into FreeBSD, I will start working on the changes to mountd. Brian Brian Mueller Panasas Inc.