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)
Wed, Sep 9, 1:36 AM
Unknown Object (File)
Tue, Sep 8, 8:31 AM
Unknown Object (File)
Mon, Sep 7, 1:06 AM
Unknown Object (File)
Sun, Sep 6, 12:20 PM
Unknown Object (File)
Sat, Sep 5, 1:35 PM
Unknown Object (File)
Fri, Sep 4, 3:16 PM
Unknown Object (File)
Thu, Sep 3, 5:56 PM
Unknown Object (File)
Thu, Sep 3, 5:48 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 Not Applicable
Unit
Tests Not Applicable