Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 62FE9EB48EE for ; Thu, 12 Feb 2026 09:13:45 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4fBV3C6Sj6z2yFm; Thu, 12 Feb 2026 20:13:43 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=115.124.30.124 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1770887623; cv=none; b=XZ0m7KyHcBN6zwC8ppGeMHn4Z2cvo94ywiHzrD+sz8NybGBEYKIH1pddQ/rFR/CJ0SgeLZLwRu3kOzEdazhOfObPs6y6eANRxO5B52Tmp6/mU/pO/CAWV/pyz+7O0371QKRIgOxw9xyMgNVui+sOq8uXMf8z8xfKukF6UwSuzmidGP+s+ky+Kkp9uvY5WwnfBbriXj5EMwuvk9fOYL2IP0dXEhGxRnQwWByG+3BtCdPloQItTJEe0UR7hcsX5UdTTdPlrHFnnozdBHvyvbzcFk2s5Z8vCaYcIDvM7ZSai8nzaoPrjyT3lbFtHTvVtYPRBdhD4ooSydEnfPBYCEKXLA== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1770887623; c=relaxed/relaxed; bh=T5vDesjdOoGhx56ZacyCk6H9qHoYR/+fLyNaMI3C8lY=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=gAr6eZgzSGdMEyI+IjanNf64u7kCKcZH9iZ5RHJmAvseWa98DuzxuLqNRu/TPvdcU0vJkE+KqiswUjQH79gIgz/AvEoaqtdOj/Gbtk99GkpaRbkGYxWD5ozOOStpW6GWJ4Z8ZR/GBYCPJYjivh17jr9BDKUxiQse5gNxY2YKQHZfewpYSLmMMFsXW2In55Soef7cwlfYZ9sfhFc3HdaK+RaIpkr7xrmBhHms6tX2Odjc06j+87ub3sdyFYvMyXeNUkPL3A+416jtiZcYprKsRa96m42pF+c6QKQZLm33UYi1U5G2dx3PZzJA86+TatjfE5ezYTkFNjiNUBbYIEM0Wg== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; dkim=pass (1024-bit key; unprotected) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.a=rsa-sha256 header.s=default header.b=eBkk5Zhi; dkim-atps=neutral; spf=pass (client-ip=115.124.30.124; helo=out30-124.freemail.mail.aliyun.com; envelope-from=hsiangkao@linux.alibaba.com; receiver=lists.ozlabs.org) smtp.mailfrom=linux.alibaba.com Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.a=rsa-sha256 header.s=default header.b=eBkk5Zhi; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux.alibaba.com (client-ip=115.124.30.124; helo=out30-124.freemail.mail.aliyun.com; envelope-from=hsiangkao@linux.alibaba.com; receiver=lists.ozlabs.org) Received: from out30-124.freemail.mail.aliyun.com (out30-124.freemail.mail.aliyun.com [115.124.30.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4fBV39291cz2xlh for ; Thu, 12 Feb 2026 20:13:39 +1100 (AEDT) DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1770887613; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=T5vDesjdOoGhx56ZacyCk6H9qHoYR/+fLyNaMI3C8lY=; b=eBkk5Zhi7NXreyqqx/1QfFqeXSanfkkMuEMERcj6KTnH3tpIuMJ+OKRHPv9YofrCcO3v781RTMFXssfuxRAfuN1FjkBDoi9Rnqi61p+F2rA+4w4TTHm5rPKo3solZJUrlhNSh+8sY7EbdaCh5a7b13ospxTG4PiP31lb9KSWz58= Received: from 30.42.35.106(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0Wz4WUyF_1770887611 cluster:ay36) by smtp.aliyun-inc.com; Thu, 12 Feb 2026 17:13:31 +0800 Message-ID: Date: Thu, 12 Feb 2026 17:13:31 +0800 X-Mailing-List: linux-erofs@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] erofs-utils: lib: relax erofs_write_device_table() device table check To: Jonathan Calmels , linux-erofs@lists.ozlabs.org, xiang@kernel.org References: <20260212001302.72193-2-jcalmels@nvidia.com> From: Gao Xiang In-Reply-To: <20260212001302.72193-2-jcalmels@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Jonathan, On 2026/2/12 08:13, Jonathan Calmels wrote: > Avoid returning an error in erofs_write_device_table() > if a new device slot table hasn't been allocated. > Rationale is to allow erofs_importer_flush_all() to succeed when > dealing with images with pre-existing device slots. > > Signed-off-by: Jonathan Calmels Thanks for the patch, could you elaborate how to use this? A detailed command line usage would be better. (Also honestly I will try to release erofs-utils 1.9 in a few days for the upcoming ubuntu LTS, so I have to finish erofs fsmerge feature for compression layout after the version is released...) Thanks, Gao Xiang > --- > lib/super.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/super.c b/lib/super.c > index a203f96..d38396f 100644 > --- a/lib/super.c > +++ b/lib/super.c > @@ -392,7 +392,7 @@ int erofs_write_device_table(struct erofs_sb_info *sbi) > if (!sbi->extra_devices) > goto out; > if (!bh) > - return -EINVAL; > + goto out; > > pos = erofs_btell(bh, false); > if (pos == EROFS_NULL_ADDR) {