Page MenuHomeFreeBSD

cam: better ioctl compatibility for cd
ClosedPublic

Authored by imp on Nov 18 2023, 4:35 AM.
Tags
None
Referenced Files
F168339219: D42666.id130291.diff
Thu, Aug 27, 4:45 PM
F168220628: D42666.id141354.diff
Thu, Aug 27, 12:06 AM
Unknown Object (File)
Wed, Aug 26, 3:07 PM
Unknown Object (File)
Tue, Aug 25, 7:47 PM
Unknown Object (File)
Tue, Aug 25, 5:31 PM
Unknown Object (File)
Tue, Aug 25, 12:52 PM
Unknown Object (File)
Tue, Aug 25, 10:48 AM
Unknown Object (File)
Wed, Aug 12, 8:34 PM
Subscribers
None

Details

Summary

Unlike xpt and pass driver, there's no test for ENOTTY in cdioctl to try
the compatbility ioctls. Add one.

However, this is a disk ioctl, not a cdev ioctl. To get around this, we
cast the struct disk * to a struct cdev * to pass through. We cast it
back in a simple wrapper function.

PR: 198336
Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable