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
36#define SEEK_MAX SEEK_HOLE36#define SEEK_MAX SEEK_HOLE
37 37
38#define RENAME_NOREPLACE (1 << 0) /* Don't overwrite target */38#define RENAME_NOREPLACE (1 << 0) /* Don't overwrite target */
39#define RENAME_EXCHANGE (1 << 1) /* Exchange source and dest */
39 40
40struct fstrim_range {41struct fstrim_range {
41 __u64 start;42 __u64 start;