Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Dec 2001 13:18:44 -0600
From:      Alfred Perlstein <bright@mu.org>
To:        Kirk McKusick <mckusick@freebsd.org>
Cc:        fs@freebsd.org
Subject:   fast fsck for snapshots
Message-ID:  <20011218131844.E59831@elvis.mu.org>

next in thread | raw e-mail | index | archive | help
In theory if one were to periodically check a running filesystem's
inodes for softdeps then update the superblock to point out the
oldest file with pending softdeps at startup one would only have
to scan all the inodes with mtimes > superblock update time.

Then one should be able to free the blocks not claimed by those
inodes.  Wouldn't this signifigantly cut down on the amount of
time required to fsck the snapshot?

I think one of the problems is that inodes are "scrubbed" when
flushed to disk as deleted files, one would have to write out
the mtime so that fsck could pick up recently deleted files.
Does FFS depend on the indirect blocks being "scrubbed" as well?

Good idea, or am I just too cafinated at the moment? :)

-- 
-Alfred Perlstein [alfred@freebsd.org]
'Instead of asking why a piece of software is using "1970s technology,"
 start asking why software is ignoring 30 years of accumulated wisdom.'
                           http://www.morons.org/rants/gpl-harmful.php3

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-fs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011218131844.E59831>