]> git.neil.brown.name Git - LaFS.git/commit
roll: make sure unlinked inodes before orphans.
authorNeilBrown <neilb@suse.de>
Mon, 28 Mar 2011 10:20:32 +0000 (21:20 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 28 Mar 2011 10:20:32 +0000 (21:20 +1100)
commite712a11bede6a2bf6d81e2ebbdc856dfe787d43a
tree3db009b8ba5b04189c23eefd6c57aa869f9e8851
parent6fe5fe7eecb96d38a96fec9c28195cf8088ebe5a
roll: make sure unlinked inodes before orphans.

If we find an unlinked inode during roll-forward it should end up
being an orphan.
But we don't look at the orphan file soon enough, and if it isn't in
the orphan file then we can BUG, which is bad.
So if we do find one, make it an orphan.  If it turns out to be in the
orphan file that entry will just be discarded.

Signed-off-by: NeilBrown <neilb@suse.de>
roll.c