From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E42BB38FEEC for ; Thu, 22 Jan 2026 04:21:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769055686; cv=none; b=ZW2HkwqtTjMcbU4vYQurO7lyZUGuko8ATxyfAm+yjSWx/smyKXNKKKKStME3etf6TsrVyQMa+jWjWx3iJGN0/1txAmOdHpdhUnS+O3tPi6sisqVgtET74UwVeT1scy+lyXUMt7u0eCLC861jiTtTZcPu9Jr5k2EfqeDyuxmEJtY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769055686; c=relaxed/simple; bh=PnCFLDk3rvEhNj2n5M073CcTOotus4sbq8LaiP3P8O8=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=bZTj8PEOyo1kaXwdxHDuSbZ2OPqPxN2pEzLC9dBoZLcVydjbipJjYSpOqH0Q18j1DvJ3UI/reMKX8Noh8GjkqrzoWUa42vDMCGG6io+dL1QZevH7TWYjp3I8+wr60OHxhCPXMYIQhlU0QBTc44K2g6/iXsoEqF52M0oD3X8jXWc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mtOV18ZE; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mtOV18ZE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9E2FC116C6; Thu, 22 Jan 2026 04:21:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1769055685; bh=PnCFLDk3rvEhNj2n5M073CcTOotus4sbq8LaiP3P8O8=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=mtOV18ZEQiu1ZcgbhK1vU/XF45dx5yD/hB5eTY0+HLKdyK0dhDruMRzBb+8PcRGsN D8wNaKQqg7bL6xgHg9FoHvf/rV56sQU+3sDKOmnrc3laE8WSDLh+PSSw6JrQ/UbGa/ IjQWR7wEtUjls/tb0RTvdV+8Qv9ACep+XbO+AJ3F3u7nGrArJnwYpMWzii5oNJFqFf /K5Lg3YjdtXG84xn84dkyLV9dAdjfpnO1jJrqLgP/KAX0n6hJv/YWxgyNUbo1GixaG /kkaNk1Ub6V6Hmyt+DQ2hmV2afrAErTJ65MC2KkvAZLk/9h0fSE16JnsQNhjMOQXrZ +JplV6wLcAPtA== Message-ID: Date: Thu, 22 Jan 2026 12:21:28 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: chao@kernel.org, LKML Subject: Re: [PATCH] erofs: improve LZ4 error strings To: Gao Xiang , linux-erofs@lists.ozlabs.org References: <20251219064336.684930-1-hsiangkao@linux.alibaba.com> Content-Language: en-US From: Chao Yu In-Reply-To: <20251219064336.684930-1-hsiangkao@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/19/2025 2:43 PM, Gao Xiang wrote: > Just like what was done for other algorithms, let's propagate detailed > error reasons for LZ4 instead of just -EFSCORRUPTED to users: > > "corrupted compressed data": > the compressed data is malformed or > destination buffer is not large enough > > "unexpected end of stream": > the compressed stream ends normally, but without producing enough > decompressed data. > > "compressed data start not found": > can be returned by z_erofs_fixup_insize(). > > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks,