* [Patch] btrfsctl.c: fix the definition of struct btrfs_ioctl_vol_args
@ 2009-01-19 13:02 Américo Wang
0 siblings, 0 replies; only message in thread
From: Américo Wang @ 2009-01-19 13:02 UTC (permalink / raw)
To: linux-btrfs
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-01-19 13:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-19 13:02 [Patch] btrfsctl.c: fix the definition of struct btrfs_ioctl_vol_args Américo Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox