From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ryoichi.Kato@jp.sony.com Subject: e2fsck bogus error report on orphan-list Date: Fri, 20 Jul 2007 00:39:19 +0900 Message-ID: <873azkl7x4.wl%ryoichi@me.sony.co.jp> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: sct@redhat.com, akpm@linux-foundation.org, adilger@clusterfs.com, Tim Bird To: linux-ext4@vger.kernel.org, tytso@thunk.org Return-path: Received: from MGW2.Sony.CO.JP ([137.153.0.14]:62170 "EHLO mgw2.sony.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936427AbXGSPje (ORCPT ); Thu, 19 Jul 2007 11:39:34 -0400 Sender: linux-ext4-owner@vger.kernel.org List-Id: linux-ext4.vger.kernel.org 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 Audio Development & Engineering Div. Sony Corporation Audio Business Group Tel +81-3-3599-3862 / Fax +81-3-3599-3859 -- Ryoichi KATO System Design Dept. No4 Audio Development & Engineering Div. Sony Corporation Audio Business Group Tel +81-3-3599-3862 / Fax +81-3-3599-3859