Skip to contentSkip to conversation

erofs-utils: fsck: support interlaced uncompressed pcluster

PATCH New Yue Hu 1 participant 1 message Dec 21, 2022

lore
Share & tools
lore

Yue Hu

author
#0 lore raw

PATCH v2 1/1 erofs-utils: fsck: support interlaced uncompressed pcluster

From: Yue Hu <[email protected]>

Support uncompressed data layout with on-disk interlaced offset in compression mode for fsck.erofs.

---
v2: remove if and use ternary expression instead

 fsck/main.c | 3 +++
 1 file changed, 3 insertions(+)
fsck/main.c +3 -0
index 410e756..2a9c501 100644
@@ -458,6 +458,9 @@ static int erofs_verify_inode_data(struct erofs_inode *inode, int outfd)
 				.in = raw,
 				.out = buffer,
 				.decodedskip = 0,
+				.interlaced_offset =
+					map.m_algorithmformat == Z_EROFS_COMPRESSION_INTERLACED ?
+						erofs_blkoff(map.m_la) : 0,
 				.inputsize = map.m_plen,
 				.decodedlength = map.m_llen,
 				.alg = map.m_algorithmformat,
Signature · 1 line
2.17.1