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
F166529836: D30504.diff
Fri, Aug 14, 2:29 AM
Unknown Object (File)
Mon, Aug 10, 6:47 AM
Unknown Object (File)
Sun, Aug 9, 5:58 AM
Unknown Object (File)
Sat, Aug 8, 3:55 PM
Unknown Object (File)
Mon, Aug 3, 9:27 PM
Unknown Object (File)
Sun, Aug 2, 5:17 PM
Unknown Object (File)
Sun, Aug 2, 4:23 AM
Unknown Object (File)
Sun, Aug 2, 2:20 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