[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Zd74fjlVJZic8UxI@quatroqueijos.cascardo.eti.br>
Date: Wed, 28 Feb 2024 06:10:22 -0300
From: Thadeu Lima de Souza Cascardo <cascardo@...lia.com>
To: OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>
Cc: linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org,
Gwendal Grignou <gwendal@...omium.org>, dlunev@...omium.org
Subject: Re: [PATCH] fat: ignore .. subdir and always add a link to dirs
On Wed, Feb 28, 2024 at 12:38:43PM +0900, OGAWA Hirofumi wrote:
> Thadeu Lima de Souza Cascardo <cascardo@...lia.com> 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 <hirofumi@...l.parknet.co.jp>
> >
> > 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 <hirofumi@...l.parknet.co.jp>
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.
Download attachment "vfat2.img_1" of type "application/octet-stream" (4096 bytes)
Download attachment "vfat2.img_2" of type "application/octet-stream" (512 bytes)
Download attachment "vfat2.img_3" of type "application/octet-stream" (512 bytes)
Download attachment "vfat2.img_4" of type "application/octet-stream" (512 bytes)
Download attachment "vfat.sh" of type "application/x-sh" (192 bytes)
Powered by blists - more mailing lists