Page MenuHomeFreeBSD

cam: better ioctl compatibility for cd
ClosedPublic

Authored by imp on Nov 18 2023, 4:35 AM.
Tags
None
Referenced Files
F132430068: D42666.diff
Thu, Oct 16, 9:13 PM
Unknown Object (File)
Tue, Oct 7, 6:16 PM
Unknown Object (File)
Fri, Oct 3, 10:15 AM
Unknown Object (File)
Fri, Sep 19, 12:17 PM
Unknown Object (File)
Sep 11 2025, 3:33 PM
Unknown Object (File)
Sep 10 2025, 4:48 AM
Unknown Object (File)
Sep 8 2025, 3:42 PM
Unknown Object (File)
Aug 25 2025, 10:11 AM
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