Skip to contentSkip to conversation

btrfsctl.c: fix the definition of struct btrfs_ioctl_vol_args

PATCH New Américo Wang 1 participant 1 message Jan 19, 2009 Btrfs file system

lore
Share & tools
lore
#0 lore raw

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.

---

btrfsctl.c +1 -1
index e049799..5ff7f69 100644
@@ -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