Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp853775rdb; Fri, 23 Feb 2024 01:59:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV5vv5kez9CJoR6LV3f229RY5dUkFxxzbCWzv+tMHu9M8tDMky7qxXSoTN5zL5L3s63uLMl6FroXiIWZ+xnFNEfe59RAF+gaMTaTYnMmA== X-Google-Smtp-Source: AGHT+IFyGZ4v9s7P9IFT7jSVaoB8wWub3/qNbN9DIsjr8UmHiyPJqxryqhT6afNrPh9wnCZEXI/l X-Received: by 2002:a05:6a00:1795:b0:6e3:7331:3b7a with SMTP id s21-20020a056a00179500b006e373313b7amr1828603pfg.27.1708682369806; Fri, 23 Feb 2024 01:59:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708682369; cv=pass; d=google.com; s=arc-20160816; b=RV67+7GSn5u2jeT1/S8XPSK32FJ8y9vbLfatl5z7AgmhmzrXKF30XsxpEtyr6R6j18 kTqU0Qlb/svo9NrmuUFYDemwe5niYFakY5FArZ5wFCO5doIXFitEhFcYVAdp4j8z82Oh bi4bdpL4PLieV2Sk/ObtJUdn8yu8uL+WJC7+kOLlxAGEDRAChjGA8rTlakN60Bok3501 JB/YoZ76navppLzrMAYMUkl9AilxFCOEbKNAenTBDkz+TLvLec/00oFTQbxcvKpjxPzV AXYadr0Rm3zvTmnNM3jcSnW9RTFg9LF95Rj/V4Lojupef9dSps2oWqvs9ocQ4IRk1xsd Bl+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=91eZlYfF9t9UL1ZmDb9X25hoe2Z5HivbHvwbCpyCGw4=; fh=nIP8SQRmPmENrERmvbItxwJ1ZXcGbCSzfAoKPtB+zfU=; b=qZuCDqAs0tEZSK0WGByH3lHnk6DC6pinddCGK79X814GX6nxq/ETHYviudcwgTqVvP 4UJ5yM4loJoSlANqkWwAJ2+Wpa+6woO2UAO6Gcz3RhRD8ekLkIPqMYLtJ+Ny2bW2Oilx EBrS2zD1e3Agg2TbIoyu0PwRHjJOWF/+ooiCB1r1PI7yt516kXT075Ns8ZdBX51Fxk2y rt3AF096L03kqfWWKRQCuieKO8nzWFTeZFBbr9d1sRaCCYUZLgDxmmUuYAnuSf7qgPty Nw/8wkFrypxjGflKlLP/6LOZvkSFpwhLQygE8dLZdZ9vrkQrVlB0YudZW7vZEfnrDoHg LYjw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=VYm1icMT; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-78092-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78092-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 jw16-20020a056a00929000b006e48686834bsi6082907pfb.42.2024.02.23.01.59.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 01:59:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78092-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; dkim=fail header.i=@igalia.com header.s=20170329 header.b=VYm1icMT; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-78092-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78092-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 84691286E0C for ; Fri, 23 Feb 2024 09:59:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 053245CDE0; Fri, 23 Feb 2024 09:59:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b="VYm1icMT" Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) (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 7E2C45C912; Fri, 23 Feb 2024 09:59:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.97.179.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708682360; cv=none; b=UYaOhJZkTOD0U7GwJewFAHhJPrGjfvd/qWU7EpmMadLtkQn+Os9hHi6y0IHIMCoaJja7kRujWo8rwGylqondMTLTV3HzWSqiHSYRfvxiYllCjtB0XVNMVctEK8gIGMetZp/QVuC+S5K12av1TxpHk7gJJCsp/u2ds8pINk5fYq0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708682360; c=relaxed/simple; bh=ypp+li3WDyr1XgKdhqQo23FL0DmPh0rbnUd3jDfC1xU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IZ1VPz/3ItPnZXz7sogVprMKscOwdL3hPhpu/EfivK3I9c5nr76uSI7oxZsRLVGWzc1kuQHPaZTdAlLLEySxjDeI4cTSHSub6M2v7UEEFuO0P00JjyaOoUsjLVP3oZd4HiRRvTP7fy9yNHsT6fYqpiw7yd9ZPKII8XPXqgceC1o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=igalia.com; spf=pass smtp.mailfrom=igalia.com; dkim=pass (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b=VYm1icMT; arc=none smtp.client-ip=213.97.179.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=igalia.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=igalia.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=91eZlYfF9t9UL1ZmDb9X25hoe2Z5HivbHvwbCpyCGw4=; b=VYm1icMTpRUDkVeYgkbJCXKUQw cR0yZF3bVBb1mzgntwWkCPUwzSAE8JzPfQk4hOjx5AiOEA5yzXuwDVHvhLXujudoL1VSzFi4i7xh2 2BnP1FURZ4m7qr8wgb2agi8i0r1flcWBMbMvF64RdxjiT0WocoshTQmsELZB7jxbZcbpQq6VVTN9a 8VY6cJ4MUUzrZxqJJFlR12P9EBINqujBb7FMfYeK702oX9olAHlbxNJHjtMHT22hs1cPjMOiHZ2Cj HDN5231t0bwcD0kGZJ5dc3HllzlC5SyZpmCdfyrT+czn0t96FPCdgoTKuwLMDbC+/fLzQrXZsxORb XYI17aDQ==; Received: from [179.93.188.12] (helo=quatroqueijos.cascardo.eti.br) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1rdSKd-002dNb-Tv; Fri, 23 Feb 2024 10:59:04 +0100 Date: Fri, 23 Feb 2024 06:58:56 -0300 From: Thadeu Lima de Souza Cascardo To: OGAWA Hirofumi Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Gwendal Grignou , dlunev@chromium.org Subject: Re: [PATCH] fat: ignore .. subdir and always add a link to dirs Message-ID: References: <20240222203013.2649457-1-cascardo@igalia.com> <87bk88oskz.fsf@mail.parknet.co.jp> <874jdzpov7.fsf@mail.parknet.co.jp> <87zfvroa1c.fsf@mail.parknet.co.jp> 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=us-ascii Content-Disposition: inline In-Reply-To: <87zfvroa1c.fsf@mail.parknet.co.jp> On Fri, Feb 23, 2024 at 05:32:47PM +0900, OGAWA Hirofumi wrote: > OGAWA Hirofumi writes: > > > OK. > > > > If you want to add the workaround for this, it must emulate the correct > > format. I.e. sane link count even if without "."/"..". And furthermore > > it works for any operations. > > Of course, it must not affect the correct format. And it should not > accept the other really corrupted format. > -- > OGAWA Hirofumi So far, I have only seen expected correct behavior here: mkdir/rmdir inside the "bogus" directory works. rmdir of the "bogus" directory works. The only idiosyncrasies I can think of is that if neither "." or ".." are present, the directory will have a link of 1, instead of 2. And when listing the directory, those entries will not show up. Do you expect any of these to be corrected? It will require a more convoluted change. Right now, I think accepting the idiosyncratic behavior for the bogus filesystems is fine, as long as the correct filesystems continue to behave as before. Which seems to be the case here as far as my testing has shown. Thank you. Cascardo.