Re: [PATCH v2.5 01/11] block: Expand block status mode from bool to flags

2025-04-24 Thread Eric Blake
On Fri, Apr 18, 2025 at 04:52:46PM -0500, Eric Blake wrote: > This patch is purely mechanical, changing bool want_zero into an > unsigned int for bitwise-or of flags. As of this patch, all > implementations are unchanged (the old want_zero==true is now > mode==BDRV_WANT_PRECISE which is a superset

Re: [PATCH v2.5 01/11] block: Expand block status mode from bool to flags

2025-04-22 Thread Stefan Hajnoczi
On Fri, Apr 18, 2025 at 04:52:46PM -0500, Eric Blake wrote: > This patch is purely mechanical, changing bool want_zero into an > unsigned int for bitwise-or of flags. As of this patch, all > implementations are unchanged (the old want_zero==true is now > mode==BDRV_WANT_PRECISE which is a superset

[PATCH v2.5 01/11] block: Expand block status mode from bool to flags

2025-04-18 Thread Eric Blake
This patch is purely mechanical, changing bool want_zero into an unsigned int for bitwise-or of flags. As of this patch, all implementations are unchanged (the old want_zero==true is now mode==BDRV_WANT_PRECISE which is a superset of BDRV_WANT_ZERO); but the callers in io.c that used to pass want_