btrfsctl.c: fix the definition of struct btrfs_ioctl_vol_args
PATCH 1/1 btrfsctl.c: fix the definition of struct btrfs_ioctl_vol_args
According to the definition in kernel space, this one should be changed.
Signed-off-by WANG Cong <[email protected]>
---
btrfsctl.c +1 -1
@@ -39,7 +39,7 @@#define BLKGETSIZE64 0#define BTRFS_IOC_SNAP_CREATE 0#define BTRFS_VOL_NAME_MAX 255 -struct btrfs_ioctl_vol_args {char name[BTRFS_VOL_NAME_MAX ]; }; +struct btrfs_ioctl_vol_args {char name[BTRFS_VOL_NAME_MAX +1 ];int fd;};static inline int ioctl (int fd,int define,void *arg) {return 0 ; }#endif