mirror of
https://github.com/versity/scoutfs.git
synced 2026-06-06 19:52:33 +00:00
scoutfs-utils: use exported types
format.h and ioctl.h are copied from the kernel module. It had a habit of accidentally using types that aren't exported to userspace. It's since added build checks that enforce exported types. This copies the fixed use of exported types over for hopefully the last time. Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
@@ -212,8 +212,8 @@ struct scoutfs_segment_item {
|
||||
__u8 nr_links;
|
||||
__le32 skip_links[0];
|
||||
/*
|
||||
* u8 key_bytes[key_len]
|
||||
* u8 val_bytes[val_len]
|
||||
* __u8 key_bytes[key_len]
|
||||
* __u8 val_bytes[val_len]
|
||||
*/
|
||||
} __packed;
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@ struct scoutfs_ioctl_ino_path {
|
||||
} __packed;
|
||||
|
||||
#define SCOUTFS_IOC_INO_PATH_CURSOR_BYTES \
|
||||
(sizeof(u64) + SCOUTFS_NAME_LEN + 1)
|
||||
(sizeof(__u64) + SCOUTFS_NAME_LEN + 1)
|
||||
|
||||
/* Get a single path from the root to the given inode number */
|
||||
#define SCOUTFS_IOC_INO_PATH _IOW(SCOUTFS_IOCTL_MAGIC, 2, \
|
||||
|
||||
Reference in New Issue
Block a user