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
Unknown Object (File)
Sun, Sep 6, 2:17 PM
Unknown Object (File)
Sun, Sep 6, 2:17 PM
Unknown Object (File)
Sun, Sep 6, 2:17 PM
Unknown Object (File)
Sun, Sep 6, 6:38 AM
Unknown Object (File)
Sat, Sep 5, 3:25 AM
Unknown Object (File)
Tue, Sep 1, 9:24 PM
Unknown Object (File)
Tue, Sep 1, 5:22 PM
Unknown Object (File)
Sun, Aug 30, 6:41 PM
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