Page MenuHomeFreeBSD

cam: better ioctl compatibility for cd
ClosedPublic

Authored by imp on Nov 18 2023, 4:35 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 22 2024, 1:13 PM
Unknown Object (File)
Sep 21 2024, 1:02 PM
Unknown Object (File)
Sep 21 2024, 6:01 AM
Unknown Object (File)
Sep 15 2024, 4:44 PM
Unknown Object (File)
Sep 11 2024, 4:38 AM
Unknown Object (File)
Sep 8 2024, 9:40 AM
Unknown Object (File)
Sep 8 2024, 7:20 AM
Unknown Object (File)
Sep 7 2024, 1:39 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 54506
Build 51395: arc lint + arc unit