vfs: add cross-rename
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 <mszeredi@suse.cz> Reviewed-by:
Jan Kara <jack@suse.cz> Reviewed-by:
J. Bruce Fields <bfields@redhat.com>
Showing
- fs/dcache.c 41 additions, 9 deletionsfs/dcache.c
- fs/namei.c 72 additions, 32 deletionsfs/namei.c
- include/linux/dcache.h 1 addition, 0 deletionsinclude/linux/dcache.h
- include/uapi/linux/fs.h 1 addition, 0 deletionsinclude/uapi/linux/fs.h
- security/security.c 16 additions, 0 deletionssecurity/security.c
Loading
Please register or sign in to comment