From: Ryoichi.Kato@jp.sony.com
To: linux-ext4@vger.kernel.org, tytso@thunk.org
Cc: sct@redhat.com, akpm@linux-foundation.org, adilger@clusterfs.com,
Tim Bird <tim.bird@am.sony.com>
Subject: e2fsck bogus error report on orphan-list
Date: Fri, 20 Jul 2007 00:39:19 +0900 [thread overview]
Message-ID: <873azkl7x4.wl%ryoichi@me.sony.co.jp> (raw)
Hi,
I hit a problem of ext3/e2fsck on orphan-list handling.
The following sequence produces bogus e2fsck error report:
"/dev/XXX: Inodes that were part of a corrupted orphan linked list found."
1. Delete a file in an ext3 filesystem in early 1970
2. Set RTC to 2007, and then mount/write the filesystem.
3. Run e2fsck (with -f)
This is because i_dtime (deletion time) field is also used as a
next-pointer of an orphan-list (stores inode number rather than time),
and e2fsck handles it improperly.
You will have the same probrem if you run e2fsck on an ext3
filesystem with 1.2+ billion of files in it. (Is it possible?)
For more detail, please take a look at a document I wrote:
- http://tree.celinuxforum.org/CelfPubWiki/Ext3OrphanedInodeProblem
- http://tree.celinuxforum.org/CelfPubWiki/JapanTechnicalJamboree15?action=AttachFile&do=get&target=ext3orphaned-inode.ppt (Sorry for .PPT)
So, my questions are:
*Is this really a bug (or design defect) ?
*Which of ext3 or e2fsck is responsible for the problem?
- I feel that e2fsck is. But needs help of ext3 to solve it elegantly.
*How should I(we) deal with this problem.
- As a work-around, it's avoidable by just set RTC
to 2007 or so before doing any ext3 operation.
Thank you.
--
Ryoichi KATO <Ryoichi.Kato@jp.sony.com>
Audio Development & Engineering Div.
Sony Corporation Audio Business Group
Tel +81-3-3599-3862 / Fax +81-3-3599-3859
--
Ryoichi KATO <Ryoichi.Kato@jp.sony.com>
System Design Dept. No4
Audio Development & Engineering Div.
Sony Corporation Audio Business Group
Tel +81-3-3599-3862 / Fax +81-3-3599-3859
next reply other threads:[~2007-07-19 15:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-19 15:39 Ryoichi.Kato [this message]
2007-07-19 16:55 ` e2fsck bogus error report on orphan-list Theodore Tso
2007-07-19 21:05 ` Tim Bird
2007-07-19 23:20 ` Ryoichi KATO
2007-07-20 4:10 ` Theodore Tso
2007-07-20 9:45 ` Ryoichi KATO
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=873azkl7x4.wl%ryoichi@me.sony.co.jp \
--to=ryoichi.kato@jp.sony.com \
--cc=adilger@clusterfs.com \
--cc=akpm@linux-foundation.org \
--cc=linux-ext4@vger.kernel.org \
--cc=sct@redhat.com \
--cc=tim.bird@am.sony.com \
--cc=tytso@thunk.org \
/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