Return-Path: linux-nfs-owner@vger.kernel.org Received: from mx2.netapp.com ([216.240.18.37]:23206 "EHLO mx2.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750862Ab2BOP5Q (ORCPT ); Wed, 15 Feb 2012 10:57:16 -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 v2 Date: Wed, 15 Feb 2012 15:57:07 +0000 Message-ID: <1329321425.3364.24.camel@lade.trondhjem.org> References: <1329315756.3364.4.camel@lade.trondhjem.org> <1329320305-16111-1-git-send-email-gusev.vitaliy@nexenta.com> In-Reply-To: <1329320305-16111-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: T24gV2VkLCAyMDEyLTAyLTE1IGF0IDE5OjM4ICswNDAwLCBWaXRhbGl5IEd1c2V2IHdyb3RlOg0K PiA+RnJvbSBSRkM1NjYxLCAxOC4zNi4zOg0KPiANCj4gIGNhX21heG9wZXJhdGlvbnM6DQo+IA0K PiAgICAgICBGb3IgdGhlIGJhY2tjaGFubmVsLCB0aGUgc2VydmVyIE1VU1QNCj4gICAgICAgTk9U IGNoYW5nZSB0aGUgdmFsdWUgdGhlIGNsaWVudCBvZmZlcnMuICBGb3IgdGhlIGZvcmUgY2hhbm5l bCwNCj4gICAgICAgdGhlIHNlcnZlciBNQVkgY2hhbmdlIHRoZSByZXF1ZXN0ZWQgdmFsdWUuDQo+ IA0KPiAgIGNhX21heHJlcXVlc3RzOg0KPiANCj4gICAgICAgIEZvciB0aGUgYmFja2NoYW5uZWws IHRoZSBzZXJ2ZXIgTVVTVCBOT1QgY2hhbmdlIHRoZQ0KPiAgICAgICAgdmFsdWUgdGhlIGNsaWVu dCBvZmZlcnMuICBGb3IgdGhlIGZvcmUgY2hhbm5lb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