linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Cláudio Martins" <ctpm-s6mEjpzMaPUVhHzd4jOs4w@public.gmane.org>
To: Jeff Layton <jlayton@redhat.com>
Cc: Ian Munsie <imunsie-8fk3Idey6ehBDgjK7y7TUQ@public.gmane.org>,
	Trond Myklebust <trond.myklebust@netapp.com>,
	linux-nfs <linux-nfs@vger.kernel.org>,
	Scott Romanowski <romansc@us.ibm.com>,
	Benjamin Herrenschmidt <benh@kernel.crashing.org>
Subject: Re: NFS sillyrename side effect
Date: Mon, 18 Oct 2010 16:44:14 +0100	[thread overview]
Message-ID: <20101018164414.ec860360.ctpm@ist.utl.pt> (raw)
In-Reply-To: <20101018110138.5f5001eb-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>


On Mon, 18 Oct 2010 11:01:38 -0400 Jeff Layton <jlayton@redhat.com> wro=
te:
> On Mon, 18 Oct 2010 15:53:44 +0100
> Cl=C3=A1udio Martins <ctpm-s6mEjpzMaPUVhHzd4jOs4w@public.gmane.org> wrote:
>=20
> > >=20
> > >  So, theoretically, could one modify the code to selectively disa=
ble
> > > silly rename on a client, when it knows it is talking v4 with the
> > > server?
> > >=20
> >=20
> >  BTW, to clarify, I'm assuming a scenario where the server is
> > configured to talk v4 only, which I suspect should be common, at le=
ast
> > when you're relying on v4 kerberos security.
> >=20
>=20
> Sadly, no...
>=20
> The server does generally hold the file open as long as the client ha=
s
> the file open. So, you could delete the file while nfsd has it open a=
nd
> everything would probably still work.
>=20
> Suppose though that the server crashes and reboots. When it comes bac=
k
> up, fsck figures out that the file has been unlinked and frees the
> blocks on the disk. Now you can't reclaim the state on the open file.
>=20
> We're pretty much stuck with silly-renaming even for v4.
>=20

 Jeff,

 Thank you for the explanation, you make a good point.

Best regards

Cl=C3=A1udio


  parent reply	other threads:[~2010-10-18 15:44 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-18  1:20 NFS sillyrename side effect Ian Munsie
2010-10-18 14:10 ` Jeff Layton
2010-10-18 14:48   ` Cláudio Martins
2010-10-18 14:53     ` Cláudio Martins
2010-10-18 15:01       ` Jeff Layton
     [not found]         ` <20101018110138.5f5001eb-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2010-10-18 15:44           ` Cláudio Martins [this message]
2010-10-18 16:21             ` Lyle Seaman
2010-10-18 17:00               ` Cláudio Martins
2010-10-18 17:10         ` J. Bruce Fields
2010-10-19  6:40           ` Benny Halevy
2010-10-19 13:32             ` Trond Myklebust
2010-10-21 17:50               ` Benny Halevy
2010-10-21 18:01                 ` J. Bruce Fields
2010-10-21 18:28                 ` Trond Myklebust
     [not found]   ` <20101018101059.574b715a-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2010-10-19  5:18     ` Ian Munsie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101018164414.ec860360.ctpm@ist.utl.pt \
    --to=ctpm-s6mejpzmapuvhhzd4jos4w@public.gmane.org \
    --cc=benh@kernel.crashing.org \
    --cc=imunsie-8fk3Idey6ehBDgjK7y7TUQ@public.gmane.org \
    --cc=jlayton@redhat.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=romansc@us.ibm.com \
    --cc=trond.myklebust@netapp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).