Return-Path: linux-nfs-owner@vger.kernel.org Received: from p02c12o142.mxlogic.net ([208.65.145.75]:40652 "EHLO p02c12o142.mxlogic.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756010Ab2C3Q7x (ORCPT ); Fri, 30 Mar 2012 12:59:53 -0400 From: Peter Staubach To: "Myklebust, Trond" CC: "Matt W. Benjamin" , Boaz Harrosh , linux-nfs , Ganesha NFS List Date: Fri, 30 Mar 2012 12:46:31 -0400 Subject: RE: unlink within an open directory stream Message-ID: References: <4F70B8DF.9000108@panasas.com> <1974178651.72.1332788099966.JavaMail.root@thunderbeast.private.linuxbox.com> <1333122400.8099.17.camel@lade.trondhjem.org> In-Reply-To: <1333122400.8099.17.camel@lade.trondhjem.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org List-ID: UHJlY2lzZWx5LCBUcm9uZCEgIDotKQ0KDQpUaGF0J3Mgd2h5IHRoZSBjb29raWUgdmVyaWZpZXIg dHVybmVkIG91dCB0byBiZSBhIHVudGVuYWJsZSBpZGVhLg0KDQpUaGUgYXBwbGljYXRpb24gaXRz ZWxmLCBub3QganVzdCB0aGUgYXBwbGljYXRpb24gbGV2ZWwsIG11c3QgcGFydGljaXBhdGUgaW4g dGhlIHJlY292ZXJ5LiAgSWYgdGhlIHJtIGNvbW1hbmQgd2FudHMgdG8gZW5zdXJlIHRoYXQgaXQg cmVtb3ZlcyBldmVyeSBlbnRyeSBpbiBhIGRpcmVjdG9yeSBiZWZvcmUgYXR0ZW1wdGluZyB0byBy ZW1vdmUgdGhlIGRpcmVjdG9yeSBpdHNlbGYsIHRoZW4gaXQgbXVzdCBhcnJhbmdlIHRvIGRvIHNv IGFuZCBjYW4ndCByZWFsbHkgYXNzdW1lIHRoYXQgZGlyZWN0b3J5IGNvb2tpZXMgY2FuIG5ldmVy IGJlY29tZSBpbnZhbGlkLiAgUGVyaGFwcyBpdCBjb3VsZCBvbiBhIHB1cmVseS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