Américo Wang
2009-Jan-19 13:02 UTC
[Patch] 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 <wangcong@zeuux.org> --- 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html