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:
Zbigniew Jędrzejewski-Szmek
2020-07-21 17:42:15 +02:00
parent 76cbafcdd4
commit b4a11ca3f2
+1 -1
View File
@@ -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,