summaryrefslogtreecommitdiff
path: root/types
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2021-01-03 08:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2021-01-03 08:00:00 +0000
commitf3d4942c29c1b4ddc94f411baa89ce7788494e24 (patch)
tree12bb78465732e0d1a9b9fef61f3e31dc9f654838 /types
parent1420880ce2d5c6a9451b5bed8aee149d2b47a256 (diff)
downloadstrace-f3d4942c29c1b4ddc94f411baa89ce7788494e24.tar.gz
Move decoders of FS_IOC_[GS]ETFSLABEL from btrfs.c to fs_0x94_ioctl.c
* types/fs_0x94.h (fs_0x94_label_t): New type. * xlat/fs_0x94_ioctl_cmds.in (FS_IOC_GETFSLABEL, FS_IOC_SETFSLABEL): New constants introduced by Linux kernel commit v4.18-rc1~37^2~66. * fs_0x94_ioctl.c (decode_fslabel): New function. (fs_0x94_ioctl): Use it to decode FS_IOC_GETFSLABEL and FS_IOC_SETFSLABEL. * btrfs.c (btrfs_ioctl) <BTRFS_IOC_GET_FSLABEL, BTRFS_IOC_SET_FSLABEL>: Remove.
Diffstat (limited to 'types')
-rw-r--r--types/fs_0x94.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/types/fs_0x94.h b/types/fs_0x94.h
index e15ef345c..f55e146a6 100644
--- a/types/fs_0x94.h
+++ b/types/fs_0x94.h
@@ -36,4 +36,6 @@ typedef struct {
struct_file_dedupe_range_info info[0];
} struct_file_dedupe_range;
+typedef char fs_0x94_label_t[256];
+
#endif /* STRACE_TYPES_FS_0X94_H */