From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
To: Anupam Aggarwal <anupam.al@samsung.com>
Cc: AMIT SAHRAWAT <a.sahrawat@samsung.com>,
VIVEK TRIVEDI <t.vivek@samsung.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] fs: fat: add check for dir size in fat_calc_dir_size
Date: Mon, 06 Jul 2020 23:22:58 +0900 [thread overview]
Message-ID: <87pn98g1tp.fsf@mail.parknet.co.jp> (raw)
In-Reply-To: <20200706115303epcms5p262a630cd1517632c48e4f72a68d98b0c@epcms5p2> (Anupam Aggarwal's message of "Mon, 06 Jul 2020 17:23:03 +0530")
Anupam Aggarwal <anupam.al@samsung.com> writes:
>>Anyway, fsck would be main way. And on other hand, if we want to add
>>mitigation for corruption, we would have to see much more details of
>>this corruption. Can you put somewhere to access the corrupted image
>>(need the only metadata) to reproduce?
>
> Sorry, uploading of any file not allowed from within.
> So, metadata image is not possible to be shared via. upload.
> Can try to arrange few more logs via. fsck.
Then, can you dump the invalid directory entries in corrupted image, and
check exactly why recursive traverse (ls -lR) never end?
We need to know the root cause to fix, e.g. this directory entry has
loop, etc.
>>What happens if you recursively traversed directories on Windows? This
>>issue happens on Windows too?
>
> After connecting USB to windows 10, when corrupted dir(\CorruptedDIR)
> is browsed, it shows 2623 number of files and directories, without
> delay. Name and timestamps of those file/directories are garbage
> values.
Sounds like filtered the invalid names.
> Further if we browse these sub-directories and open files of corrupted
> dir(\CorruptedDIR) following popups are coming on Windows 10:
> 1. The filename, directory name, or volume label syntax is incorrect
> 2. Specified path does not exist. Check the path and try again
>
> So issue of un-ending browsing(ls -lR) of corrupted USB is not coming
> on windows 10, it lists limited number of files/directories, of
> corrupted dir(\CorruptedDIR) without delay.
It may had the luck, loop was filtered by invalid names. Well, not sure.
--
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
prev parent reply other threads:[~2020-07-06 14:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20200629110320epcas5p34ccccc7c293f077b34b350935c328215@epcas5p3.samsung.com>
2020-06-29 11:02 ` [PATCH] fs: fat: add check for dir size in fat_calc_dir_size Anupam Aggarwal
2020-06-30 11:08 ` OGAWA Hirofumi
2020-06-30 12:33 ` AMIT SAHRAWAT
2020-06-30 16:26 ` (2) " OGAWA Hirofumi
2020-06-30 17:07 ` AMIT SAHRAWAT
2020-07-03 14:29 ` Anupam Aggarwal
2020-07-03 19:11 ` OGAWA Hirofumi
2020-07-06 11:53 ` Anupam Aggarwal
2020-07-06 14:22 ` OGAWA Hirofumi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pn98g1tp.fsf@mail.parknet.co.jp \
--to=hirofumi@mail.parknet.co.jp \
--cc=a.sahrawat@samsung.com \
--cc=anupam.al@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=t.vivek@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox