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)
Tue, Oct 14, 10:11 PM
Unknown Object (File)
Mon, Oct 13, 1:41 AM
Unknown Object (File)
Sat, Sep 27, 12:52 AM
Unknown Object (File)
Fri, Sep 19, 2:11 PM
Unknown Object (File)
Sep 17 2025, 2:50 PM
Unknown Object (File)
Sep 10 2025, 2:11 AM
Unknown Object (File)
Sep 6 2025, 2:25 AM
Unknown Object (File)
Aug 29 2025, 10:56 PM
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