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
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#define RENAME_EXCHANGE (1 << 1) /* Exchange source and dest */
40#define RENAME_WHITEOUT (1 << 2) /* Whiteout source */
40 41
41struct fstrim_range {42struct fstrim_range {
42 __u64 start;43 __u64 start;