Page MenuHomeFreeBSD

bhyve: Add support for handling disk resize events to block_if.
ClosedPublic

Authored by jhb on May 27 2021, 1:24 PM.
Tags
None
Referenced Files
F156539343: D30504.id.diff
Thu, May 14, 12:53 PM
Unknown Object (File)
Thu, May 14, 4:39 AM
Unknown Object (File)
Thu, May 14, 4:37 AM
Unknown Object (File)
Thu, May 14, 4:37 AM
Unknown Object (File)
Thu, May 14, 2:22 AM
Unknown Object (File)
Mon, May 11, 12:29 PM
Unknown Object (File)
Sat, May 2, 10:26 PM
Unknown Object (File)
Thu, Apr 30, 10:18 AM
Subscribers

Details

Summary

Allow clients of blockif to register a resize callback handler. When
a callback is registered, register an EVFILT_VNODE kevent watching the
backing store for a change in the file's attributes. If the size has
changed when the kevent fires, invoke the clients' callback.

Currently resize detection is limited to backing stores that support
EVFILT_VNODE kevents such as regular files.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable