Received: by 2002:a05:7208:3188:b0:7e:5202:c8b4 with SMTP id r8csp846734rbd; Fri, 23 Feb 2024 05:34:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWbLoeS+zqDzvq0nbhPHDM7ZVJfqDB9di5Je//MHP+D3LLrXyK2TMfa6Olnj9wmFM98m1o1VgLtYWiV/2Yr89UXyBnozSku9uuDOEdQhw== X-Google-Smtp-Source: AGHT+IGxLzUd1fpuC1J5Zag4HZUkSQqsNjIiMhPmgKLYmZg5AmNyN8EZa6t5aMOT3P6R+eXe6wt9 X-Received: by 2002:a17:906:d93:b0:a3f:4fd8:53a4 with SMTP id m19-20020a1709060d9300b00a3f4fd853a4mr1789549eji.9.1708695249526; Fri, 23 Feb 2024 05:34:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708695249; cv=pass; d=google.com; s=arc-20160816; b=D40OQG+PMLfngM50Gp4PLJbSs8FMsRJhTtFr2AsP39U6ztjbk22/BZ+qQu8oRzjt4B xj4FgU87WELTM5549QpeEgJbH1w8b1ZwMu8haULiOaagbMIZfIN0luEOzDYjp4xhIzev 5dOvF+xfQHFFJtLJNyr9qFsBMegMw2wh7We8RP7cYrPJDPqmmZuOBcWrPAOgwhUrLu+d YqraXaSIURNa7/7ADKMkxjuI3BSS8GM+b+rZst7XCg6jIGCeWJvFLg/leE5gQrzoc2kB VFj1iLsDozq1D+pDHCWzHszH9UDnWVqUhPOoM2Jn+87htn4MOEQ8fzwW71DR2PgV8kT7 OmPQ== 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=4+ALhPuYcxWwH/SNYa5YOlZ50uESGdizB1+wfDCVL6Q=; fh=nIP8SQRmPmENrERmvbItxwJ1ZXcGbCSzfAoKPtB+zfU=; b=ykl6UvemQhlyGwPBn19nVNKERoT1Fbq4VbOiHjE2F+LC3N3zpswsSgTEYNbRsqJMiW NfkOEzMV7J7PNwaG4oe/qA5irxCRL2OA4N1c1FjDniW2slOmEidrX2y0B2H3uqvtgAwu 6TnpoSk3F5mngPpEeMuibmNRxgETOoGMxPPHkeB8Fn+Jv2H24+UWzZ4zm6DKEYlvdFUs XtjcRzdCd51XOPnq5HQNOAVrwgvKVmOaQcNcx0Gd5gnDJy0qRFC6/tTdBMiXSVdJls1l JEkbcR01zJsqodNc9wRTGy49nT674ns9o9xqGcHS+w3nLQk/yuD3T4nZ17ZGlv9DlHlK tPgA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=f96jtLrL; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-78385-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78385-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 a24-20020a170906245800b00a3f81411df1si1478825ejb.1016.2024.02.23.05.34.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 05:34:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78385-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; dkim=fail header.i=@igalia.com header.s=20170329 header.b=f96jtLrL; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-78385-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78385-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 4C6501F22F74 for ; Fri, 23 Feb 2024 13:34:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ED2767EEF9; Fri, 23 Feb 2024 13:33:51 +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="f96jtLrL" 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 5D5085D464; Fri, 23 Feb 2024 13:33:43 +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=1708695231; cv=none; b=vDsfrLRRBkgfJKMnTZXYTfNIRYHbi7S8Y6b5wpFLKNekAj4UanohXRcsicPvx0y+UaePgdGGXhI4rSm1vGbYrdmBEENKUK0RJtj/oz/FlZKEdVvMrTVhQCGhWiqbCAXnwzXKzH6UFk92OZ0ULsD3wqb8ziHFTomSO36XmoRQBuA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708695231; c=relaxed/simple; bh=82xM9lLAtgLWnaztA20ypr52fvBlm2+As3g364oe+eQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UsNRxzzW3cFt/LbakJWqEgzMMXKOSIwK4hNrsICe55JDa4VWRRRG/e7E0oY9aBmr3/SLHgPnnJO20YsI6zQEFq4QDUKcnV98GiRfKJ8mhZPl3+bWIi+fGmKVQ9d+0sFE8NJxAZtr8258kutV3eTu+UOOHJV27Mqid9TCVgOitYY= 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=f96jtLrL; 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=4+ALhPuYcxWwH/SNYa5YOlZ50uESGdizB1+wfDCVL6Q=; b=f96jtLrLxOSQvHkUyoney/lDIf FmaOuJUbMaIaJWb68rnYYopini8SwEMs+/Z2Demf58VK+ODk26NoNWyv5auWuhV++Hvw+3siDxLuy i0fxNvz/QCDRQZlZCnFnN+nLG25EodAgJzt2TTO6aKiZFKkm50C/kxQ4KT1Mgt0sPK7/AlY/vcGQI vVvAMiP4R5VaW4IoZ18pgXAkMWWLMGY1vctv9p7STyCLcQxFt0XKHSW8dtMaKCKLOW8oWeNTXDuwF 96EoJPaS0Z5aDGzBYVg2v36eOqRP44lT9q1futg2cbejcPzC2Mx7nabzisGxmPR73wn7JE+REyOvf HSI4atHA==; Received: from 179-125-75-196-dinamico.pombonet.net.br ([179.125.75.196] 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 1rdVgK-002gkj-IF; Fri, 23 Feb 2024 14:33:41 +0100 Date: Fri, 23 Feb 2024 10:33:35 -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 Testing on FreeDOS, it is able to access the directory and create subdirectories there. "." and ".." are missing when using "DIR" command. And dosfsck complains about the missing "." and ".." but states it is not able to fix those yet. But accessing the directory works nonetheless. Cascardo.