From: David Woodhouse To: "Jarkko Lavinen (NMP/Helsinki)" In-Reply-To: <20040113125031.GA5146@angel.research.nokia.com> References: <20040113125031.GA5146@angel.research.nokia.com> Content-Type: text/plain Message-Id: <1074001140.17620.3.camel@hades.cambridge.redhat.com> Mime-Version: 1.0 Date: Tue, 13 Jan 2004 13:39:00 +0000 Content-Transfer-Encoding: 7bit cc: MTD List Subject: Re: JFFS2 mount time List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 2004-01-13 at 14:50 +0200, Jarkko Lavinen (NMP/Helsinki) wrote: > Is there anything that could be done to reduce the mount time of large > JFFS2 partitions? Lazy mounting with prioritized scanning? We improved it a lot by not checking CRC32 on all nodes until later -- but we still need to read the whole medium at mount time. We _can_ fix that. There's a limited amount of knowledge we're gaining from our scan at mount time. For each inode on the medium, we need: Its nlink A list of the physical addresses of all its nodes We currently read the whole of every eraseblock to work this out. However, we could write a block 'tailer' at the _end_ of each eraseblock as we fill it, containing enough information in compressed form about the contents of the eraseblock. That would mean that we only have to read a small proportion of each properly-finished eraseblock, and should speed up the mount significantly. -- dwmw2