]> git.ipfire.org Git - thirdparty/util-linux.git/commit
loopdev: set block_size when using LOOP_CONFIGURE
authorHideki EIRAKU <hdk@igel.co.jp>
Wed, 25 May 2022 03:23:16 +0000 (12:23 +0900)
committerKarel Zak <kzak@redhat.com>
Wed, 20 Jul 2022 15:47:28 +0000 (17:47 +0200)
commit2e5262f5051e51e712ee96b0d0a2900db3732620
treed3e5feb7ad30847ef323b1755616011959b3c1f0
parent3df6c8c1191f8efa0fd54802a90290cb639c25b7
loopdev: set block_size when using LOOP_CONFIGURE

LOOP_CONFIGURE ioctl was introduced by commit
d5fd456c88aba4fcf77d35fe38024a8d5c814686. Since the previous
implementation set partscan flag but did not set block_size with the
LOOP_CONFIGURE ioctl, an issue fixed by commit
422f0e9f206a145c59a71333dad20d38cbbfc0c4 was reappeared. Setting
block_size in the LOOP_CONFIGURE ioctl parameter fixes the issue.

Signed-off-by: Hideki EIRAKU <hdk@igel.co.jp>
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/loopdev.c