diff --git a/fs_mgr/liblp/writer.cpp b/fs_mgr/liblp/writer.cpp index 2708efa15..7db0b787e 100644 --- a/fs_mgr/liblp/writer.cpp +++ b/fs_mgr/liblp/writer.cpp @@ -138,8 +138,8 @@ static bool ValidateAndSerializeMetadata([[maybe_unused]] const IPartitionOpener PERROR << partition_name << ": ioctl"; return false; } - if (info.size != block_device.size) { - LERROR << "Block device " << partition_name << " size mismatch (expected" + if (info.size < block_device.size) { + LERROR << "Block device " << partition_name << " size is too small (expected" << block_device.size << ", got " << info.size << ")"; return false; }