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)
Wed, Nov 26, 1:09 AM
Unknown Object (File)
Mon, Nov 24, 10:27 AM
Unknown Object (File)
Sun, Nov 23, 5:33 PM
Unknown Object (File)
Sat, Nov 22, 5:32 AM
Unknown Object (File)
Wed, Nov 19, 2:47 PM
Unknown Object (File)
Wed, Nov 19, 7:31 AM
Unknown Object (File)
Wed, Nov 12, 5:23 PM
Unknown Object (File)
Wed, Nov 12, 5:49 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