Re: [Qemu-block] [PATCH v5 10/42] block: Use CAF in bdrv_is_encrypted()

2019-06-13 Thread Max Reitz
On 13.06.19 15:16, Vladimir Sementsov-Ogievskiy wrote: > 13.06.2019 1:09, Max Reitz wrote: >> bdrv_is_encrypted() should not only check the BDS's backing child, but >> any filtered child: If a filter's child is encrypted, the filter node >> itself naturally is encrypted, too. Furthermore, we need

Re: [Qemu-block] [PATCH v5 10/42] block: Use CAF in bdrv_is_encrypted()

2019-06-13 Thread Vladimir Sementsov-Ogievskiy
13.06.2019 1:09, Max Reitz wrote: > bdrv_is_encrypted() should not only check the BDS's backing child, but > any filtered child: If a filter's child is encrypted, the filter node > itself naturally is encrypted, too. Furthermore, we need to recurse > down the chain. > > (CAF means child access fu

[Qemu-block] [PATCH v5 10/42] block: Use CAF in bdrv_is_encrypted()

2019-06-12 Thread Max Reitz
bdrv_is_encrypted() should not only check the BDS's backing child, but any filtered child: If a filter's child is encrypted, the filter node itself naturally is encrypted, too. Furthermore, we need to recurse down the chain. (CAF means child access function.) Signed-off-by: Max Reitz --- block