aboutsummaryrefslogtreecommitdiff
path: root/sys/compat
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2002-09-20 17:55:47 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2002-09-20 17:55:47 +0000
commitd734859c2aa9aa85d79200c33dc3391d51503ff2 (patch)
tree00c3e068785c82a120ddab5b08a2d3dc7ed7e511 /sys/compat
parentef02ea6e40fd50fe4ce2dd4ee733896df977b7cc (diff)
Notes
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_ioctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c
index 82675f364a26..f19a2da1728c 100644
--- a/sys/compat/linux/linux_ioctl.c
+++ b/sys/compat/linux/linux_ioctl.c
@@ -118,6 +118,7 @@ linux_ioctl_disk(struct thread *td, struct linux_ioctl_args *args)
return (error);
switch (args->cmd & 0xffff) {
case LINUX_BLKGETSIZE:
+ /* XXX: wrong, should use DIOCGMEDIASIZE/DIOCGSECTORSIZE */
error = fo_ioctl(fp, DIOCGDINFO, (caddr_t)&dl, td->td_ucred,
td);
fdrop(fp, td);