summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_blkio.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2007-06-06 17:15:11 +0000
committerderaadt <deraadt@openbsd.org>2007-06-06 17:15:11 +0000
commit15aab03cdee9fcea2507fd66e06a95d6b73cacc9 (patch)
tree0b88e48097fa36b5ad5e9ce6601cb33816e2cf93 /sys/compat/linux/linux_blkio.c
parentoops (diff)
downloadwireguard-openbsd-15aab03cdee9fcea2507fd66e06a95d6b73cacc9.tar.xz
wireguard-openbsd-15aab03cdee9fcea2507fd66e06a95d6b73cacc9.zip
now that all partition size/offsets are potentially 64-bit, change the
type of all variables to daddr64_t. this includes the APIs for XXsize() and XXdump(), all range checks inside bio drivers, internal variables for disklabel handling, and even uvm's swap offsets. re-read numerous times by otto, miod, krw, thib to look for errors
Diffstat (limited to 'sys/compat/linux/linux_blkio.c')
-rw-r--r--sys/compat/linux/linux_blkio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_blkio.c b/sys/compat/linux/linux_blkio.c
index 74c7063379b..a38cca637c2 100644
--- a/sys/compat/linux/linux_blkio.c
+++ b/sys/compat/linux/linux_blkio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_blkio.c,v 1.6 2007/06/05 00:38:20 deraadt Exp $ */
+/* $OpenBSD: linux_blkio.c,v 1.7 2007/06/06 17:15:13 deraadt Exp $ */
/* $NetBSD: linux_blkio.c,v 1.3 2001/01/18 17:48:04 tv Exp $ */
/*
@@ -91,6 +91,7 @@ linux_ioctl_blkio(struct proc *p, struct linux_sys_ioctl_args *uap,
size = label.d_nsectors * label.d_ntracks *
label.d_ncylinders;
} else
+ /* XXX ignores > 32bit blocks */
size = DL_GETPSIZE(partp.part);
error = copyout(&size, SCARG(uap, data), sizeof size);
break;