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
F131669741: D30504.id90785.diff
Fri, Oct 10, 5:06 AM
F131634254: D30504.diff
Thu, Oct 9, 10:19 PM
Unknown Object (File)
Mon, Sep 29, 7:24 AM
Unknown Object (File)
Sun, Sep 14, 12:04 AM
Unknown Object (File)
Wed, Sep 10, 10:09 PM
Unknown Object (File)
Sep 9 2025, 2:20 PM
Unknown Object (File)
Sep 6 2025, 4:22 AM
Unknown Object (File)
Aug 23 2025, 2:41 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 39508
Build 36397: arc lint + arc unit