aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYue Hu <huyue2@coolpad.com>2022-12-21 16:48:42 +0800
committerGao Xiang <hsiangkao@linux.alibaba.com>2022-12-22 10:58:09 +0800
commitc733358eb37cd25b0045251f08446f9d4e038930 (patch)
treef8c5c7806dabd3eed75d5d2d32a1069c208bd208
parent8b88487e20a8fb79942793d2bd8fe9bd2b15ba62 (diff)
downloaderofs-utils-c733358eb37cd25b0045251f08446f9d4e038930.tar.gz
erofs-utils: fsck: support interlaced uncompressed pcluster
Support uncompressed data layout with on-disk interlaced offset in compression mode for fsck.erofs. Signed-off-by: Yue Hu <huyue2@coolpad.com> Link: https://lore.kernel.org/r/20221221084842.28196-1-zbestahu@gmail.com Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
-rw-r--r--fsck/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fsck/main.c b/fsck/main.c
index 410e756..2a9c501 100644
--- a/fsck/main.c
+++ b/fsck/main.c
@@ -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,