journal: use -EPROTONOSUPPORT for unknown compression
We might add more compression types in the future, and we should treat that as unsupported, and not a format error.
This commit is contained in:
@@ -326,7 +326,7 @@ int decompress_blob(
|
||||
src, src_size,
|
||||
dst, dst_alloc_size, dst_size, dst_max);
|
||||
else
|
||||
return -EBADMSG;
|
||||
return -EPROTONOSUPPORT;
|
||||
}
|
||||
|
||||
int decompress_startswith_xz(const void *src, uint64_t src_size,
|
||||
|
||||
Reference in New Issue
Block a user