summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2014-07-04 15:09:56 +0000
committermav <mav@FreeBSD.org>2014-07-04 15:09:56 +0000
commit526d9691dc41731b56a019d4782c7b4afd32ed69 (patch)
tree4b2d4e75ae2043ea9ffe4463d2fc047bed17b809 /sys/compat
parentd05fb522b2035acc7e6098820b2261b67ce56c46 (diff)
downloadFreeBSD-src-526d9691dc41731b56a019d4782c7b4afd32ed69.zip
FreeBSD-src-526d9691dc41731b56a019d4782c7b4afd32ed69.tar.gz
MFC r267051:
- Add support for SG_GET_SG_TABLESIZE IOCTL to report that we don't support scatter/gather lists. - Return error for still unsupported SG 3.x API read/write calls.
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_ioctl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c
index 395bba5..052dd19 100644
--- a/sys/compat/linux/linux_ioctl.c
+++ b/sys/compat/linux/linux_ioctl.c
@@ -2750,6 +2750,9 @@ linux_ioctl_sg(struct thread *td, struct linux_ioctl_args *args)
case LINUX_SG_GET_SCSI_ID:
args->cmd = SG_GET_SCSI_ID;
break;
+ case LINUX_SG_GET_SG_TABLESIZE:
+ args->cmd = SG_GET_SG_TABLESIZE;
+ break;
default:
return (ENODEV);
}
OpenPOWER on IntegriCloud