Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp72950lqs; Mon, 4 Mar 2024 15:37:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXE7HrTqR7YsSj7YURdjE3cIptj4vPwqB3Hf0Sm+RKeO81kREA/ZksnZiVJb/Xr1R3Ur6qn5sMYGxChhNdm6xlAxQBt+iXqT9LkZuDfgQ== X-Google-Smtp-Source: AGHT+IFXFAx5xtVozWr7Juk/8/jDM5EfZBDryTBKqy3230PNj4ENGQuK16+aOH24VKgWbTLcEhC8 X-Received: by 2002:a17:90a:9e4:b0:299:9d8:d7c9 with SMTP id 91-20020a17090a09e400b0029909d8d7c9mr8308785pjo.18.1709595464803; Mon, 04 Mar 2024 15:37:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709595464; cv=pass; d=google.com; s=arc-20160816; b=UTj/WdPxaOUg8XxzVwnO/0zwVWq7YrZu2FkoyhwtzuRGT6oqDRgfKAKL2yC+umuBL+ eWDUj1B0eahIk3dEfTHEzq12LE1gCmR+q4XcodOOUEjCmazDCm1D052uafweN7MqNbAm wNAabrWNk+vLiiVLI3ECBWVXKZIEsF5m5+oMquJUcIFYbDwqBHrZgCsABg5VbDtglwoJ WdvLINr4h2wbdp5KLQerRrYgh6WJ0f3Ie0ITDrEaH/nluD0jF/z5qtkrXqh8Xoj9S25M HKH+7zByJC05Wq8rxiow6CO9SMURemJyU7RlgW6JcJwoxxoYE6dQB1c9x6KMHVOmHlDe 2TkQ== 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=7DsSMFlL5qg2azIH7l+MCgrvgUctaUBWbPa4DPjIV08=; fh=nIP8SQRmPmENrERmvbItxwJ1ZXcGbCSzfAoKPtB+zfU=; b=rXEcxWecrdGmCwKtv+1ea2R6m3nY1XSDkkUjpTaigMgyItWC39lLN5pc1J5bNQDKhT qGkX/RTJCmYRG6Mk4ZZhQiNVFy7/m6TXAJC5JxvB5zeaBRmuG/2QCh8y0sT/sIVVSfrv t8Ehrge8FQGze1idEN6CGIlX1kkZ1eHXFOl4T3ZBgLrQ4MdGB/kHNafFEvWRU/5LHEER c11YtDA8gqtgo/95acUTCnAbPw1ej0MoPu8K5xlKruqakqqGbDobJ0Y8KgAjJMfY0iXK AJ6EQvR8GSjR516OLLJRPaQ6feXO75Ce/4zyYA6JZBJB9uSjSifBSprjzzK2nTRQrrhh Lhbg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=JdRGt6z8; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-91408-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91408-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 qi17-20020a17090b275100b0029b43ef634bsi3375698pjb.9.2024.03.04.15.37.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 15:37:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91408-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=JdRGt6z8; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-91408-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91408-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 72B26283A4C for ; Mon, 4 Mar 2024 23:37:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DBFCD7D06E; Mon, 4 Mar 2024 23:37:36 +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="JdRGt6z8" 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 611B61E4A2; Mon, 4 Mar 2024 23:37:31 +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=1709595455; cv=none; b=N2hhXzTp+LZyxAwctwB5eqqsf8wlYrZYVA3kfFRJUU4uhKyxOcvaC0P1dw5eW2qNveenNJfTEt+ygz7KvHAOi1Irp2CgKxbkYMRLgr+JEzERF9Z4bU3iH6dGtw/JqzfAUrFx4hsFEHmnlpFQzgmP363sHfs1DmRNjEx7aMwJRmo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709595455; c=relaxed/simple; bh=+rEQ1y9VkSnTHwSogsWbOYliPcdNnsQLMPnehdv2m7I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jIbO1yyehgMO1j4DfL2uRg5JzLofJYVAAk5QqNM1g2B9zTnHCUm0oH97C0GHS2Wz3EUQ1SK35vyAcyICcIK2LW4E4cGy/uzhew6i/tyy1mncEi+ztBB9g+gRcSn6HRauJ4jf63OYL97+FDN9iEsrWppuFfTGcQxV5ctZ6hdg8uY= 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=JdRGt6z8; 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=7DsSMFlL5qg2azIH7l+MCgrvgUctaUBWbPa4DPjIV08=; b=JdRGt6z8KhZlxvQ8lBZ0Ci6gbA DWSuQ5Zf0s+tchkJ6LPQkEUSWzGAQ58CBGFK4+ZWB2tP2B53MzSca/cEuV14E5gV9NFtvhHAmR5Yf gWgSq931e4lJcZlyzmTE+sSbm7/wwzVjcJzPPZiUAc0duUZLhWUUhDziAaCzYUvyw94f9HO8GTGP9 kCn3YSbnxqzCh6+puXV3nbm3JWwxYH5WHAVRNCbP1Kr/UFjyO6JRI6tK0gn5+XB5smSuh4wfU0NDe iCEXKgcP+cKkfnVdkuyAOqKSDQudycXGYehBTQndjshnYKcUieoig7+dL553ygWXjF6VBtj/c5Iwj 46gMeFGA==; 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 1rhHs6-0062J8-Nw; Tue, 05 Mar 2024 00:37:27 +0100 Date: Mon, 4 Mar 2024 20:37:21 -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> <87le75s1fg.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: On Wed, Feb 28, 2024 at 06:10:29AM -0300, Thadeu Lima de Souza Cascardo wrote: > On Wed, Feb 28, 2024 at 12:38:43PM +0900, OGAWA Hirofumi wrote: > > Thadeu Lima de Souza Cascardo writes: > > > > >> 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. > > > > Can you share the image somehow? And fsck (chkdsk, etc.) works without > > any complain? > > > > Thanks. > > -- > > OGAWA Hirofumi > > Checking the filesystem on Windows runs without any complains, but it turns the > directory into an useless lump of data. Without checking the filesystem, > creating and reading files from that directory works just fine. > > I tried to use gzip or xz to compress the very sparse filesystem image that I > got, but they made it larger on disk than it really was. So here is a script > and pieces of the filesystem that will create a sparse 8GB image. > > Thank you for looking into this. > Cascardo. Hi, OGAWA Hirofumi. What are your thoughts here? Should we make it possible to read such filesystems? Is the proposed approach acceptable? Thanks. Cascardo.