History

vfs: add RENAME_WHITEOUT

This adds a new RENAME_WHITEOUT flag. This flag makes rename() create a whiteout of source. The whiteout creation is atomic relative to the rename.

Miklos Szeredi committed 12 years ago

Commit 0d7a8551 parent 787fb6b2 files · +7 −2Browse files

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

Unified · Split

include/uapi/linux/fs.h+1−0
@@ -37,6 +37,7 @@ · 36 unmodified lines
3737
3838 #define RENAME_NOREPLACE (1 << 0) /* Don't overwrite target */
3939 #define RENAME_EXCHANGE (1 << 1) /* Exchange source and dest */
40+#define RENAME_WHITEOUT (1 << 2) /* Whiteout source */
4041
4142 struct fstrim_range {
4243 __u64 start;