Page MenuHomeFreeBSD

bhyve/snapshot: ..back to SOCK_STREAM
ClosedPublic

Authored by rew on Apr 10 2022, 5:15 AM.
Tags
None
Referenced Files
F153997374: D34863.id105528.diff
Sat, Apr 25, 8:26 AM
F153994419: D34863.id105368.diff
Sat, Apr 25, 7:56 AM
Unknown Object (File)
Thu, Apr 16, 4:18 PM
Unknown Object (File)
Thu, Apr 16, 12:20 PM
Unknown Object (File)
Mon, Apr 13, 8:18 PM
Unknown Object (File)
Sat, Apr 11, 4:24 AM
Unknown Object (File)
Sat, Apr 11, 1:53 AM
Unknown Object (File)
Fri, Apr 10, 10:07 PM

Details

Summary

Now that nvlist_send()/nvlist_recv() are being used, ditch the datagram
socket.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 45359
Build 42247: arc lint + arc unit

Event Timeline

rew requested review of this revision.Apr 10 2022, 5:15 AM
jhb added inline comments.
usr.sbin/bhyvectl/bhyvectl.c
1702

I think you still want SUN_LEN here? (And do we need to set addr.sun_len as well?)

feedback from jhb..use SUN_LEN()

markj added inline comments.
usr.sbin/bhyve/snapshot.c
1460–1461

Isn't the socket leaked?

usr.sbin/bhyvectl/bhyvectl.c
1702–1703

Wrap this line since you're modifying it anyway?

address feedback from markj:

  • wrap long line
  • close file descriptor being leaked
This revision is now accepted and ready to land.Apr 25 2022, 5:38 PM
This revision was automatically updated to reflect the committed changes.