Return-Path: linux-nfs-owner@vger.kernel.org Received: from mx2.netapp.com ([216.240.18.37]:10551 "EHLO mx2.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753369Ab2BPV3Y (ORCPT ); Thu, 16 Feb 2012 16:29:24 -0500 Received: from sacrsexc1-prd.hq.netapp.com (sacrsexc1-prd.hq.netapp.com [10.99.115.27]) by smtp2.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q1GLTILg012107 for ; Thu, 16 Feb 2012 13:29:19 -0800 (PST) From: "Myklebust, Trond" To: "Adamson, Andy" CC: "linux-nfs@vger.kernel.org" Subject: Re: [PATCH Version 2 1/1] NFSv4.1 set the cl_hostname for data servers Date: Thu, 16 Feb 2012 21:29:12 +0000 Message-ID: <1329427752.19793.30.camel@lade.trondhjem.org> References: <1329426646-2074-1-git-send-email-andros@netapp.com> In-Reply-To: <1329426646-2074-1-git-send-email-andros@netapp.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org List-ID: T24gVGh1LCAyMDEyLTAyLTE2IGF0IDE2OjEwIC0wNTAwLCBhbmRyb3NAbmV0YXBwLmNvbSB3cm90 ZToNCj4gRnJvbTogQW5keSBBZGFtc29uIDxhbmRyb3NAbmV0YXBwLmNvbT4NCj4gDQo+IFVzZWQg YnkgL3Byb2MvZnMvbmZzZnMvc2VydmVycw0KPiANCj4gU2lnbmVkLW9mZi1ieTogQW5keSBBZGFt c29uIDxhbmRyb3NAbmV0YXBwLmNvbT4NCj4gLS0tDQo+ICBmcy9uZnMvY2xpZW50LmMgICAgICAg ICAgICB8ICAgIDMgKystDQo+ICBmcy9uZnMvaW50ZXJuYWwuaCAgICAgICAgICB8ICAgIDMgKyst DQo+ICBmcy9uZnMvbmZzNGZpbGVsYXlvdXRkZXYuYyB8ICAgMTEgKysrKysrKysrKy0NCj4gIDMg ZmlsZXMgY2hhbmdlZCwgMTQgaW5zZXJ0aW9ucygrKS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