aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux
diff options
context:
space:
mode:
authorDenis Efremov <denis.e.efremov@oracle.com>2022-10-03 13:02:55 +0400
committerDmitry Vyukov <dvyukov@google.com>2022-10-10 09:11:07 +0200
commit5bcf0c31a14edd29532df8af88f246446873fe93 (patch)
tree971304cc1a824308e2c4f0596ba6a0fdd8a61e9e /sys/linux
parentaea5da898f473385f3b66c94f8aa49ca9a1c9744 (diff)
sys/linux: add EXT4_IOC_GETFSUUID/EXT4_IOC_SETFSUUID
Update ext4 ioctls. Add EXT4_IOC_GETFSUUID/EXT4_IOC_SETFSUUID ioctls which were added upstream in d95efb14c0b8 ("ext4: add ioctls to get/set the ext4 superblock uuid"). In the current code `fsu_flags` is always 0 and `fsu_len` is either 0 or UUID_SIZE. Signed-off-by: Denis Efremov <denis.e.efremov@oracle.com>
Diffstat (limited to 'sys/linux')
-rw-r--r--sys/linux/fs_ioctl_ext4.txt10
-rw-r--r--sys/linux/fs_ioctl_ext4.txt.const3
2 files changed, 13 insertions, 0 deletions
diff --git a/sys/linux/fs_ioctl_ext4.txt b/sys/linux/fs_ioctl_ext4.txt
index 972352bf6..7993d7cf7 100644
--- a/sys/linux/fs_ioctl_ext4.txt
+++ b/sys/linux/fs_ioctl_ext4.txt
@@ -16,6 +16,8 @@ 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]])
+ioctl$EXT4_IOC_GETFSUUID(fd fd, cmd const[EXT4_IOC_GETFSUUID], arg ptr[out, fsuuid])
+ioctl$EXT4_IOC_SETFSUUID(fd fd, cmd const[EXT4_IOC_SETFSUUID], arg ptr[in, fsuuid])
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
@@ -48,3 +50,11 @@ move_extent {
len int64
moved_len int64
}
+
+fsuuid {
+ fsu_len flags[ext4_uuid_len, int32]
+ fsu_flags const[0, int32]
+ fsu_uuid array[int8, UUID_SIZE]
+}
+
+ext4_uuid_len = 0, UUID_SIZE
diff --git a/sys/linux/fs_ioctl_ext4.txt.const b/sys/linux/fs_ioctl_ext4.txt.const
index b13011bfa..04aea5132 100644
--- a/sys/linux/fs_ioctl_ext4.txt.const
+++ b/sys/linux/fs_ioctl_ext4.txt.const
@@ -6,6 +6,7 @@ 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_GETFSUUID = 2148034092, mips64le:ppc64le:1074292268
EXT4_IOC_GETSTATE = 1074030121, mips64le:ppc64le:2147771945
EXT4_IOC_GET_ES_CACHE = 3223348778
EXT4_IOC_GROUP_ADD = 1076389384, 386:1076127240, mips64le:ppc64le:2150131208
@@ -14,10 +15,12 @@ EXT4_IOC_MIGRATE = 26121, mips64le:ppc64le:536897033
EXT4_IOC_MOVE_EXT = 3223873039
EXT4_IOC_PRECACHE_EXTENTS = 26130, mips64le:ppc64le:536897042
EXT4_IOC_RESIZE_FS = 1074292240, mips64le:ppc64le:2148034064
+EXT4_IOC_SETFSUUID = 1074292268, mips64le:ppc64le:2148034092
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
+UUID_SIZE = 16
__NR_ioctl = 54, amd64:16, arm64:riscv64:29, mips64le:5015