Page MenuHomeFreeBSD

Remove uses of CRIOGET in OCF tests after r368005.
ClosedPublic

Authored by jhb on Nov 25 2020, 1:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jul 4, 12:02 PM
Unknown Object (File)
Thu, Jun 26, 1:35 AM
Unknown Object (File)
Tue, Jun 24, 8:49 PM
Unknown Object (File)
Tue, Jun 24, 12:52 PM
Unknown Object (File)
Fri, Jun 20, 3:37 AM
Unknown Object (File)
Wed, Jun 18, 9:31 PM
Unknown Object (File)
Wed, Jun 18, 7:33 AM
Unknown Object (File)
Sun, Jun 15, 8:58 PM
Subscribers

Details

Test Plan
  • still need to actually test these

Diff Detail

Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 35028
Build 32013: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Nov 25 2020, 1:13 AM
jhb created this revision.

Passes running tests. I'm going to merge this to unbreak the build.

This revision was not accepted when it landed; it landed in state Needs Review.Nov 25 2020, 1:31 AM
This revision was automatically updated to reflect the committed changes.
tools/tools/crypto/cryptokeytest.c
116

We leak the fd now.

tools/tools/crypto/cryptokeytest.c
116

devcrypto() allocates a single static fd for /dev/crypto that it leaks until process exit by design. This just reuses that. I went for a smaller diff than replacing ioctl() calls, though perhaps there is only one ioctl() call so just using devcrypto() directly for the ioctl() would have been fine.

tools/tools/crypto/cryptokeytest.c
116

Sorry, I missed that devcrypto() caches the open fd. I thought we were opening /dev/crypto anew upon each call.