]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/loopdev: set blocksize when create a new device
authorKarel Zak <kzak@redhat.com>
Tue, 22 Jan 2019 10:37:35 +0000 (11:37 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 22 Jan 2019 10:37:35 +0000 (11:37 +0100)
commit75d239ffd89b93f79059928e436f1068f402452e
treeb6e9935ec7b9e5be8dacc39cbebd40586cadfe94
parent9fcc893624dc4c9f2617fbf6827d7df3537d5452
lib/loopdev: set blocksize when create a new device

The partition scanner in kernel depends on blocksize. We need to set
the blocksize before we call LOOP_SET_STATUS64 (this ioctl triggers
the scanner).

This patch extends the internal API to save blocksize into loopdev
context to be usable later for loopcxt_setup_device().

Signed-off-by: Karel Zak <kzak@redhat.com>
include/loopdev.h
lib/loopdev.c