aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux
diff options
context:
space:
mode:
authorDenis Efremov <efremov@linux.com>2021-08-30 14:23:03 +0300
committerAleksandr Nogikh <wp32pw@gmail.com>2021-09-10 20:58:16 +0200
commit0767f1d406822ccf2719511f952707f2d1be9ef8 (patch)
treecb4bb5c3f5593c3ea1eeaa6628737df61beb8a02 /sys/linux
parent8a703291444d2233bd9179a4d1586111dab999b2 (diff)
sys/linux: update ext4 ioctls
Signed-off-by: Denis Efremov <efremov@linux.com>
Diffstat (limited to 'sys/linux')
-rw-r--r--sys/linux/fs_ioctl_ext4.txt7
-rw-r--r--sys/linux/fs_ioctl_ext4.txt.const11
2 files changed, 18 insertions, 0 deletions
diff --git a/sys/linux/fs_ioctl_ext4.txt b/sys/linux/fs_ioctl_ext4.txt
index 3357d27c8..972352bf6 100644
--- a/sys/linux/fs_ioctl_ext4.txt
+++ b/sys/linux/fs_ioctl_ext4.txt
@@ -12,6 +12,13 @@ ioctl$EXT4_IOC_ALLOC_DA_BLKS(fd fd, cmd const[EXT4_IOC_ALLOC_DA_BLKS])
ioctl$EXT4_IOC_MOVE_EXT(fd fd, cmd const[EXT4_IOC_MOVE_EXT], arg ptr[in, move_extent])
ioctl$EXT4_IOC_SWAP_BOOT(fd fd, cmd const[EXT4_IOC_SWAP_BOOT])
ioctl$EXT4_IOC_PRECACHE_EXTENTS(fd fd, cmd const[EXT4_IOC_PRECACHE_EXTENTS])
+ioctl$EXT4_IOC_CLEAR_ES_CACHE(fd fd, cmd const[EXT4_IOC_CLEAR_ES_CACHE])
+ioctl$EXT4_IOC_GETSTATE(fd fd, cmd const[EXT4_IOC_GETSTATE], arg ptr[out, flags[ext4_state_flags, int32]])
+ioctl$EXT4_IOC_GET_ES_CACHE(fd fd, cmd const[EXT4_IOC_GET_ES_CACHE], args ptr[inout, fiemap])
+ioctl$EXT4_IOC_CHECKPOINT(fd fd, cmd const[EXT4_IOC_CHECKPOINT], arg ptr[in, flags[ext4_checkpoint_flags, int32]])
+
+ext4_state_flags = EXT4_STATE_FLAG_EXT_PRECACHED, EXT4_STATE_FLAG_NEW, EXT4_STATE_FLAG_NEWENTRY, EXT4_STATE_FLAG_DA_ALLOC_CLOSE
+ext4_checkpoint_flags = EXT4_IOC_CHECKPOINT_FLAG_DISCARD, EXT4_IOC_CHECKPOINT_FLAG_ZEROOUT, EXT4_IOC_CHECKPOINT_FLAG_DRY_RUN
# EXT4_IOC_SHUTDOWN on root fs effectively brings the machine down in weird ways.
# Fortunately, the value does not conflict with any other ioctl commands for now.
diff --git a/sys/linux/fs_ioctl_ext4.txt.const b/sys/linux/fs_ioctl_ext4.txt.const
index d27bdd4ad..b13011bfa 100644
--- a/sys/linux/fs_ioctl_ext4.txt.const
+++ b/sys/linux/fs_ioctl_ext4.txt.const
@@ -1,6 +1,13 @@
# Code generated by syz-sysgen. DO NOT EDIT.
arches = 386, amd64, arm, arm64, mips64le, ppc64le, riscv64, s390x
EXT4_IOC_ALLOC_DA_BLKS = 26124, mips64le:ppc64le:536897036
+EXT4_IOC_CHECKPOINT = 1074030123, mips64le:ppc64le:2147771947
+EXT4_IOC_CHECKPOINT_FLAG_DISCARD = 1
+EXT4_IOC_CHECKPOINT_FLAG_DRY_RUN = 4
+EXT4_IOC_CHECKPOINT_FLAG_ZEROOUT = 2
+EXT4_IOC_CLEAR_ES_CACHE = 26152, mips64le:ppc64le:536897064
+EXT4_IOC_GETSTATE = 1074030121, mips64le:ppc64le:2147771945
+EXT4_IOC_GET_ES_CACHE = 3223348778
EXT4_IOC_GROUP_ADD = 1076389384, 386:1076127240, mips64le:ppc64le:2150131208
EXT4_IOC_GROUP_EXTEND = 1074292231, 386:arm:1074030087, mips64le:ppc64le:2148034055
EXT4_IOC_MIGRATE = 26121, mips64le:ppc64le:536897033
@@ -9,4 +16,8 @@ EXT4_IOC_PRECACHE_EXTENTS = 26130, mips64le:ppc64le:536897042
EXT4_IOC_RESIZE_FS = 1074292240, mips64le:ppc64le:2148034064
EXT4_IOC_SHUTDOWN = 2147768445, mips64le:ppc64le:1074026621
EXT4_IOC_SWAP_BOOT = 26129, mips64le:ppc64le:536897041
+EXT4_STATE_FLAG_DA_ALLOC_CLOSE = 8
+EXT4_STATE_FLAG_EXT_PRECACHED = 1
+EXT4_STATE_FLAG_NEW = 2
+EXT4_STATE_FLAG_NEWENTRY = 4
__NR_ioctl = 54, amd64:16, arm64:riscv64:29, mips64le:5015