[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160823144710.GB9798@kroah.com>
Date: Tue, 23 Aug 2016 10:47:10 -0400
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Miklos Szeredi <mszeredi@...hat.com>
Cc: linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
Al Viro <viro@...iv.linux.org.uk>,
Eric Van Hensbergen <ericvh@...il.com>,
David Howells <dhowells@...hat.com>,
Ilya Dryomov <idryomov@...il.com>,
Jan Harkes <jaharkes@...cmu.edu>,
Tyler Hicks <tyhicks@...onical.com>,
Boaz Harrosh <ooo@...ctrozaur.com>,
Oleg Drokin <oleg.drokin@...el.com>,
Trond Myklebust <trond.myklebust@...marydata.com>,
Mark Fasheh <mfasheh@...e.com>,
Mike Marshall <hubcap@...ibond.com>
Subject: Re: [PATCH 4/7] fs: make remaining filesystems use .rename2
On Tue, Aug 23, 2016 at 04:05:29PM +0200, Miklos Szeredi wrote:
> This is trivial to do:
>
> - add flags argument to foo_rename()
> - check if flags is zero
> - assign foo_rename() to .rename2 instead of .rename
>
> This doesn't mean it's impossible to support RENAME_NOREPLACE for these
> filesystems, but it is not trivial, like for local filesystems.
> RENAME_NOREPLACE must guarantee atomicity (i.e. it shouldn't be possible
> for a file to be created on one host while it is overwritten by rename on
> another host).
>
> Filesystems converted:
>
> 9p, afs, ceph, coda, ecryptfs, exofs, kernfs, lustre, ncpfs, nfs, ocfs2,
> orangefs.
>
> After this, we can get rid of the duplicate interfaces for rename.
>
> Signed-off-by: Miklos Szeredi <mszeredi@...hat.com>
> Cc: Eric Van Hensbergen <ericvh@...il.com>
> Cc: David Howells <dhowells@...hat.com>
> Cc: Ilya Dryomov <idryomov@...il.com>
> Cc: Jan Harkes <jaharkes@...cmu.edu>
> Cc: Tyler Hicks <tyhicks@...onical.com>
> Cc: Boaz Harrosh <ooo@...ctrozaur.com>
> Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
> Cc: Oleg Drokin <oleg.drokin@...el.com>
> Cc: Trond Myklebust <trond.myklebust@...marydata.com>
> Cc: Mark Fasheh <mfasheh@...e.com>
> Cc: Mike Marshall <hubcap@...ibond.com>
Acked-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Powered by blists - more mailing lists