Re: [PATCH for-5.1 v2 1/2] block: Require aligned image size to avoid assertion failure

2020-07-17 Thread Max Reitz
On 17.07.20 13:32, Kevin Wolf wrote: > Am 17.07.2020 um 13:02 hat Max Reitz geschrieben: >> On 16.07.20 16:26, Kevin Wolf wrote: >>> Unaligned requests will automatically be aligned to bl.request_alignment >>> and we can't extend write requests to access space beyond the end of the >>> image

Re: [PATCH for-5.1 v2 1/2] block: Require aligned image size to avoid assertion failure

2020-07-17 Thread Kevin Wolf
Am 17.07.2020 um 13:02 hat Max Reitz geschrieben: > On 16.07.20 16:26, Kevin Wolf wrote: > > Unaligned requests will automatically be aligned to bl.request_alignment > > and we can't extend write requests to access space beyond the end of the > > image without resizing the image, so if we have the

Re: [PATCH for-5.1 v2 1/2] block: Require aligned image size to avoid assertion failure

2020-07-17 Thread Max Reitz
On 16.07.20 16:26, Kevin Wolf wrote: > Unaligned requests will automatically be aligned to bl.request_alignment > and we can't extend write requests to access space beyond the end of the > image without resizing the image, so if we have the WRITE permission, > but not the RESIZE one, it's required

[PATCH for-5.1 v2 1/2] block: Require aligned image size to avoid assertion failure

2020-07-16 Thread Kevin Wolf
Unaligned requests will automatically be aligned to bl.request_alignment and we can't extend write requests to access space beyond the end of the image without resizing the image, so if we have the WRITE permission, but not the RESIZE one, it's required that the image size is aligned. Failing to