Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1481913ybe; Wed, 11 Sep 2019 15:54:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqy8rJyuyabs09DPAvtuGFjMjD3nb05qWXmp4D+nuzOtaTvWr1DIPPrwYT7S11et4/ozgqGY X-Received: by 2002:aa7:c24f:: with SMTP id y15mr40243284edo.152.1568242475834; Wed, 11 Sep 2019 15:54:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1568242475; cv=pass; d=google.com; s=arc-20160816; b=DkD8GZfrun2vGO1/L6kMIgnrnl9ogvcTzrREscgTUDzs9LJXEG9m2puO74mJYdVGYA oPvaju0vMMHb6aA11HZPP1aJjmE3/mcbXP6l/Cwegk1evxeKXAlrjHCYK14hY7UusR9R nWZ4X4Pjzpdo8PVxjWRpdJ74lk8l9uvFkVCl1PnSOMFnYDqhx9fXL+hOA5VRKhmtEsyh GA1EDYCgtNzOUS7yZx9N2hBbXPlpU1pglvqWF25a5humGng3OnGfRIJIL/Yw3dfKd3vf 0Y4g5W7pxXSOXsUddeaKwCh1IkgrfSCtMLTRxxSoUCkAe63IUku6nsaPsQDJKTgNzeQG AVvw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=gRUiFzyox0HMHH+tqavE1xZ1M7LF73YpuXXv+pQxRr8=; b=GorHeVKNkeyhJkvYyoaGUASCYg12Hlt0zdXsh5zbVqpcR1cCY4sqPwX6ZM4VwAGcEl sFE6zVpyh2M2F4wiUPDwBlDmbJOZv4Yb+C33kRHn0y2/NoQ1OnZ1Zc5JLT1Pys5GwZSa yhhqxm6BVJfB3EqqxnEenmNrkW9kMGjvATZ7hoKMSqCJ1oiewetrGfLynzCHXIduBGFq odgmQOBx7JLeA8ePDnwtzt0cWrXGdqb/93zOzdO6F0CRDu9VKzpTP+k6ZnpdVk68BAFb Ue+BbMa4I3yoi2u7/B+Bs/KWJczfXb2BoCSGQ+qYpGsG0RH9MU/khGChh6pe8zMjpRxp iCiQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@hammerspace.com header.s=selector2 header.b=OFPjeGww; arc=pass (i=1 spf=pass spfdomain=hammerspace.com dkim=pass dkdomain=hammerspace.com dmarc=pass fromdomain=hammerspace.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hammerspace.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d17si13897152eda.213.2019.09.11.15.53.57; Wed, 11 Sep 2019 15:54:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@hammerspace.com header.s=selector2 header.b=OFPjeGww; arc=pass (i=1 spf=pass spfdomain=hammerspace.com dkim=pass dkdomain=hammerspace.com dmarc=pass fromdomain=hammerspace.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hammerspace.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730154AbfIKTB1 (ORCPT + 99 others); Wed, 11 Sep 2019 15:01:27 -0400 Received: from mail-eopbgr770121.outbound.protection.outlook.com ([40.107.77.121]:11492 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729016AbfIKTB0 (ORCPT ); Wed, 11 Sep 2019 15:01:26 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GTsj0fVKJpQW8cFh9yUcdxXJsuKTDih8j+LYFpY0WlOG0K/ZZ6QPjtj/F+lDfRy5aReQEddqzIYCFSP7nY27upZzjFbt36C23cXkYV3qLKD3HocTcjytasPB81T7y+UpilDDg2O5v2HkUiceRurqocVRiOEV73+7lR29Xi6L/GVsZGtDX/cDwfSJSNOr/SxfKXvazUJ2UHL5+CBlGqtrXcRcNZL9mqneYcSpNiPfU0ow/NPLYC5kU65JQMhBrZvB3U2NgQLbaReunRtcp4om0sGvZnO3sEftPfR1QR0jOJlQFnu9mJs8jSVNC4f6jo1CTbNSCWj/VfJI7pcuu4OSqg== 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=gRUiFzyox0HMHH+tqavE1xZ1M7LF73YpuXXv+pQxRr8=; b=ANafEzAViUiOnDJSIY3/3ZC9I5U9I+Vpziklrsu6B9l9b/kin6X8N80/1mMq0snJ4BfvqXm/TMHpldlLyDJmCGlYlhFuULID4B9Vqr/2/1y83WMlB/nNTHAq6f6EiHBUHT3kPQ8ISS2ZZI5Kh85c47dN4Kx8i2MVJz78TsEhPsTorWzWc5nRhs/DIZ+qJ9/NzZTlzgS9VPeRoTieyiPd9mE8jw6xRlEmvQyKWTmnPogay7hmDPBvQl7i+Q70GumMNX2KCkPtq6TxwUhUHhjuJuqHICOSrJ5QfNTM5JC3ZwdrLJ6T/jv7H8oG5/OUWfFB9NCZuToTsifO3Pl/NDdM6Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hammerspace.com; dmarc=pass action=none header.from=hammerspace.com; dkim=pass header.d=hammerspace.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hammerspace.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gRUiFzyox0HMHH+tqavE1xZ1M7LF73YpuXXv+pQxRr8=; b=OFPjeGwwoIv1ie7bD544HEMFsAcpwk3BgFUq7JCbsAX9jyZmpRtHdCTReWuoN1MAS5+ebe8qAn9HQwHMqnRnnNV465e0+eIQOwheIANNliG7ckTMpMVdhS4OJPglR7VxEKxUQnPX2GvKYdzLlzcJ1qGswtBBhaKvM0QkK3ZFWj4= Received: from DM5PR13MB1851.namprd13.prod.outlook.com (10.171.159.143) by DM5PR13MB1849.namprd13.prod.outlook.com (10.171.158.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2263.10; Wed, 11 Sep 2019 19:00:19 +0000 Received: from DM5PR13MB1851.namprd13.prod.outlook.com ([fe80::70fd:85c2:8ea9:a0b6]) by DM5PR13MB1851.namprd13.prod.outlook.com ([fe80::70fd:85c2:8ea9:a0b6%9]) with mapi id 15.20.2263.015; Wed, 11 Sep 2019 19:00:19 +0000 From: Trond Myklebust To: "chucklever@gmail.com" , "smayhew@redhat.com" CC: "linux-nfs@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "anna.schumaker@netapp.com" , "viro@zeniv.linux.org.uk" , "dhowells@redhat.com" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3 16/26] NFS: Move mount parameterisation bits into their own file Thread-Topic: [PATCH v3 16/26] NFS: Move mount parameterisation bits into their own file Thread-Index: AQHVaLxD0WQZmlB55EWdF273sREgE6cmytQAgAAJ+4A= Date: Wed, 11 Sep 2019 19:00:19 +0000 Message-ID: <014d1a8425545b633b982f63d78665b73bcf0075.camel@hammerspace.com> References: <20190911161621.19832-1-smayhew@redhat.com> <20190911161621.19832-17-smayhew@redhat.com> In-Reply-To: Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=trondmy@hammerspace.com; x-originating-ip: [50.36.167.63] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 70ae502d-9a01-41be-c878-08d736ea4a5a x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:DM5PR13MB1849; x-ms-traffictypediagnostic: DM5PR13MB1849: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2150; x-forefront-prvs: 0157DEB61B x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(346002)(366004)(136003)(376002)(39830400003)(199004)(189003)(53546011)(5660300002)(6512007)(6436002)(6506007)(26005)(7736002)(53936002)(14444005)(256004)(102836004)(486006)(6486002)(53946003)(66066001)(305945005)(91956017)(36756003)(64756008)(6246003)(66556008)(478600001)(186003)(76116006)(229853002)(66476007)(66446008)(446003)(99286004)(11346002)(30864003)(86362001)(8936002)(76176011)(66946007)(2906002)(118296001)(14454004)(54906003)(2501003)(110136005)(4326008)(71190400001)(71200400001)(476003)(81166006)(81156014)(2616005)(8676002)(3846002)(316002)(6116002)(25786009)(2004002)(559001)(579004)(569006);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR13MB1849;H:DM5PR13MB1851.namprd13.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: hammerspace.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 7dxhrlInXn5/lcCxWJku+sHpLpGkg2aUynUz/7A+0j8BR6oiuILSPfsvjAAcIhAOvDwN25wGmhjGc9PYhFli518TB368mcrOmBp6iCSsYlCa4YKlppPefsUMuW1BsumEij+nDuOwSsrxCrIrWZRmzx8ulZY/tQemDyCuZVRM0M0yOyAOtVDuVwirEXERU45ei8Z44mVnEuwLwTu8l3eGlN1Egg9Bm3xLG907Dd9trZFtmbZE1R7ZlEE0iTY0QqN/AVoC5uSUMWOatmc4UlFl/i3/cH5f+nRn4Bv43rNKiWBW6ROy0wfzNECcJbZEeLes1K4wGclKTc+3rY4OGHcvh4RPxHeep30Lc+XCxHS/PtpSYd2C22V/yBp3LuoSyQ4wvuq6wuP65Ou3N1k2TvHx018vYN1CDY3hP+rhZm6Vb8Q= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: hammerspace.com X-MS-Exchange-CrossTenant-Network-Message-Id: 70ae502d-9a01-41be-c878-08d736ea4a5a X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Sep 2019 19:00:19.0996 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 0d4fed5c-3a70-46fe-9430-ece41741f59e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 7seoRkkZR6y0FvgnV2BNVdeWnF3Jo/On8FUPv7NV5K9zOGG51FzvnCErvhZkEtJM/3L7/Ug6kwRTQgjqiVBKxg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR13MB1849 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gV2VkLCAyMDE5LTA5LTExIGF0IDE0OjI0IC0wNDAwLCBDaHVjayBMZXZlciB3cm90ZToNCj4g PiBPbiBTZXAgMTEsIDIwMTksIGF0IDEyOjE2IFBNLCBTY290dCBNYXloZXcgPHNtYXloZXdAcmVk aGF0LmNvbT4NCj4gPiB3cm90ZToNCj4gPiANCj4gPiBGcm9tOiBEYXZpZCBIb3dlbGxzIDxkaG93 ZWxsc0ByZWRoYXQuY29tPg0KPiA+IA0KPiA+IFNwbGl0IHZhcmlvdXMgYml0cyByZWxhdGluZyB0 byBtb3VudCBwYXJhbWV0ZXJpc2F0aW9uIG91dCBmcm9tDQo+ID4gZnMvbmZzL3N1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