summaryrefslogtreecommitdiffhomepage
path: root/pkg/abi/linux/fs.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-12-12 19:23:34 +0000
committergVisor bot <gvisor-bot@google.com>2019-12-12 19:23:34 +0000
commitc166476f2ec3b8bae5590c74e61865eb6aa5a408 (patch)
tree0b4283e5f160d16db63fbd1555e5c404ae012540 /pkg/abi/linux/fs.go
parentbbea3a5df7d107311788fa34a9e3e633473a3ddc (diff)
parent007707a0726602bc99fc0dccaf2994ad967b9d96 (diff)
Merge release-20191210.0-26-g007707a (automated)
Diffstat (limited to 'pkg/abi/linux/fs.go')
-rw-r--r--pkg/abi/linux/fs.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/abi/linux/fs.go b/pkg/abi/linux/fs.go
index b416e3472..2c652baa2 100644
--- a/pkg/abi/linux/fs.go
+++ b/pkg/abi/linux/fs.go
@@ -92,3 +92,10 @@ const (
SYNC_FILE_RANGE_WRITE = 2
SYNC_FILE_RANGE_WAIT_AFTER = 4
)
+
+// Flag argument to renameat2(2), from include/uapi/linux/fs.h.
+const (
+ RENAME_NOREPLACE = (1 << 0) // Don't overwrite target.
+ RENAME_EXCHANGE = (1 << 1) // Exchange src and dst.
+ RENAME_WHITEOUT = (1 << 2) // Whiteout src.
+)