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, Dec 22, 10:41 AM
Unknown Object (File)
Thu, Dec 5, 6:25 PM
Unknown Object (File)
Oct 22 2024, 6:08 PM
Unknown Object (File)
Oct 1 2024, 11:46 AM
Unknown Object (File)
Sep 28 2024, 11:44 PM
Unknown Object (File)
Sep 24 2024, 11:38 AM
Unknown Object (File)
Sep 17 2024, 2:22 AM
Unknown Object (File)
Sep 6 2024, 5:30 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