Re: [PATCH 07/11] vfs: add cross-rename

2014-01-14 Thread Jan Kara
On Tue 14-01-14 11:31:59, Miklos Szeredi wrote: > On Mon, Jan 13, 2014 at 08:52:27AM +0100, Jan Kara wrote: > > On Wed 08-01-14 23:10:11, Miklos Szeredi wrote: > > > > + if (max_links && new_dir != old_dir) { > > > error = -EMLINK; > > > - if (max_links && !target && new_dir != o

Re: [PATCH 07/11] vfs: add cross-rename

2014-01-14 Thread Miklos Szeredi
On Mon, Jan 13, 2014 at 08:52:27AM +0100, Jan Kara wrote: > On Wed 08-01-14 23:10:11, Miklos Szeredi wrote: > > + if (max_links && new_dir != old_dir) { > > error = -EMLINK; > > - if (max_links && !target && new_dir != old_dir && > > - new_dir->i_nlink >= max_

Re: [PATCH 07/11] vfs: add cross-rename

2014-01-12 Thread Jan Kara
On Wed 08-01-14 23:10:11, Miklos Szeredi wrote: > From: Miklos Szeredi > > If flags contain RENAME_EXCHANGE then exchange source and destination files. > There's no restriction on the type of the files; e.g. a directory can be > exchanged with a symlink. > > Signed-off-by: Miklos Szeredi > ---

[PATCH 07/11] vfs: add cross-rename

2014-01-08 Thread Miklos Szeredi
From: Miklos Szeredi If flags contain RENAME_EXCHANGE then exchange source and destination files. There's no restriction on the type of the files; e.g. a directory can be exchanged with a symlink. Signed-off-by: Miklos Szeredi --- fs/dcache.c | 46 + fs/namei.c

Re: [PATCH 07/11] vfs: add cross-rename

2013-11-20 Thread Andy Lutomirski
On Wed, Nov 20, 2013 at 8:44 AM, Miklos Szeredi wrote: > On Wed, Nov 20, 2013 at 5:39 PM, Andy Lutomirski wrote: >> On Wed, Nov 20, 2013 at 5:01 AM, Miklos Szeredi wrote: >>> From: Miklos Szeredi >>> >>> If flags contain RENAME_EXCHANGE then exchange source and destination files. >>> There's no

Re: [PATCH 07/11] vfs: add cross-rename

2013-11-20 Thread Andy Lutomirski
On Wed, Nov 20, 2013 at 5:01 AM, Miklos Szeredi wrote: > From: Miklos Szeredi > > If flags contain RENAME_EXCHANGE then exchange source and destination files. > There's no restriction on the type of the files; e.g. a directory can be > exchanged with a symlink. What happens if both RENAME_EXCHAN

[PATCH 07/11] vfs: add cross-rename

2013-11-20 Thread Miklos Szeredi
From: Miklos Szeredi If flags contain RENAME_EXCHANGE then exchange source and destination files. There's no restriction on the type of the files; e.g. a directory can be exchanged with a symlink. Signed-off-by: Miklos Szeredi --- fs/dcache.c | 46 + fs/namei.c