Date: Mon, 14 Jun 2021 08:54:56 -0700 From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: Re: git: 8794846a91c5 - main - bhyve: Add support for handling disk resize events to block_if. Message-ID: <776cbb8c-11ca-d7fc-c055-553d57d599d4@FreeBSD.org> In-Reply-To: <202106120100.15C10iFD084740@gitrepo.freebsd.org> References: <202106120100.15C10iFD084740@gitrepo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 6/11/21 6:00 PM, John Baldwin wrote: > The branch main has been updated by jhb: > > URL: https://cgit.FreeBSD.org/src/commit/?id=8794846a91c5429c612ba939c61ebf8f1ff1a628 > > commit 8794846a91c5429c612ba939c61ebf8f1ff1a628 > Author: John Baldwin <jhb@FreeBSD.org> > AuthorDate: 2021-06-12 00:59:25 +0000 > Commit: John Baldwin <jhb@FreeBSD.org> > CommitDate: 2021-06-12 01:00:24 +0000 > > bhyve: Add support for handling disk resize events to block_if. > > 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. Notably, this doesn't currently work for ZVOLs. Adding support for NOTE_ATTR events for ZVOLs when they resize is all that is needed for this to work woith ZVOLs. -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?776cbb8c-11ca-d7fc-c055-553d57d599d4>