Re: [PATCH 2/7] fs: support RENAME_NOREPLACE for local filesystems

2016-09-08 Thread Jan Kara
On Tue 23-08-16 16:05:27, Miklos Szeredi wrote: > This is trivial to do: > > - add flags argument to foo_rename() > - check if flags doesn't have any other than RENAME_NOREPLACE > - assign foo_rename() to .rename2 instead of .rename > > Filesystems converted: > > affs, bfs, ext2, hfs, hfsplus

Re: [PATCH 2/7] fs: support RENAME_NOREPLACE for local filesystems

2016-08-25 Thread Bob Copeland
On Tue, Aug 23, 2016 at 04:05:27PM +0200, Miklos Szeredi wrote: omfs/dir.c b/fs/omfs/dir.c > index c8cbf3b60645..417511bbe362 100644 > --- a/fs/omfs/dir.c > +++ b/fs/omfs/dir.c > @@ -371,12 +371,16 @@ static bool omfs_fill_chain(struct inode *dir, struct > dir_context *ctx, > } > > static int

Re: [PATCH 2/7] fs: support RENAME_NOREPLACE for local filesystems

2016-08-23 Thread Richard Weinberger
Miklos, On 23.08.2016 16:05, Miklos Szeredi wrote: > diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c > index 4b86d3a738e1..23d1ebabc688 100644 > --- a/fs/ubifs/dir.c > +++ b/fs/ubifs/dir.c > @@ -966,7 +966,8 @@ static void unlock_3_inodes(struct inode *inode1, struct > inode *inode2, > } > > sta

[PATCH 2/7] fs: support RENAME_NOREPLACE for local filesystems

2016-08-23 Thread Miklos Szeredi
This is trivial to do: - add flags argument to foo_rename() - check if flags doesn't have any other than RENAME_NOREPLACE - assign foo_rename() to .rename2 instead of .rename Filesystems converted: affs, bfs, ext2, hfs, hfsplus, jffs2, jfs, logfs, minix, msdos, nilfs2, omfs, reiserfs, sysvfs,