Return-Path: Received: from mail-co1nam03on0093.outbound.protection.outlook.com ([104.47.40.93]:59424 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S966247AbeF1ORc (ORCPT ); Thu, 28 Jun 2018 10:17:32 -0400 From: Trond Myklebust To: "libtirpc-devel@lists.sourceforge.net" , "linux-nfs@vger.kernel.org" , "chuck.lever@oracle.com" Subject: Re: [PATCH] Handle RPC_CANTDECODEARGS response in rpcbind query Date: Thu, 28 Jun 2018 14:17:29 +0000 Message-ID: References: <20180628134503.13942.25482.stgit@klimt.1015granger.net> In-Reply-To: <20180628134503.13942.25482.stgit@klimt.1015granger.net> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org List-ID: T24gVGh1LCAyMDE4LTA2LTI4IGF0IDA5OjQ1IC0wNDAwLCBDaHVjayBMZXZlciB3cm90ZToNCj4g V2UgaGF2ZSBhIHJlcG9ydCB0aGF0IHNvbWUgY29tbWVyY2lhbCBORlMgZmlsZSBzZXJ2ZXJzIHN0 aWxsIGRvIG5vdA0KPiBzdXBwb3J0IHJwY2JpbmQgdjQgY29ycmVjdGx5LiBUaGV5IHJldHVybiBS UENfQ0FOVERFQ09ERUFSR1MgaW5zdGVhZA0KPiBvZiBSUENfUFJPR1ZFUlNNSVNNQVRDSCwgc28g b3VyIHJwY2JpbmQgY2xpZW50IG5vdyBlcnJvcnMgb3V0DQo+IGltbWVkaWF0ZWx5IGluc3RlYWQg b2YgdHJ5aW5nIGEgbG93ZXIgcnBjYmluZCB2ZXJzaW9uLg0KPiANCj4gVG8gYWRkcmVzcyB0aGlz LCBjb252ZXJ0IHRoZSAiaWYgKCkgZWxzZSBpZiAoKSBlbHNlIGlmICgpIiB0byBhDQo+IHN3aXRj aCBzdGF0ZW1lbnQgdG8gbWFrZSBpdCBzdHJhaWdodGZvcndhcmQgdG8gYWRkIG5ldyBzdGF0dXMg Y29kZXMN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