public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* e2fsck bogus error report on orphan-list
@ 2007-07-19 15:39 Ryoichi.Kato
  2007-07-19 16:55 ` Theodore Tso
  0 siblings, 1 reply; 6+ messages in thread
From: Ryoichi.Kato @ 2007-07-19 15:39 UTC (permalink / raw)
  To: linux-ext4, tytso; +Cc: sct, akpm, adilger, Tim Bird

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-07-20  9:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-19 15:39 e2fsck bogus error report on orphan-list Ryoichi.Kato
2007-07-19 16:55 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox