Page MenuHomeFreeBSD

cam: better ioctl compatibility for cd
Needs ReviewPublic

Authored by imp on May 24 2022, 9:50 PM.
Tags
None
Referenced Files
F132966755: D35312.id106347.diff
Tue, Oct 21, 3:40 PM
F132923686: D35312.id106346.diff
Tue, Oct 21, 5:34 AM
Unknown Object (File)
Mon, Oct 20, 1:15 PM
Unknown Object (File)
Mon, Oct 20, 1:15 PM
Unknown Object (File)
Mon, Oct 20, 1:14 PM
Unknown Object (File)
Sun, Oct 19, 11:12 PM
Unknown Object (File)
Tue, Oct 14, 10:11 PM
Unknown Object (File)
Mon, Oct 13, 1:41 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 45698
Build 42586: arc lint + arc unit