aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux
diff options
context:
space:
mode:
authorDenis Efremov <efremov@linux.com>2020-07-21 16:03:05 +0300
committerEric Biggers <ebiggers3@gmail.com>2020-07-22 08:49:14 -0700
commit38237e24ca3cd282d51266f5300d69687f5a496e (patch)
tree26e89080d4a5ba6190eb3f180800164b6a424835 /sys/linux
parentdb2522a1a7fe9a017dc41589ab30f98f6face5ba (diff)
sys/linux: make fs flags explicit in ioctl$FS_IOC_SETFLAGS
Make fs flags explicit in FS_IOC_SETFLAGS, FS_IOC_GETFLAGS ioctls. Signed-off-by: Denis Efremov <efremov@linux.com>
Diffstat (limited to 'sys/linux')
-rw-r--r--sys/linux/fs_ioctl.txt7
-rw-r--r--sys/linux/fs_ioctl_386.const30
-rw-r--r--sys/linux/fs_ioctl_amd64.const30
-rw-r--r--sys/linux/fs_ioctl_arm.const30
-rw-r--r--sys/linux/fs_ioctl_arm64.const30
-rw-r--r--sys/linux/fs_ioctl_mips64le.const30
-rw-r--r--sys/linux/fs_ioctl_ppc64le.const30
-rw-r--r--sys/linux/fs_ioctl_riscv64.const30
-rw-r--r--sys/linux/fs_ioctl_s390x.const30
9 files changed, 245 insertions, 2 deletions
diff --git a/sys/linux/fs_ioctl.txt b/sys/linux/fs_ioctl.txt
index 0d1999246..54b367232 100644
--- a/sys/linux/fs_ioctl.txt
+++ b/sys/linux/fs_ioctl.txt
@@ -13,8 +13,9 @@ ioctl$FICLONE(fd fd, cmd const[FICLONE], arg fd)
ioctl$FICLONERANGE(fd fd, cmd const[FICLONERANGE], arg ptr[in, file_clone_range])
ioctl$FIDEDUPERANGE(fd fd, cmd const[FIDEDUPERANGE], arg ptr[in, file_dedupe_range])
-ioctl$FS_IOC_GETFLAGS(fd fd, cmd const[FS_IOC_GETFLAGS], arg ptr[out, int32])
-ioctl$FS_IOC_SETFLAGS(fd fd, cmd const[FS_IOC_SETFLAGS], arg ptr[in, int32])
+ioctl$FS_IOC_GETFLAGS(fd fd, cmd const[FS_IOC_GETFLAGS], arg ptr[out, flags[fs_flags, int32]])
+ioctl$FS_IOC_SETFLAGS(fd fd, cmd const[FS_IOC_SETFLAGS], arg ptr[in, flags[fs_flags, int32]])
+
ioctl$FS_IOC_GETVERSION(fd fd, cmd const[FS_IOC_GETVERSION], arg ptr[out, intptr])
ioctl$FS_IOC_SETVERSION(fd fd, cmd const[FS_IOC_SETVERSION], arg ptr[in, intptr])
ioctl$FS_IOC_FIEMAP(fd fd, cmd const[FS_IOC_FIEMAP], v ptr[in, fiemap])
@@ -112,4 +113,6 @@ fsmap {
fmr_reserved array[const[0, int64], 3]
}
+fs_flags = FS_SECRM_FL, FS_UNRM_FL, FS_COMPR_FL, FS_SYNC_FL, FS_IMMUTABLE_FL, FS_APPEND_FL, FS_NODUMP_FL, FS_NOATIME_FL, FS_DIRTY_FL, FS_COMPRBLK_FL, FS_NOCOMP_FL, FS_ENCRYPT_FL, FS_BTREE_FL, FS_INDEX_FL, FS_IMAGIC_FL, FS_JOURNAL_DATA_FL, FS_NOTAIL_FL, FS_DIRSYNC_FL, FS_TOPDIR_FL, FS_HUGE_FILE_FL, FS_EXTENT_FL, FS_VERITY_FL, FS_EA_INODE_FL, FS_EOFBLOCKS_FL, FS_NOCOW_FL, FS_DAX_FL, FS_INLINE_DATA_FL, FS_PROJINHERIT_FL, FS_CASEFOLD_FL, FS_RESERVED_FL
+
define FSMAP_SIZE sizeof(struct fsmap)
diff --git a/sys/linux/fs_ioctl_386.const b/sys/linux/fs_ioctl_386.const
index 89676e29f..fd008b67e 100644
--- a/sys/linux/fs_ioctl_386.const
+++ b/sys/linux/fs_ioctl_386.const
@@ -7,6 +7,23 @@ FIGETBSZ = 2
FITRIM = 3222820985
FSLABEL_MAX = 256
FSMAP_SIZE = 64
+FS_APPEND_FL = 32
+FS_BTREE_FL = 4096
+FS_CASEFOLD_FL = 1073741824
+FS_COMPRBLK_FL = 512
+FS_COMPR_FL = 4
+FS_DAX_FL = 33554432
+FS_DIRSYNC_FL = 65536
+FS_DIRTY_FL = 256
+FS_EA_INODE_FL = 2097152
+FS_ENCRYPT_FL = 2048
+FS_EOFBLOCKS_FL = 4194304
+FS_EXTENT_FL = 524288
+FS_HUGE_FILE_FL = 262144
+FS_IMAGIC_FL = 8192
+FS_IMMUTABLE_FL = 16
+FS_INDEX_FL = 4096
+FS_INLINE_DATA_FL = 268435456
FS_IOC_FIEMAP = 3223348747
FS_IOC_FSGETXATTR = 2149341215
FS_IOC_FSSETXATTR = 1075599392
@@ -18,4 +35,17 @@ FS_IOC_RESVSP = 1076647976
FS_IOC_SETFLAGS = 1074030082
FS_IOC_SETFSLABEL = 1090556978
FS_IOC_SETVERSION = 1074034178
+FS_JOURNAL_DATA_FL = 16384
+FS_NOATIME_FL = 128
+FS_NOCOMP_FL = 1024
+FS_NOCOW_FL = 8388608
+FS_NODUMP_FL = 64
+FS_NOTAIL_FL = 32768
+FS_PROJINHERIT_FL = 536870912
+FS_RESERVED_FL = 2147483648
+FS_SECRM_FL = 1
+FS_SYNC_FL = 8
+FS_TOPDIR_FL = 131072
+FS_UNRM_FL = 2
+FS_VERITY_FL = 1048576
__NR_ioctl = 54
diff --git a/sys/linux/fs_ioctl_amd64.const b/sys/linux/fs_ioctl_amd64.const
index 089a22d33..4946f2bbc 100644
--- a/sys/linux/fs_ioctl_amd64.const
+++ b/sys/linux/fs_ioctl_amd64.const
@@ -7,6 +7,23 @@ FIGETBSZ = 2
FITRIM = 3222820985
FSLABEL_MAX = 256
FSMAP_SIZE = 64
+FS_APPEND_FL = 32
+FS_BTREE_FL = 4096
+FS_CASEFOLD_FL = 1073741824
+FS_COMPRBLK_FL = 512
+FS_COMPR_FL = 4
+FS_DAX_FL = 33554432
+FS_DIRSYNC_FL = 65536
+FS_DIRTY_FL = 256
+FS_EA_INODE_FL = 2097152
+FS_ENCRYPT_FL = 2048
+FS_EOFBLOCKS_FL = 4194304
+FS_EXTENT_FL = 524288
+FS_HUGE_FILE_FL = 262144
+FS_IMAGIC_FL = 8192
+FS_IMMUTABLE_FL = 16
+FS_INDEX_FL = 4096
+FS_INLINE_DATA_FL = 268435456
FS_IOC_FIEMAP = 3223348747
FS_IOC_FSGETXATTR = 2149341215
FS_IOC_FSSETXATTR = 1075599392
@@ -18,4 +35,17 @@ FS_IOC_RESVSP = 1076910120
FS_IOC_SETFLAGS = 1074292226
FS_IOC_SETFSLABEL = 1090556978
FS_IOC_SETVERSION = 1074296322
+FS_JOURNAL_DATA_FL = 16384
+FS_NOATIME_FL = 128
+FS_NOCOMP_FL = 1024
+FS_NOCOW_FL = 8388608
+FS_NODUMP_FL = 64
+FS_NOTAIL_FL = 32768
+FS_PROJINHERIT_FL = 536870912
+FS_RESERVED_FL = 2147483648
+FS_SECRM_FL = 1
+FS_SYNC_FL = 8
+FS_TOPDIR_FL = 131072
+FS_UNRM_FL = 2
+FS_VERITY_FL = 1048576
__NR_ioctl = 16
diff --git a/sys/linux/fs_ioctl_arm.const b/sys/linux/fs_ioctl_arm.const
index 5607fef4a..d04cdf155 100644
--- a/sys/linux/fs_ioctl_arm.const
+++ b/sys/linux/fs_ioctl_arm.const
@@ -7,6 +7,23 @@ FIGETBSZ = 2
FITRIM = 3222820985
FSLABEL_MAX = 256
FSMAP_SIZE = 64
+FS_APPEND_FL = 32
+FS_BTREE_FL = 4096
+FS_CASEFOLD_FL = 1073741824
+FS_COMPRBLK_FL = 512
+FS_COMPR_FL = 4
+FS_DAX_FL = 33554432
+FS_DIRSYNC_FL = 65536
+FS_DIRTY_FL = 256
+FS_EA_INODE_FL = 2097152
+FS_ENCRYPT_FL = 2048
+FS_EOFBLOCKS_FL = 4194304
+FS_EXTENT_FL = 524288
+FS_HUGE_FILE_FL = 262144
+FS_IMAGIC_FL = 8192
+FS_IMMUTABLE_FL = 16
+FS_INDEX_FL = 4096
+FS_INLINE_DATA_FL = 268435456
FS_IOC_FIEMAP = 3223348747
FS_IOC_FSGETXATTR = 2149341215
FS_IOC_FSSETXATTR = 1075599392
@@ -18,4 +35,17 @@ FS_IOC_RESVSP = 1076910120
FS_IOC_SETFLAGS = 1074030082
FS_IOC_SETFSLABEL = 1090556978
FS_IOC_SETVERSION = 1074034178
+FS_JOURNAL_DATA_FL = 16384
+FS_NOATIME_FL = 128
+FS_NOCOMP_FL = 1024
+FS_NOCOW_FL = 8388608
+FS_NODUMP_FL = 64
+FS_NOTAIL_FL = 32768
+FS_PROJINHERIT_FL = 536870912
+FS_RESERVED_FL = 2147483648
+FS_SECRM_FL = 1
+FS_SYNC_FL = 8
+FS_TOPDIR_FL = 131072
+FS_UNRM_FL = 2
+FS_VERITY_FL = 1048576
__NR_ioctl = 54
diff --git a/sys/linux/fs_ioctl_arm64.const b/sys/linux/fs_ioctl_arm64.const
index d000f9b49..a35dc03ab 100644
--- a/sys/linux/fs_ioctl_arm64.const
+++ b/sys/linux/fs_ioctl_arm64.const
@@ -7,6 +7,23 @@ FIGETBSZ = 2
FITRIM = 3222820985
FSLABEL_MAX = 256
FSMAP_SIZE = 64
+FS_APPEND_FL = 32
+FS_BTREE_FL = 4096
+FS_CASEFOLD_FL = 1073741824
+FS_COMPRBLK_FL = 512
+FS_COMPR_FL = 4
+FS_DAX_FL = 33554432
+FS_DIRSYNC_FL = 65536
+FS_DIRTY_FL = 256
+FS_EA_INODE_FL = 2097152
+FS_ENCRYPT_FL = 2048
+FS_EOFBLOCKS_FL = 4194304
+FS_EXTENT_FL = 524288
+FS_HUGE_FILE_FL = 262144
+FS_IMAGIC_FL = 8192
+FS_IMMUTABLE_FL = 16
+FS_INDEX_FL = 4096
+FS_INLINE_DATA_FL = 268435456
FS_IOC_FIEMAP = 3223348747
FS_IOC_FSGETXATTR = 2149341215
FS_IOC_FSSETXATTR = 1075599392
@@ -18,4 +35,17 @@ FS_IOC_RESVSP = 1076910120
FS_IOC_SETFLAGS = 1074292226
FS_IOC_SETFSLABEL = 1090556978
FS_IOC_SETVERSION = 1074296322
+FS_JOURNAL_DATA_FL = 16384
+FS_NOATIME_FL = 128
+FS_NOCOMP_FL = 1024
+FS_NOCOW_FL = 8388608
+FS_NODUMP_FL = 64
+FS_NOTAIL_FL = 32768
+FS_PROJINHERIT_FL = 536870912
+FS_RESERVED_FL = 2147483648
+FS_SECRM_FL = 1
+FS_SYNC_FL = 8
+FS_TOPDIR_FL = 131072
+FS_UNRM_FL = 2
+FS_VERITY_FL = 1048576
__NR_ioctl = 29
diff --git a/sys/linux/fs_ioctl_mips64le.const b/sys/linux/fs_ioctl_mips64le.const
index 99d97e637..7a983a0ff 100644
--- a/sys/linux/fs_ioctl_mips64le.const
+++ b/sys/linux/fs_ioctl_mips64le.const
@@ -7,6 +7,23 @@ FIGETBSZ = 536870914
FITRIM = 3222820985
FSLABEL_MAX = 256
FSMAP_SIZE = 64
+FS_APPEND_FL = 32
+FS_BTREE_FL = 4096
+FS_CASEFOLD_FL = 1073741824
+FS_COMPRBLK_FL = 512
+FS_COMPR_FL = 4
+FS_DAX_FL = 33554432
+FS_DIRSYNC_FL = 65536
+FS_DIRTY_FL = 256
+FS_EA_INODE_FL = 2097152
+FS_ENCRYPT_FL = 2048
+FS_EOFBLOCKS_FL = 4194304
+FS_EXTENT_FL = 524288
+FS_HUGE_FILE_FL = 262144
+FS_IMAGIC_FL = 8192
+FS_IMMUTABLE_FL = 16
+FS_INDEX_FL = 4096
+FS_INLINE_DATA_FL = 268435456
FS_IOC_FIEMAP = 3223348747
FS_IOC_FSGETXATTR = 1075599391
FS_IOC_FSSETXATTR = 2149341216
@@ -18,4 +35,17 @@ FS_IOC_RESVSP = 2150651944
FS_IOC_SETFLAGS = 2148034050
FS_IOC_SETFSLABEL = 2164298802
FS_IOC_SETVERSION = 2148038146
+FS_JOURNAL_DATA_FL = 16384
+FS_NOATIME_FL = 128
+FS_NOCOMP_FL = 1024
+FS_NOCOW_FL = 8388608
+FS_NODUMP_FL = 64
+FS_NOTAIL_FL = 32768
+FS_PROJINHERIT_FL = 536870912
+FS_RESERVED_FL = 2147483648
+FS_SECRM_FL = 1
+FS_SYNC_FL = 8
+FS_TOPDIR_FL = 131072
+FS_UNRM_FL = 2
+FS_VERITY_FL = 1048576
__NR_ioctl = 5015
diff --git a/sys/linux/fs_ioctl_ppc64le.const b/sys/linux/fs_ioctl_ppc64le.const
index 22461ae64..47c8e6384 100644
--- a/sys/linux/fs_ioctl_ppc64le.const
+++ b/sys/linux/fs_ioctl_ppc64le.const
@@ -7,6 +7,23 @@ FIGETBSZ = 536870914
FITRIM = 3222820985
FSLABEL_MAX = 256
FSMAP_SIZE = 64
+FS_APPEND_FL = 32
+FS_BTREE_FL = 4096
+FS_CASEFOLD_FL = 1073741824
+FS_COMPRBLK_FL = 512
+FS_COMPR_FL = 4
+FS_DAX_FL = 33554432
+FS_DIRSYNC_FL = 65536
+FS_DIRTY_FL = 256
+FS_EA_INODE_FL = 2097152
+FS_ENCRYPT_FL = 2048
+FS_EOFBLOCKS_FL = 4194304
+FS_EXTENT_FL = 524288
+FS_HUGE_FILE_FL = 262144
+FS_IMAGIC_FL = 8192
+FS_IMMUTABLE_FL = 16
+FS_INDEX_FL = 4096
+FS_INLINE_DATA_FL = 268435456
FS_IOC_FIEMAP = 3223348747
FS_IOC_FSGETXATTR = 1075599391
FS_IOC_FSSETXATTR = 2149341216
@@ -18,4 +35,17 @@ FS_IOC_RESVSP = 2150651944
FS_IOC_SETFLAGS = 2148034050
FS_IOC_SETFSLABEL = 2164298802
FS_IOC_SETVERSION = 2148038146
+FS_JOURNAL_DATA_FL = 16384
+FS_NOATIME_FL = 128
+FS_NOCOMP_FL = 1024
+FS_NOCOW_FL = 8388608
+FS_NODUMP_FL = 64
+FS_NOTAIL_FL = 32768
+FS_PROJINHERIT_FL = 536870912
+FS_RESERVED_FL = 2147483648
+FS_SECRM_FL = 1
+FS_SYNC_FL = 8
+FS_TOPDIR_FL = 131072
+FS_UNRM_FL = 2
+FS_VERITY_FL = 1048576
__NR_ioctl = 54
diff --git a/sys/linux/fs_ioctl_riscv64.const b/sys/linux/fs_ioctl_riscv64.const
index d000f9b49..a35dc03ab 100644
--- a/sys/linux/fs_ioctl_riscv64.const
+++ b/sys/linux/fs_ioctl_riscv64.const
@@ -7,6 +7,23 @@ FIGETBSZ = 2
FITRIM = 3222820985
FSLABEL_MAX = 256
FSMAP_SIZE = 64
+FS_APPEND_FL = 32
+FS_BTREE_FL = 4096
+FS_CASEFOLD_FL = 1073741824
+FS_COMPRBLK_FL = 512
+FS_COMPR_FL = 4
+FS_DAX_FL = 33554432
+FS_DIRSYNC_FL = 65536
+FS_DIRTY_FL = 256
+FS_EA_INODE_FL = 2097152
+FS_ENCRYPT_FL = 2048
+FS_EOFBLOCKS_FL = 4194304
+FS_EXTENT_FL = 524288
+FS_HUGE_FILE_FL = 262144
+FS_IMAGIC_FL = 8192
+FS_IMMUTABLE_FL = 16
+FS_INDEX_FL = 4096
+FS_INLINE_DATA_FL = 268435456
FS_IOC_FIEMAP = 3223348747
FS_IOC_FSGETXATTR = 2149341215
FS_IOC_FSSETXATTR = 1075599392
@@ -18,4 +35,17 @@ FS_IOC_RESVSP = 1076910120
FS_IOC_SETFLAGS = 1074292226
FS_IOC_SETFSLABEL = 1090556978
FS_IOC_SETVERSION = 1074296322
+FS_JOURNAL_DATA_FL = 16384
+FS_NOATIME_FL = 128
+FS_NOCOMP_FL = 1024
+FS_NOCOW_FL = 8388608
+FS_NODUMP_FL = 64
+FS_NOTAIL_FL = 32768
+FS_PROJINHERIT_FL = 536870912
+FS_RESERVED_FL = 2147483648
+FS_SECRM_FL = 1
+FS_SYNC_FL = 8
+FS_TOPDIR_FL = 131072
+FS_UNRM_FL = 2
+FS_VERITY_FL = 1048576
__NR_ioctl = 29
diff --git a/sys/linux/fs_ioctl_s390x.const b/sys/linux/fs_ioctl_s390x.const
index b69eba7f1..ab89eafe3 100644
--- a/sys/linux/fs_ioctl_s390x.const
+++ b/sys/linux/fs_ioctl_s390x.const
@@ -7,6 +7,23 @@ FIGETBSZ = 2
FITRIM = 3222820985
FSLABEL_MAX = 256
FSMAP_SIZE = 64
+FS_APPEND_FL = 32
+FS_BTREE_FL = 4096
+FS_CASEFOLD_FL = 1073741824
+FS_COMPRBLK_FL = 512
+FS_COMPR_FL = 4
+FS_DAX_FL = 33554432
+FS_DIRSYNC_FL = 65536
+FS_DIRTY_FL = 256
+FS_EA_INODE_FL = 2097152
+FS_ENCRYPT_FL = 2048
+FS_EOFBLOCKS_FL = 4194304
+FS_EXTENT_FL = 524288
+FS_HUGE_FILE_FL = 262144
+FS_IMAGIC_FL = 8192
+FS_IMMUTABLE_FL = 16
+FS_INDEX_FL = 4096
+FS_INLINE_DATA_FL = 268435456
FS_IOC_FIEMAP = 3223348747
FS_IOC_FSGETXATTR = 2149341215
FS_IOC_FSSETXATTR = 1075599392
@@ -18,4 +35,17 @@ FS_IOC_RESVSP = 1076910120
FS_IOC_SETFLAGS = 1074292226
FS_IOC_SETFSLABEL = 1090556978
FS_IOC_SETVERSION = 1074296322
+FS_JOURNAL_DATA_FL = 16384
+FS_NOATIME_FL = 128
+FS_NOCOMP_FL = 1024
+FS_NOCOW_FL = 8388608
+FS_NODUMP_FL = 64
+FS_NOTAIL_FL = 32768
+FS_PROJINHERIT_FL = 536870912
+FS_RESERVED_FL = 2147483648
+FS_SECRM_FL = 1
+FS_SYNC_FL = 8
+FS_TOPDIR_FL = 131072
+FS_UNRM_FL = 2
+FS_VERITY_FL = 1048576
__NR_ioctl = 54