summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2014-06-04 12:05:47 +0000
committermav <mav@FreeBSD.org>2014-06-04 12:05:47 +0000
commit797781309bb17ad8d041d64461891d9b9a4e71a8 (patch)
treef6c53fdf141c1ead360aebe5f925d2a71234fe0e /sys/compat/linux
parentd44dd4ee4a32f038f17befff7d10d25203facc46 (diff)
downloadFreeBSD-src-797781309bb17ad8d041d64461891d9b9a4e71a8.zip
FreeBSD-src-797781309bb17ad8d041d64461891d9b9a4e71a8.tar.gz
- 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. MFC after: 1 month
Diffstat (limited to 'sys/compat/linux')
-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 e1e1371..77feed0 100644
--- a/sys/compat/linux/linux_ioctl.c
+++ b/sys/compat/linux/linux_ioctl.c
@@ -2751,6 +2751,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