summaryrefslogtreecommitdiff
path: root/ioctl.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2009-01-16 12:05:01 -0500
committerChris Mason <chris.mason@oracle.com>2009-01-16 12:05:01 -0500
commitf9f3fff9a4cec2d241b2a04ac10261ecd18134dc (patch)
tree22be0bb9bfead97548f18fe66af9d4fb574ce341 /ioctl.h
parent6fc10e9fe39410ed606506584e3a07fd21dc1e6b (diff)
Fix ioctl arg size (userland incompatible change!)
The structure used to send device in btrfs ioctl calls was not properly aligned, and so 32 bit ioctls would not work properly on 64 bit kernels. We could fix this with compat ioctls, but we're just one byte away and it doesn't make sense at this stage to carry about the compat ioctls forever at this stage in the project. This patch brings the ioctl arg up to an evenly aligned 4k. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'ioctl.h')
-rw-r--r--ioctl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ioctl.h b/ioctl.h
index 5fb2ad18..a084f33e 100644
--- a/ioctl.h
+++ b/ioctl.h
@@ -23,7 +23,7 @@
#define BTRFS_IOCTL_MAGIC 0x94
#define BTRFS_VOL_NAME_MAX 255
-#define BTRFS_PATH_NAME_MAX 3072
+#define BTRFS_PATH_NAME_MAX 4087
struct btrfs_ioctl_vol_args {
__s64 fd;