]> 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>
Thu, 26 May 2022 07:58:36 +0000 (09:58 +0200)
commit854abba0dd9b45b4f40a9c934694b3f14052eceb
tree0201d9a236911b7f774fb5c23abb43d32214311f
parent2c4d42126dca42c1afc3c78fe4da51619ba52387
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>
lib/loopdev.c