History

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.

Miklos Szeredi committed 12 years ago

Commit da1ce061 parent 4fd699a5 files · +131 −41Browse files

Showing the changes to include/uapi/linux (1 of 5 files). Show all

Unified · Split

include/uapi/linux/fs.h+1−0
@@ -36,6 +36,7 @@ · 35 unmodified lines
3636 #define SEEK_MAX SEEK_HOLE
3737
3838 #define RENAME_NOREPLACE (1 << 0) /* Don't overwrite target */
39+#define RENAME_EXCHANGE (1 << 1) /* Exchange source and dest */
3940
4041 struct fstrim_range {
4142 __u64 start;