From owner-dev-commits-src-all@freebsd.org Mon Jun 14 15:55:01 2021 Return-Path: Delivered-To: dev-commits-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4CA2964804C; Mon, 14 Jun 2021 15:55:01 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G3bcj1gc1z3h3d; Mon, 14 Jun 2021 15:55:01 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from John-Baldwins-MacBook-Pro.local (ralph.baldwin.cx [66.234.199.215]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id BB8FAD3FF; Mon, 14 Jun 2021 15:55:00 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Subject: Re: git: 8794846a91c5 - main - bhyve: Add support for handling disk resize events to block_if. From: John Baldwin To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org References: <202106120100.15C10iFD084740@gitrepo.freebsd.org> Message-ID: <776cbb8c-11ca-d7fc-c055-553d57d599d4@FreeBSD.org> Date: Mon, 14 Jun 2021 08:54:56 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <202106120100.15C10iFD084740@gitrepo.freebsd.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: dev-commits-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jun 2021 15:55:01 -0000 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 > AuthorDate: 2021-06-12 00:59:25 +0000 > Commit: John Baldwin > 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