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.
Showing the changes to include/uapi/linux (1 of 5 files). Show all
Unified · Split
| @@ -36,6 +36,7 @@ · 35 unmodified lines | ||
| 36 | 36 | #define SEEK_MAX SEEK_HOLE |
| 37 | 37 | |
| 38 | 38 | #define RENAME_NOREPLACE (1 << 0) /* Don't overwrite target */ |
| 39 | +#define RENAME_EXCHANGE (1 << 1) /* Exchange source and dest */ | |
| 39 | 40 | |
| 40 | 41 | struct fstrim_range { |
| 41 | 42 | __u64 start; |