mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
To: Namjae Jeon <linkinjeon@gmail.com>
Cc: akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Namjae Jeon <namjae.jeon@samsung.com>,
	Ravishankar N <ravi.n1@samsung.com>,
	Amit Sahrawat <a.sahrawat@samsung.com>
Subject: Re: [PATCH v5 7/8] fat (exportfs): rebuild directory-inode if fat_dget() fails
Date: Wed, 05 Dec 2012 18:02:40 +0900	[thread overview]
Message-ID: <87txs0x45r.fsf@devron.myhome.or.jp> (raw)
In-Reply-To: <CAKYAXd8=7BG8NsVyvUP5xW48Y9FJpD7M95_MiJVGcwYOfYsrLA@mail.gmail.com> (Namjae Jeon's message of "Wed, 5 Dec 2012 15:01:39 +0900")

Namjae Jeon <linkinjeon@gmail.com> writes:

>>>> This became much better than before. However, we have to consolidate the
>>>> code with fat_search_long() finally.
>>>>
>>>> E.g. this version is having the issue already fixed. If there is
>>>> corruption in fat cluster-chain, it lead to infinite
>>>> loop. fat_get_cluster() checks infinite loop by limit.
>>> since, the focus this time was for NFS functionality for FAT (removing
>>> ESTALE error). The changes were made in that context.
>>>
>>> Later, we can make the changes as part of code reorganizing which can
>>> be controlled via. Separate patches which do not have any impact on
>>> default functionality and verification can be carried out in that
>>> scope.
>>
>> Right. But non-production code shouldn't go into linus tree. I meant, we
>> can test this patch series, but not yet production quality.
> Is there any other thing which seems potential issue than offsetof()?
> if yes, which problem didn't lead to production quality do you think ?
>
> +#define FAT_FID_SIZE_WITHOUT_PARENT (offsetof(struct fat_fid, \
> +					      parent_i_pos_hi)/4)
> Since this expression does not result proper integer value, so will it
> be correct to directly put the value like
> +#define FAT_FID_SIZE_WITHOUT_PARENT 3

The issue is what I explained in the above "E.g.".

Directory traversal logic should be consolidate with fat_search_log().
Otherwise, like this nfs implement, we will introduce already-fixed-problem
again. And we will be bothered to fix same issue in future.
-- 
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

  reply	other threads:[~2012-12-05  9:02 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-21 13:25 Namjae Jeon
2012-12-03  9:57 ` OGAWA Hirofumi
2012-12-04  6:27   ` Namjae Jeon
2012-12-04  9:31     ` OGAWA Hirofumi
2012-12-05  6:01       ` Namjae Jeon
2012-12-05  9:02         ` OGAWA Hirofumi [this message]
2012-12-05 11:56           ` Namjae Jeon
2012-12-15 10:52             ` Namjae Jeon
2012-12-19 16:10               ` OGAWA Hirofumi
2012-12-21  5:03                 ` Namjae Jeon
2012-12-21  5:08                   ` Namjae Jeon
2012-12-21  8:19                     ` OGAWA Hirofumi
2012-12-21 10:15                       ` Namjae Jeon
2012-12-21 10:35                         ` OGAWA Hirofumi
2012-12-21 10:36                           ` OGAWA Hirofumi
2013-01-09  6:24                             ` Namjae Jeon
2013-01-20 11:06                               ` OGAWA Hirofumi
2013-01-22 10:31                                 ` Namjae Jeon
2013-01-26  4:22                                   ` OGAWA Hirofumi
2013-01-28  7:43                                     ` Namjae Jeon
2013-01-28 13:51                                       ` OGAWA Hirofumi
2013-01-29  5:05                                         ` Namjae Jeon

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=87txs0x45r.fsf@devron.myhome.or.jp \
    --to=hirofumi@mail.parknet.co.jp \
    --cc=a.sahrawat@samsung.com \
    --cc=akpm@linux-foundation.org \
    --cc=linkinjeon@gmail.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=namjae.jeon@samsung.com \
    --cc=ravi.n1@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

Powered by JetHome