According to the definition in kernel space, this one should be changed.
Signed-off-by: WANG Cong <wangcong@xxxxxxxxx>
---
diff --git a/btrfsctl.c b/btrfsctl.c
index e049799..5ff7f69 100644
--- a/btrfsctl.c
+++ b/btrfsctl.c
@@ -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
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html