Return-Path: linux-nfs-owner@vger.kernel.org Received: from mx2.netapp.com ([216.240.18.37]:55005 "EHLO mx2.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757549Ab2BOOWn (ORCPT ); Wed, 15 Feb 2012 09:22:43 -0500 From: "Myklebust, Trond" To: Vitaliy Gusev CC: "bfields@fieldses.org" , "linux-nfs@vger.kernel.org" , Vitaliy Gusev Subject: Re: [PATCH] nfs41: Verify channel's attributes accordingly to RFC Date: Wed, 15 Feb 2012 14:22:37 +0000 Message-ID: <1329315756.3364.4.camel@lade.trondhjem.org> References: <1329315182-12051-1-git-send-email-gusev.vitaliy@nexenta.com> In-Reply-To: <1329315182-12051-1-git-send-email-gusev.vitaliy@nexenta.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org List-ID: T24gV2VkLCAyMDEyLTAyLTE1IGF0IDE4OjEzICswNDAwLCBWaXRhbGl5IEd1c2V2IHdyb3RlOg0K PiA+RnJvbSBSRkM1NjYxLCAxOC4zNi4zOg0KPiANCj4gICAgY2FfbWF4b3BlcmF0aW9uczoNCj4g DQo+ICAgICAgICAgIEZvciB0aGUgYmFja2NoYW5uZWwsIHRoZSBzZXJ2ZXIgTVVTVA0KPiAgICAg ICAgICBOT1QgY2hhbmdlIHRoZSB2YWx1ZSB0aGUgY2xpZW50IG9mZmVycy4gIEZvciB0aGUgZm9y ZSBjaGFubmVsLA0KPiAgICAgICAgICB0aGUgc2VydmVyIE1BWSBjaGFuZ2UgdGhlIHJlcXVlc3Rl ZCB2YWx1ZS4NCj4gDQo+ICAgIGNhX21heHJlcXVlc3RzOg0KPiANCj4gICAgICAgICAgRm9yIHRo ZSBiYWNrY2hhbm5lbCwgdGhlIHNlcnZlciBNVVNUIE5PVCBjaGFuZ2UgdGhlDQo+ICAgICAgICAg IHZhbHVlIHRoZSBjbGllbnQgb2ZmZXJzLiAgRm9yIHRoZSBmb3JlIGNoYW5uZWwsIHR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