Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1718086rwl; Thu, 30 Mar 2023 00:04:20 -0700 (PDT) X-Google-Smtp-Source: AKy350Zo3moft4w9mKmfNBUilvZ24+i0+iLaSw+W5IybMAzETbRnnvZFnlq1KQJ/9xPp+HaVXqb6 X-Received: by 2002:a17:90a:1a48:b0:237:c5cc:15bf with SMTP id 8-20020a17090a1a4800b00237c5cc15bfmr23772517pjl.13.1680159860275; Thu, 30 Mar 2023 00:04:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680159860; cv=none; d=google.com; s=arc-20160816; b=0gkS4yymI9Twd+N2HSszmTno00h470+/w+lKXG3GvrsUNxj9yMtSTlRePx/oS+F+Wx IFAU920WlEG27YG/qMBbMNTIIFv58guJttK5qcN5bTDY43+h8OvWEuKCdtagyGSbXoEW 4JDX9SoGkpH7eKPz5y9TeyMIfNFO9TLvoEwctuD+YZzDlfwlv7FVIAuzp47YcVs1JUDQ hR22FcJmA84ycH5/W021X1p53nwvumOjR0II8w4NNVcuPgZeTtL+9atfJIMDcdIKFrtv vOyBJHTf1o0LjzS+RryM1YVS3Oa/nsf6KArJcdRWy9JP1Y7r55DbXw75PRYOJ1+Lk8c1 GzMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Q804YsL1DO9z6nIHZrCLVWgn39zHL/WI138pvbsAQuM=; b=uRLmZ65dv9q3B+f3c5IakWXW1R6+buhuM6wlo2jFd8MNlUzEVkes1A/dSDvLtbWRRh 7B2Evdz+u2Me33BVFWqJ1fYyOczVeVxp7SXUFOdjue9Hz2zoCP1a4PYbFjP3N8sNt757 SnmSu6cAOSdVjUPbB5rNUcAecDUSmntoE2WZOpHxgW6Bhu0IBNY9R+H0RH0G2wxxfrF5 SEVFbiF+SA6DmXbO+MkXOy29NfnT8qLQwvASOuYKC2VLQATj0wZ0p1gfPqKvRSkQsLL3 5DmWPD6jvaeJHEPpGP/Imq3j1JCE2o8+zczd9bQASAxK6BlCgYKfY83ttPZ12lnCTctr IjGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jx5-20020a170903138500b001a1a6eb72aesi31676334plb.517.2023.03.30.00.04.06; Thu, 30 Mar 2023 00:04:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230381AbjC3G5o (ORCPT + 99 others); Thu, 30 Mar 2023 02:57:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229913AbjC3G5m (ORCPT ); Thu, 30 Mar 2023 02:57:42 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C5CA61B3 for ; Wed, 29 Mar 2023 23:57:37 -0700 (PDT) Received: from dggpeml500016.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4PnDfx2RsWzgZyt; Thu, 30 Mar 2023 14:54:17 +0800 (CST) Received: from huawei.com (10.175.127.227) by dggpeml500016.china.huawei.com (7.185.36.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 30 Mar 2023 14:57:34 +0800 From: zhanchengbin To: , CC: , , , , zhanchengbin Subject: [PATCH v2 0/2] Add some msg for io error Date: Thu, 30 Mar 2023 14:56:54 +0800 Message-ID: <20230330065656.3275785-1-zhanchengbin1@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpeml500016.china.huawei.com (7.185.36.70) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org If there is an EIO during the process of fsck, the user can be notified of it. Diff v2 Vs v1: 1) Optimize printing information 2) Remove the interaction after fsync failed and return an error. 3) Rearrange the patch sets. zhanchengbin (2): lib/ext2fs: add error handle in unix_flush and unix_write_byte e2fsck: add sync error handle to e2fsck. e2fsck/ehandler.c | 22 ++++++++++++++++++++++ lib/ext2fs/ext2_io.h | 2 ++ lib/ext2fs/unix_io.c | 37 ++++++++++++++++++++++++++----------- 3 files changed, 50 insertions(+), 11 deletions(-) -- 2.31.1