Received: by 2002:aa6:c429:0:b029:98:93ff:f56f with SMTP id g9csp4941308lkq; Thu, 10 Dec 2020 12:39:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwyaiIhh9lVM8uU/f080ZhQNFNP6KT+oPfdkO0gpMOZnieA55wwlZvHJN/eoFIrWzbE2C62 X-Received: by 2002:a17:906:2b95:: with SMTP id m21mr8229425ejg.134.1607632788668; Thu, 10 Dec 2020 12:39:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607632788; cv=none; d=google.com; s=arc-20160816; b=vHtSUM4mj2dBrjpBQkIsF4QqSbAT5opwpaUtajuCLUw1M1M0luC5BpAd4ul7oBll5W hC6n/i+K3voJ3LMMUQ5fq+5LiRYSMsdQ/RUMJayY7TDT+p9swXCGdch1CGo4g7tf0NiF VyP9C8jlVwMi8VFL1ldXXGWAA/hdm1XIULb0i850UXfrxyPhPbr9WX7Yvnaye8yNmpmU 4019/XiZmvuMaiqPhk14zi9aN7YBHAqAwCtstVZPwHPg/JfkHrYBPvZCRoeMObfT1TTS DjIZtKAXRDEV/UAhJZ43gpnRcZTJmckk4QmzJ7OxOXhu/1bzRdwux13lri2+TtKyWqUJ qEPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:organization:subject:cc:to:from; bh=gw7am/CX6GUAGyaK2ZrXBzXq2ondKVcOpdQ3w/WBrXU=; b=H9i58sk9L/rPZrmNiywC1kK1uae/21ryQpFgNHoaECqYhhiN1UwqO6OoHH0mvbib/G b4Mk3jbRbddsPT4fTOS7tt5cPqF9DhUF4rl91OB/Dek1P+m4AVVg5rQLSU7Wyj2gEH/V USweMWdSY2gdeM5GpmzZP6n9blzyp0aLQfwNip/yPsbLlkaP6SiTa4EG7AsrNIGNC7IR KLCvMdVHDwedy09blG4QdqrGN3w2ah6yFKP/Hjm+ZF0scuTNSZODMVU7BOHMU0rwZKGk q4uwYZyG0flWGxdjalCy69DYFvfk4isPiMed3Bp3Uz0m6+F87yI6Rnj8q3rJUElux09V K+Ug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q19si4001118edv.85.2020.12.10.12.39.17; Thu, 10 Dec 2020 12:39:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393782AbgLJUhl (ORCPT + 99 others); Thu, 10 Dec 2020 15:37:41 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:52264 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404659AbgLJUhe (ORCPT ); Thu, 10 Dec 2020 15:37:34 -0500 Received: from localhost (unknown [IPv6:2804:14c:132:242d::1000]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: krisman) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id E23071F45C51; Thu, 10 Dec 2020 20:36:51 +0000 (GMT) From: Gabriel Krisman Bertazi To: Arnaud Ferraris Cc: linux-ext4@vger.kernel.org, drosen@google.com, ebiggers@kernel.org, tytso@mit.edu Subject: Re: [PATCH RESEND v2 05/12] e2fsck: add new problem for casefolded name check Organization: Collabora References: <20201210150353.91843-1-arnaud.ferraris@collabora.com> <20201210150353.91843-6-arnaud.ferraris@collabora.com> Date: Thu, 10 Dec 2020 17:36:46 -0300 In-Reply-To: <20201210150353.91843-6-arnaud.ferraris@collabora.com> (Arnaud Ferraris's message of "Thu, 10 Dec 2020 16:03:46 +0100") Message-ID: <87im992yap.fsf@collabora.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Arnaud Ferraris writes: > --- > Changes in v2: > - added in this version > > e2fsck/problem.c | 5 +++++ > e2fsck/problem.h | 3 +++ > 2 files changed, 8 insertions(+) > > diff --git a/e2fsck/problem.c b/e2fsck/problem.c > index e79c853b..2b596303 100644 > --- a/e2fsck/problem.c > +++ b/e2fsck/problem.c > @@ -1805,6 +1805,11 @@ static struct e2fsck_problem problem_table[] = { > N_("Encrypted @E references @i %Di, which has a different encryption policy.\n"), > PROMPT_CLEAR, 0, 0, 0, 0 }, > > + /* Casefolded directory entry has illegal characters in its name */ > + { PR_2_BAD_CASEFOLDED_NAME, > + N_("@E has illegal UTF-8 characters in its name.\n"), > + PROMPT_FIX, 0, 0, 0, 0 }, > + > /* Pass 3 errors */ > > /* Pass 3: Checking directory connectivity */ > diff --git a/e2fsck/problem.h b/e2fsck/problem.h > index 4185e517..a8806fd4 100644 > --- a/e2fsck/problem.h > +++ b/e2fsck/problem.h > @@ -1028,6 +1028,9 @@ struct problem_context { > /* Encrypted directory contains file with different encryption policy */ > #define PR_2_INCONSISTENT_ENCRYPTION_POLICY 0x020052 > > +/* Casefolded directory entry has illegal characters in its name */ > +#define PR_2_BAD_CASEFOLDED_NAME 0x0200053 This should be 0x020053 (yours has an extra 0) > + > /* > * Pass 3 errors > */ -- Gabriel Krisman Bertazi