Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2285872rbb; Tue, 27 Feb 2024 17:53:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXc0sDIetF+hNG8s0riccGqwF1+4Oa0rNUGPmq3OXQ5OCzdsGsmgtsr7vZiBTwYtSrA9ulkusKQOJXMDxAW/o79jNGF/QY3H56nHM9yDA== X-Google-Smtp-Source: AGHT+IFADd1/UK23x15OIGX1Qyo+d6Gd0rLjtCMcx+dEY7Shg1pvTBnBYhMHTLmPRijVOW2mXMME X-Received: by 2002:a05:6a20:6f8e:b0:19e:b6e0:8d26 with SMTP id gv14-20020a056a206f8e00b0019eb6e08d26mr4042022pzb.15.1709085213562; Tue, 27 Feb 2024 17:53:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709085213; cv=pass; d=google.com; s=arc-20160816; b=EKCM6MyYDNBb7WrOdIOx7R51ui96gOunqfBUZUtCNUgW6/FS0ptK1mFKMj/4+X35fk jl8N22i2cZRM79ZIRZ8/LwRMNnFOoMgz/macacTLikSnUdJoZicvcW49+1z99tjim59Q qAIMPLyWSRCF4F+zM4ERWnhiqaYHXjVTGQ4QazS0Nzv8686VFOCNCRZYqhg5vj+j3EgR QmM0g2auyeZfsTkKpouVexCmyuBQuKalAMsR1y8bXcCWB2HBeVBrq66tyG2xENSUdwsF UC6ABKuO1YlzdB1AF3oSsZOKp6EAgkJBrJDrGXcEBjyPBeGmF0zRApSkiIBXRzVDfxiP /h5A== 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=oDQT1MuOQr0MialEbQYNMHgPmaiScAneNkAYisXVH8I=; fh=nIP8SQRmPmENrERmvbItxwJ1ZXcGbCSzfAoKPtB+zfU=; b=qSU9iHLjhkyFUtkA0hZ1gWrxB+zo3LrEBg/iMpBWNtNRxqei4tvzrF27WsdF9WQUvU hDUqLe2Vx/GwRMxXFE5Kkbq+MTMvfv9dYpKVFO8FXI636CYThbZFTxwTN944MnKs2pqQ K/stnD8G0F/O8DZW6/N5UAwOd3Z7gebME2BCcb0F339ajR/4dVo0S6GZUGI8dFIy5D/8 DcGWBkpLdiTcA6yEmFasZttSEGrj5aoXWK1d4RNwxOWPX2nQ7mrFZz1S4Ygp+0ADFqtN YrdVVeawm/O+z+Ts4TzfX0RnqQ/YA3dcP4zBJlWt9HGEyCQwd3gztD8wxvDZF8KsJld2 4RGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=kzRYekOS; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-84381-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84381-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 b17-20020a170902ed1100b001dbfaa6d4absi2345013pld.596.2024.02.27.17.53.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 17:53:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84381-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=kzRYekOS; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-84381-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84381-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 35B4D28BD30 for ; Wed, 28 Feb 2024 01:52:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 309431DFFA; Wed, 28 Feb 2024 01:42:37 +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="kzRYekOS" 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 8267F1D53C; Wed, 28 Feb 2024 01:42:32 +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=1709084556; cv=none; b=cnH44BMV6R2DH2uMv2Gxe0dJL34x97EqyuqHNIBAMe99ICYNU8+Q72F/FlqW4pO9T7R0GhkuYjOYWDxRMf0V3g8p4YEf4NIaw6OjjdTzJDKXP0uKoLg+mdgW56c2TWtUsjMBrUP1mEgQd7qH6r6xLG96knBzf5USHuij7MqKGnA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709084556; c=relaxed/simple; bh=UG1mSWXXsmvRBtW+jWhlxw6CUZyIxQkORIvdZhnZ1qg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Ot+AND9lwrEufIxHP+Ged80QeGnsF1/vHiCXH8WjwBLLkc+niX3obNJKGfleC5shWO21UIHABGsY3b8FqCB4PYDNgshkBmRLvEijRrfLdI1VNnXt0/LLv/eJR/vC94WeEL1LteqLvs4U5ZmG50d67BrUaSPPQCK1+IJ52DDhgvU= 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=kzRYekOS; 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=oDQT1MuOQr0MialEbQYNMHgPmaiScAneNkAYisXVH8I=; b=kzRYekOSrOdZsQ407V1OClstI/ MVO+DYisqmMrwsSHU/XtCq/AMXcrep9n8JffxNGeH0bzue9+8thl73VPhF5JrWT3l5rVmSOjwjuqk +PYhSLOxwyKJp0HGPlHDbceoTXrnvUrGQ34WJnZbe5UTU2Qu9BEGCDatyaq6PQInYDPIr3O8Xs9b9 zIsfCZ4DW9Syg/PbSJu0LOl4C8lrRd8rkpddY24Ckfo99xWUyIwTvVN7fyeHF4ikGn79VCzzx1q48 hhCpntaBnuuyqPse8pV8dfqU/+rfzKEVg7fmProrskVsdclvZg/wOaL6A5W+FTiZ6Zgpk8YrWDam8 AAVQnoDQ==; Received: from [179.93.184.120] (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 1rf8xl-0046ZY-IH; Wed, 28 Feb 2024 02:42:25 +0100 Date: Tue, 27 Feb 2024 22:42:15 -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> <87v86fnz2o.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: <87v86fnz2o.fsf@mail.parknet.co.jp> On Fri, Feb 23, 2024 at 09:29:35PM +0900, OGAWA Hirofumi wrote: > Thadeu Lima de Souza Cascardo writes: > > > 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. > > There are many corrupted images, and attacks. Allowing too wide is > danger for fs. > > BTW, this image works and pass fsck on windows? When I quickly tested > ev3fs.zip (https://github.com/microsoft/pxt-ev3/issues/980) on windows > on qemu, it didn't seem recognized as FAT. I can wrongly tested though. > > Thanks. > -- > OGAWA Hirofumi The test image I managed to create mounts just fine on Windows. New subdirectories can be created there just as well. Regards. Cascardo.