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:
Zach Brown
2017-08-14 09:22:14 -07:00
committed by Zach Brown
parent cf291e2483
commit 7684e7fcf6
2 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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, \