Commit ed19ddf6 authored by Ondrej Kozina's avatar Ondrej Kozina Committed by Milan Broz

be specific about version in failed format operation

parent ebbd33db
...@@ -125,7 +125,7 @@ static int LUKS_check_device_size(struct crypt_device *ctx, const struct luks_ph ...@@ -125,7 +125,7 @@ static int LUKS_check_device_size(struct crypt_device *ctx, const struct luks_ph
if (falloc && !device_fallocate(device, hdr_sectors << SECTOR_SHIFT)) if (falloc && !device_fallocate(device, hdr_sectors << SECTOR_SHIFT))
return 0; return 0;
log_err(ctx, _("Device %s is too small. (LUKS requires at least %" PRIu64 " bytes.)\n"), log_err(ctx, _("Device %s is too small. (LUKS1 requires at least %" PRIu64 " bytes.)\n"),
device_path(device), hdr_sectors * SECTOR_SIZE); device_path(device), hdr_sectors * SECTOR_SIZE);
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment