Return-Path: linux-nfs-owner@vger.kernel.org Received: from mail-iy0-f174.google.com ([209.85.210.174]:54368 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752554Ab1JTMge (ORCPT ); Thu, 20 Oct 2011 08:36:34 -0400 Received: by iaek3 with SMTP id k3so3363350iae.19 for ; Thu, 20 Oct 2011 05:36:34 -0700 (PDT) Message-ID: <1456421465-1319114189-cardhu_decombobulator_blackberry.rim.net-173541571-@b18.c3.bise3.blackberry> Reply-To: bhalevy@tonian.com References: <4E9F82FC.2000904@tonian.com> <1319076801-13474-1-git-send-email-benny@tonian.com> <20111020115224.GH5444@fieldses.org> In-Reply-To: <20111020115224.GH5444@fieldses.org> Subject: Re: [PATCH 5/7] nfsd4: implement NFS4_SHARE_WANT_NO_DELEG, NFS4_OPEN_DELEGATE_NONE_EXT To: "J. Bruce Fields" , "Benny Halevy" Cc: "J. Bruce Fields" , linux-nfs@vger.kernel.org From: "Benny Halevy" Date: Thu, 20 Oct 2011 12:36:25 +0000 Content-Type: text/plain MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org List-ID: T0ssIEkgcmVhZCB5b3UuICBKdXN0IHBsZWFzZSB0YWtlIG5vdGUgdGhhdCBXQU5UX05PX0RFTEVH IGZsYWcgaXMgaW1wb3J0YW50IHRvIHNpbXBsaWZpZWQgY2xpZW50cyB0aGF0IGRvIG5vdCBzdXBw b3J0IGRlbGVnYXRpb25zLCBsaWtlIHRoZSBvbmUgSSB3YXMgdGVzdGluZyBhZ2FpbnN0IGluIHRo ZSBCQVQsIGFuZCBpdCBpcyB0aGUgb25seSBvbmUgaW4gdXNlIHRoYXQgSSBjb3VsZCB0ZWxsLg0K DQpCZW5ueQ0KLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCkZyb206ICJKLiBCcnVjZSBGaWVs ZHMiIDxiZmllbGRzQGZpZWxkc2VzLm9yZz5EYXRlOiBUaHUsIDIwIE9jdCAy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