Page MenuHomeFreeBSD

Add a request structure and make the implementation use it.
ClosedPublic

Authored by brooks on Mar 15 2018, 6:22 PM.
Tags
None
Referenced Files
F152044150: D14704.id40332.diff
Sun, Apr 12, 8:02 AM
F152044149: D14704.id40330.diff
Sun, Apr 12, 8:02 AM
Unknown Object (File)
Tue, Apr 7, 10:06 AM
Unknown Object (File)
Fri, Apr 3, 3:56 AM
Unknown Object (File)
Thu, Apr 2, 11:01 PM
Unknown Object (File)
Thu, Apr 2, 1:30 PM
Unknown Object (File)
Mon, Mar 30, 2:08 PM
Unknown Object (File)
Mon, Mar 30, 1:21 AM
Subscribers

Details

Summary

This allows compatibility translation to take place on the stack (md_ioctl is too big) and is more suitable as a public interface within the kernel than the kern_ioctl interface.

Except for the initialization of the md_req from the md_ioctl
(including detection of kernel md_file pointers) and the updating
of the md_ioctl prior to return, this is a mechanical replacment
of md_ioctl and mdio with md_req and mdr.

Test Plan

Passes mdconfig tests.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 15589
Build 15625: arc lint + arc unit

Event Timeline

brooks edited the test plan for this revision. (Show Details)
This revision is now accepted and ready to land.Mar 15 2018, 6:51 PM
cem added inline comments.
sys/dev/md/md.c
1626–1627

As long as this is a totally new ABI, this limit could be raised. If we care.

1661–1662

Will this be removed when kernel users are converted away from the ioctl API?

sys/dev/md/md.c
1626–1627

I'll make the request flexible.

1661–1662

That's the plan.

markj added inline comments.
sys/dev/md/md.c
1825–1848

Zap this stray semicolon while you're here?

  • Whitespace fix.
  • Remove unused md_base.
  • Allow md_pad's length to vary.
  • Change md_pad to md_units in md_req.
This revision now requires review to proceed.Mar 15 2018, 9:04 PM
brooks added inline comments.
sys/dev/md/md.c
1825–1848

@markj: I seem to have lost a race with your review and my update and I can't figure out how go get phabricator to show me where the comment should go and the current location doesn't make sense.

  • Remove an extra semicolon.
This revision is now accepted and ready to land.Mar 15 2018, 9:19 PM
This revision was automatically updated to reflect the committed changes.