diff options
author | Martijn Coenen <maco@android.com> | 2020-08-25 10:18:29 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-08-26 18:30:31 +0300 |
commit | 79e5dc59e2974a48764269fa9ff544ae8ffe3338 (patch) | |
tree | bbf59ef6b7b05d37c3b7fc25c14e6a8715358882 /drivers/md/raid5.c | |
parent | acb19e17c5134dd78668c429ecba5b481f038e6a (diff) | |
download | linux-79e5dc59e2974a48764269fa9ff544ae8ffe3338.tar.xz |
loop: Set correct device size when using LOOP_CONFIGURE
The device size calculation was done before processing the loop
configuration, which meant that the we set the size on the underlying
block device incorrectly in case lo_offset/lo_sizelimit were set in the
configuration. Delay computing the size until we've setup the device
parameters correctly.
Fixes: 3448914e8cc5("loop: Add LOOP_CONFIGURE ioctl")
Reported-by: Lennart Poettering <mzxreary@0pointer.de>
Tested-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
Signed-off-by: Martijn Coenen <maco@android.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/raid5.c')
0 files changed, 0 insertions, 0 deletions