mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-13 03:40:05 +01:00
Do not print opt_io_size warning needlessly.
In fallback path min_io_size and opt_io_size could be same and the warning was confusing.
This commit is contained in:
committed by
Milan Broz
parent
33cc4739da
commit
dbb80e41c7
@@ -528,7 +528,7 @@ void device_topology_alignment(struct crypt_device *cd,
|
|||||||
if ((temp_alignment < (unsigned long)opt_io_size) &&
|
if ((temp_alignment < (unsigned long)opt_io_size) &&
|
||||||
!((unsigned long)opt_io_size % temp_alignment) && !MISALIGNED_4K(opt_io_size))
|
!((unsigned long)opt_io_size % temp_alignment) && !MISALIGNED_4K(opt_io_size))
|
||||||
temp_alignment = (unsigned long)opt_io_size;
|
temp_alignment = (unsigned long)opt_io_size;
|
||||||
else if (opt_io_size)
|
else if (opt_io_size && (opt_io_size != min_io_size))
|
||||||
log_err(cd, _("Ignoring bogus optimal-io size for data device (%u bytes)."), opt_io_size);
|
log_err(cd, _("Ignoring bogus optimal-io size for data device (%u bytes)."), opt_io_size);
|
||||||
|
|
||||||
/* If calculated alignment is multiple of default, keep default */
|
/* If calculated alignment is multiple of default, keep default */
|
||||||
|
|||||||
Reference in New Issue
Block a user