Page MenuHomeFreeBSD

cam: better ioctl compatibility for cd
Needs ReviewPublic

Authored by imp on May 24 2022, 9:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 9, 4:30 PM
Unknown Object (File)
Sat, May 4, 9:30 AM
Unknown Object (File)
Mon, Apr 22, 7:09 AM
Unknown Object (File)
Mar 18 2024, 5:08 PM
Unknown Object (File)
Jan 11 2024, 11:52 AM
Unknown Object (File)
Dec 25 2023, 7:41 PM
Unknown Object (File)
Dec 20 2023, 5:45 AM
Unknown Object (File)
Dec 15 2023, 8:27 AM
Subscribers
None

Details

Reviewers
None
Group Reviewers
cam
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.

Sponsored by: Netflix

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 45699
Build 42587: arc lint + arc unit