Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp705022rdb; Thu, 22 Feb 2024 18:01:10 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW4y4Yz1sD3KEs2p6Bstl6MW9qa+4ZPT8/b368aFKaQUyh9R4nkvweKCne8oceQLEsFXx0PUN5l/3UB6uQVMHlU+uI0G1e/OqCQ7brZSg== X-Google-Smtp-Source: AGHT+IHIZxNoEP9FTohU+mK7JjfnVMseASkrrJ2O3Pzo2JoTnjBl2RnpI4xJvwotsJs6MhgWCM0C X-Received: by 2002:a17:906:48d9:b0:a3e:c472:2df with SMTP id d25-20020a17090648d900b00a3ec47202dfmr275117ejt.56.1708653670598; Thu, 22 Feb 2024 18:01:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708653670; cv=pass; d=google.com; s=arc-20160816; b=SPv5TgvjP4sVbhznXMLQyNpsfw2GEnIwQ+85fw1y+ErEp29SPOp/OcAlCPfPRSGobo 0aTEizKII8vd/rZZ3jK2MRYfQeBNdUJGOxFCZAcRoCtliJarR2G1ZyxYdEfxok1VgujE O4uFkgUA+ofBex5duGERjAD1ooEkiMOWXAog6+0aCJWAwXRTvkyZ6w+OmGxQMKnEaIAM 9czy97ZlTT4uOWg9Q3rF01LSCuDDJNhpw4RNswEOfelJEbKteNNLRtCYGjIvqh7PbPwb BoeOOf5VT73EMDAzXEfQTojh3YcqUqbpgKfTxazBFM475OUhunyYko+yZ4m/6q6D5MXU UVgA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:date:references:in-reply-to:subject:cc:to :from; bh=bNJFDdasz9tNzf6OjdMA/3+IzyRRheiI/lFnkt1TzOg=; fh=8fMNz5XLes1q6KgZpQVNR7IFjb0t+7u9G1PE29ucuLE=; b=Bgx5OwdTe6leJrlmpQmPf970CIxMJfdr9nizyI80xi0Qb7OA5ChdUoB/ALKY8+i0lx TebBbIIajB0yJx1RZkUU24TP3AycqOVMOIVD50c/uiDrLZjNW9zjF7Vq3Y49/9e2xcMj niskNkuRxwLNj+41YCxk/YmsDiSxo72yvpWAdqHXiAAg4J4ayx4PKeU7CpKVWqc9oWjA P9d2m/jhoNoA4i+l8u6uHpocYpmZ+dOKvew5o3TqTtlcfFdK292gOtu/9/l4Tp6pY32p yRq+rDNHIrroNHZ3DYISy1zM+j/1g8pF7K8Ivu5nJ7Y+JkjIarZleMTPe2EKf/BvA7WU 2dkQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=parknet.co.jp); spf=pass (google.com: domain of linux-kernel+bounces-77668-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77668-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ho12-20020a1709070e8c00b00a3f5732bdc1si1690788ejc.376.2024.02.22.18.01.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 18:01:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77668-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=parknet.co.jp); spf=pass (google.com: domain of linux-kernel+bounces-77668-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77668-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4EC591F24B39 for ; Fri, 23 Feb 2024 02:01:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D88DCBE48; Fri, 23 Feb 2024 02:01:00 +0000 (UTC) Received: from mail.parknet.co.jp (mail.parknet.co.jp [210.171.160.6]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 74F72B65F; Fri, 23 Feb 2024 02:00:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.171.160.6 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708653660; cv=none; b=mNwnNQXMNY+w5xFHjsMPy5GxK35xh0QpAxH3tsvpGtxiBMmG6X1kef3jFoVdxbwVrc4WgN2qqtCaHzXwBFkq45ZwqMXGe+4SgLmkKpuMRWNaiQBcS8knFO3xt7zCsKwunxktXhVa8yq+SsaXZPRW78/wGRueGi32Mq6+wPMcQqk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708653660; c=relaxed/simple; bh=tJiSDAP6ww9IEiLJBdFQMRvh+Pqs9jlbiF9Qlg7Fqa0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=FDjMQtNb8EjQChZlWcE8GUO/Ge+thYGRVH1cZbYWkCBIQdLdPPyFtq3DeZa78pMqDAmQtJPfvsO5n4iZXqpz0q8DiZXvu2QH/zqr1Tj5j6V73veNlVaHay8maP1KRgArvm1jO9AwN62HuDtq4C9QeosbRLJFE8YdauY42Sq7vEQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mail.parknet.co.jp; spf=pass smtp.mailfrom=parknet.co.jp; arc=none smtp.client-ip=210.171.160.6 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mail.parknet.co.jp Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=parknet.co.jp Received: from ibmpc.myhome.or.jp (server.parknet.ne.jp [210.171.168.39]) by mail.parknet.co.jp (Postfix) with ESMTPSA id C7B95233BA7E; Fri, 23 Feb 2024 10:52:14 +0900 (JST) Received: from devron.myhome.or.jp (foobar@devron.myhome.or.jp [192.168.0.3]) by ibmpc.myhome.or.jp (8.18.1/8.18.1/Debian-1) with ESMTPS id 41N1qDIW204627 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 23 Feb 2024 10:52:14 +0900 Received: from devron.myhome.or.jp (foobar@localhost [127.0.0.1]) by devron.myhome.or.jp (8.18.1/8.18.1/Debian-1) with ESMTPS id 41N1qDo8963449 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 23 Feb 2024 10:52:13 +0900 Received: (from hirofumi@localhost) by devron.myhome.or.jp (8.18.1/8.18.1/Submit) id 41N1qCr5963448; Fri, 23 Feb 2024 10:52:12 +0900 From: OGAWA Hirofumi To: Thadeu Lima de Souza Cascardo 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 In-Reply-To: <20240222203013.2649457-1-cascardo@igalia.com> (Thadeu Lima de Souza Cascardo's message of "Thu, 22 Feb 2024 17:30:13 -0300") References: <20240222203013.2649457-1-cascardo@igalia.com> Date: Fri, 23 Feb 2024 10:52:12 +0900 Message-ID: <87bk88oskz.fsf@mail.parknet.co.jp> User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Thadeu Lima de Souza Cascardo writes: > The tools used for creating images for the Lego Mindstrom EV3 are not > adding '.' and '..' entry in the 'Projects' directory. > > Without this fix, the kernel can not fill the inode structure for > 'Projects' directory. > > See https://github.com/microsoft/pxt-ev3/issues/980 > And https://github.com/microsoft/uf2-linux/issues/6 > > When counting the number of subdirs, ignore .. subdir and add one when > setting the initial link count for directories. This way, when .. is > present, it is still accounted for, and when neither . or .. are present, a > single link is still done, as it should, since this link would be the one > from the parent directory. > > With this fix applied, we can mount an image with such empty directories, > access them, create subdirectories and remove them. This looks like the bug of those tools, isn't it? Thanks. -- OGAWA Hirofumi