Page MenuHomeFreeBSD

cam: better ioctl compatibility for cd
ClosedPublic

Authored by imp on Nov 18 2023, 4:35 AM.
Tags
None
Referenced Files
F114892490: D42666.id130291.diff
Fri, Apr 18, 5:30 AM
Unknown Object (File)
Feb 28 2025, 6:38 AM
Unknown Object (File)
Feb 8 2025, 10:42 PM
Unknown Object (File)
Feb 7 2025, 9:25 PM
Unknown Object (File)
Feb 3 2025, 6:58 AM
Unknown Object (File)
Dec 5 2024, 3:58 PM
Unknown Object (File)
Dec 2 2024, 11:04 AM
Unknown Object (File)
Dec 2 2024, 11:04 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