diff options
| author | Miklos Szeredi <mszeredi@suse.cz> | 2014-04-01 11:08:43 -0400 |
|---|---|---|
| committer | Miklos Szeredi <mszeredi@suse.cz> | 2014-04-01 11:08:43 -0400 |
| commit | da1ce0670c14d8380e423a3239e562a1dc15fa9e (patch) | |
| tree | 146ea4ac0fbf5550db8e65a59ddc7c668b68db76 /include/linux | |
| parent | 4fd699ae3fbca2ac760137e1d26f98a105f59f05 (diff) | |
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>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/dcache.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/dcache.h b/include/linux/dcache.h index 3b50cac7ccb3..3b9bfdb83ba6 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h | |||
| @@ -308,6 +308,7 @@ extern void dentry_update_name_case(struct dentry *, struct qstr *); | |||
| 308 | 308 | ||
| 309 | /* used for rename() and baskets */ | 309 | /* used for rename() and baskets */ |
| 310 | extern void d_move(struct dentry *, struct dentry *); | 310 | extern void d_move(struct dentry *, struct dentry *); |
| 311 | extern void d_exchange(struct dentry *, struct dentry *); | ||
| 311 | extern struct dentry *d_ancestor(struct dentry *, struct dentry *); | 312 | extern struct dentry *d_ancestor(struct dentry *, struct dentry *); |
| 312 | 313 | ||
| 313 | /* appendix may either be NULL or be used for transname suffixes */ | 314 | /* appendix may either be NULL or be used for transname suffixes */ |
