public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Sandeen <sandeen@redhat.com>
To: Carlos Maiolino <cmaiolino@redhat.com>
Cc: Christoph Hellwig <hch@infradead.org>, xfs-oss <xfs@oss.sgi.com>
Subject: Re: [PATCH] xfstests: fsck scratch device if it got used
Date: Mon, 03 Dec 2012 12:56:30 -0600	[thread overview]
Message-ID: <50BCF5DE.8010301@redhat.com> (raw)
In-Reply-To: <20121203140344.GA3546@andromeda.usersys.redhat.com>

On 12/3/12 8:03 AM, Carlos Maiolino wrote:
>>>>> This one looks good.
>>>>
>>>> Hm now that I think of it perhaps I should remove the explicit
>>>> _check_scratch-es if they happen at the end of the run, just to
>>>> try to speed things up.
>>>
>>> *nod*
>>
>> I'll send as another patch; I don't think there are really very
>> many TBH.
>>
>>>>>> Also recreate lost+found/ in one test so that e2fsck doesn't
>>>>>> complain.
>>>>>
>>>>> This one I can't make any sense of.  Care to send it separately
>>>>> with a good explanation?
>>>>>
>>>>
>>>> Ok, sure.
>>>>
>>>> Basically, test does an rm -rf of the scrach mnt, but e2fsck
>>>> thinks that a missing lost+found/ is cause for complaint and a
>>>> failure exit code, which then stops the tests :(
>>>
>>> Shouldn't e2fsck be fixed? i.e. if you have a corrupted filesystem
>>> and it's missing lost+found, how are you expected to create it? by
>>> mounting your corrupted filesystem and modifying it and potentially
>>> making the corruption worse?
>>
>> No, e2fsck fixes it, but reports that as an exit error condition
>> even if nothing else is found.
>>
> 
> I know lots of users who use to just delete lost+found directory, so making the
> lack of l+f an error is wrong.
> IMHO, there is no reason to report an error when a l+f is not found, unless you
> need to recover orphan'ed inodes, I've never seen any other usage for it, unless
> during FS recovery time. (maybe I lack some knowledge of another usages for
> lost+found directory?)
> 
> So, I believe that might be useful to print a warning about it, but consider it
> as an error is wrong IMHO.

I agree, maybe we can change that in e2fsck, and not bother creating it
unless some other error means we need it.

-Eric

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

      reply	other threads:[~2012-12-03 18:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-29 18:59 [PATCH] xfstests: fsck scratch device if it got used Eric Sandeen
2012-11-30 16:06 ` Christoph Hellwig
2012-11-30 16:08   ` Eric Sandeen
2012-11-30 22:27     ` Dave Chinner
2012-11-30 22:29       ` Eric Sandeen
2012-12-03 14:03         ` Carlos Maiolino
2012-12-03 18:56           ` Eric Sandeen [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=50BCF5DE.8010301@redhat.com \
    --to=sandeen@redhat.com \
    --cc=cmaiolino@redhat.com \
    --cc=hch@infradead.org \
    --cc=xfs@oss.sgi.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