Re: [Qemu-devel] [PATCH v2 2/9] block: Use BdrvChild to discard

2018-07-05 Thread Kevin Wolf
Am 05.07.2018 um 09:36 hat Fam Zheng geschrieben: > Other I/O functions are already using a BdrvChild pointer in the API, so > make discard do the same. It makes it possible to initiate the same > permission checks before doing I/O, and much easier to share the > helper functions for this, which

[Qemu-devel] [PATCH v2 2/9] block: Use BdrvChild to discard

2018-07-05 Thread Fam Zheng
Other I/O functions are already using a BdrvChild pointer in the API, so make discard do the same. It makes it possible to initiate the same permission checks before doing I/O, and much easier to share the helper functions for this, which will be added and used by write, truncate and copy range