Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7101729rdb; Wed, 3 Jan 2024 04:56:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IH0pzanQX6ho6YJYeEf+qSzkA9IAb7wpuOBtsDVEJBSQfLQLiq2TPmOXO3jgwVxrqaTuPV5 X-Received: by 2002:a17:902:ef95:b0:1d3:be34:7869 with SMTP id iz21-20020a170902ef9500b001d3be347869mr8007701plb.45.1704286576326; Wed, 03 Jan 2024 04:56:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704286576; cv=none; d=google.com; s=arc-20160816; b=JKYyGPAp4zScc0GVRHBJeVL0ZK2eXCTC80tvz7VMV+u/oSbXCATRM+VLu1R1uT4OdP Uxyg95zZ2HEErScD2LHsWpwYXEz5aKiKifzKdm1FrbwkclfYF9zbBYLxK9jAMCiOAGJb tBKHT87sHgjKvhOPNAvd5OnoW/mI9zAcTloOYJxN8injH7VdP6wcWPBVfM9AVCEjIREa HF4mATEDgO1vsT6alpzsebBIXtlEuYLIhzBZ/FI5z0Jb5iqi2LsKZr9OE4GsKZcai6Ev DuQWXB1qeJUvSCfXVweBpwq6JRQRDFFr63/R5ci3KTRqTw1nDJxJXYvpn+lr5y8gKQfx Yt+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=thread-index:thread-topic:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject :references:in-reply-to:message-id:cc:to:from:date; bh=XwU8MfoCLm5TvqiPBepb6JCOUfSpGzKmFpBGco+j57E=; fh=K5fi08nvyvjTHbs3fG9A/wz537YMGgjcx5VBWchWW8k=; b=lxCcnADXq+fJ8YF3OA7AmX46avPCE6Q3c2nwK+qybGo+ydMWYpBI4jtD37qZdHcx1O hJGCPNz14Q4bBwYjWcXwv1+XbkpuulGZv3VFj38Slk0ICaohfvXVgQnfLy25+U88FSQx dZzsVOY5l55QQu1tFJTD3LKuqc+0jnvU76A8w6etmZMKH2Eeefg25ozaXvdckCye6vuu l6jTkIkgsxHs3xA7MfFuK86m4FmPhca/PdZxfflTtjnzQ919EJIhNIBanOA8PRc3lu35 poXigKDPOZvGos6E9lamR1q6eh5PERXA9lNBEC655rso18q7WqaKwBOqlTR+jio4mMbP TYqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-15541-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15541-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u2-20020a170902e80200b001d4abccef2asi6309940plg.139.2024.01.03.04.56.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 04:56:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15541-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-15541-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15541-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id F37EB284059 for ; Wed, 3 Jan 2024 12:56:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3011919BC3; Wed, 3 Jan 2024 12:55:41 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) (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 80A69199D1 for ; Wed, 3 Jan 2024 12:55:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nod.at Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nod.at Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 28528626FB0A; Wed, 3 Jan 2024 13:55:35 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 7xvMlIEQrAr9; Wed, 3 Jan 2024 13:55:34 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 897A9626FB0F; Wed, 3 Jan 2024 13:55:34 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id feRsaCc2sddh; Wed, 3 Jan 2024 13:55:34 +0100 (CET) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id 630CD622F598; Wed, 3 Jan 2024 13:55:34 +0100 (CET) Date: Wed, 3 Jan 2024 13:55:34 +0100 (CET) From: Richard Weinberger To: chengzhihao1 Cc: david oberhollenzer , Miquel Raynal , Sascha Hauer , Tudor Ambarus , linux-kernel , linux-mtd Message-ID: <939427292.194880.1704286534231.JavaMail.zimbra@nod.at> In-Reply-To: References: <20231228014112.2836317-1-chengzhihao1@huawei.com> <1145531757.175508.1703844362355.JavaMail.zimbra@nod.at> <13b259ca-b32f-a8d6-5e11-8bb38df72f5c@huawei.com> <642239519.177270.1703884138999.JavaMail.zimbra@nod.at> <535616666.192239.1704228332389.JavaMail.zimbra@nod.at> <460eb02e-8937-282c-62c5-6ea606324b0e@huawei.com> Subject: Re: [PATCH RFC 00/17] ubifs: Add filesystem repair support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF97 (Linux)/8.8.12_GA_3809) Thread-Topic: ubifs: Add filesystem repair support Thread-Index: BXUjUihmAOjaNq4Zv4hi8fz+n/56vw== ----- Urspr=C3=BCngliche Mail ----- > Von: "chengzhihao1" > How about merging 3(a) and 3(b) as one mode(dangerous mode)? If fsck can > get a good TNC(all non-leaf index nodes are valid), fsck executes as > 3(a) describes. If fsck cannot find a good TNC, fsck executes as 3(b) > and reminds user that "TNC is damaged, nodes dropping is not awared". Well, you can make all modes combinable. Right now I don't care much about the user interface. But offering much flexibility is a worthwhile goal. At the end it should be crystal clear to the user of fsck.ubifs whether it fixed the file system by applying dangerous methods or not. Want I want to avoid by all means is a tool which blindly alters the filesystem just to stop UBIFS complaining about it. Thanks, //richard