From owner-freebsd-fs@freebsd.org Mon Dec 12 06:15:16 2016 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7DDFBC72AA0 for ; Mon, 12 Dec 2016 06:15:16 +0000 (UTC) (envelope-from 01000158f1abbd72-01e38784-8ba0-4c71-9689-76dac8fece0a-000000@amazonses.com) Received: from a8-26.smtp-out.amazonses.com (a8-26.smtp-out.amazonses.com [54.240.8.26]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 442681E2C for ; Mon, 12 Dec 2016 06:15:15 +0000 (UTC) (envelope-from 01000158f1abbd72-01e38784-8ba0-4c71-9689-76dac8fece0a-000000@amazonses.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=vnqrkfnvu6csdl6mwgk5t6ix3nnepx57; d=tarsnap.com; t=1481523314; h=Subject:To:References:Cc:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=ptG6PjmD6wNNnBAktfUkVTY2G6JDKVxsrFsOGXzzynE=; b=bgdDydnAW76G0UzGSHCcWttsPey9rtRSHvbtXkI9xWTNlW7ghsO6Mso6Do9wCuVw F1wZliRUiGJjXvneAuQ8V0SVqqok9++epNTFm5FFz0mqcwAU5CXphHKpBPOmBvc7T5v Um7WwJ3YBfypSv2nsQ9EYgAua3m9U0POCFmvj0BU= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1481523314; h=Subject:To:References:Cc:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding:Feedback-ID; bh=ptG6PjmD6wNNnBAktfUkVTY2G6JDKVxsrFsOGXzzynE=; b=IeZrDySAvEaoadDNILi/QHd5w/xxeMppw6ebRvkATWRXsj7vPxLqhB6Iumk+S+wx HDCqV37ieWEIv3kbinJK1K0dxf8mEd4SIJxcLBvBJen5J7VuyzGnZHEAOZnQTPOLA+f V8/erSSWIPc6mAxF/hw7rdVMYUPEW3mxTA3tvYSc= Subject: Re: ESTALE after cwd deleted by same NFS client To: Benjamin Kaduk References: <01000158f023675b-41b35a73-4428-4937-853b-62db4fb9b984-000000@email.amazonses.com> <20161212054233.GU8460@kduck.kaduk.org> Cc: "freebsd-fs@freebsd.org" From: Colin Percival Message-ID: <01000158f1abbd72-01e38784-8ba0-4c71-9689-76dac8fece0a-000000@email.amazonses.com> Date: Mon, 12 Dec 2016 06:15:14 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0 MIME-Version: 1.0 In-Reply-To: <20161212054233.GU8460@kduck.kaduk.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SES-Outgoing: 2016.12.12-54.240.8.26 Feedback-ID: 1.us-east-1.Lv9FVjaNvvR5llaqfLoOVbo2VxOELl7cjN0AOyXnPlk=:AmazonSES X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2016 06:15:16 -0000 On 12/11/16 21:42, Benjamin Kaduk wrote: > On Sun, Dec 11, 2016 at 11:06:42PM +0000, Colin Percival wrote: >> If I run the following with /nfs/ being an NFS mount: >> # mkdir /nfs/foo >> # touch /nfs/foo/bar >> # cd /nfs/foo >> # rm -r /nfs/foo >> # rm bar >> >> Then the final 'rm bar' fails with 'Stale NFS file handle'. > > Amusingly, this just came up recently: > > https://www.ietf.org/mail-archive/web/nfsv4/current/msg15115.html (et seq) > > But I guess you did not specify which version of the NFS protocol you were > using... I'm using NFSv4.1, but this isn't quite the same... that link refers to having one NFS client remove a file out from underneath a different client, while I'm talking about having an NFS client remove a file from underneath *itself*. -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid