Btrfs-progs: fix unresolved ref root message
authorMiao Xie <miaox@cn.fujitsu.com>
Fri, 10 Aug 2012 08:14:02 +0000 (16:14 +0800)
committerroot <root@localhost.localdomain>
Thu, 4 Oct 2012 20:26:31 +0000 (16:26 -0400)
commitf3f72863d5571cbb04ddde0416994eada776fb2a
treee69a72f5773a5c61592007fdc773aac17b601b08
parent78bffa238788705967050b15c9e6a7e05c90bde5
Btrfs-progs: fix unresolved ref root message

btrfsck misinformed "unresolved ref root" message when there were several
snapshots in the file system. The patch(commit cfdd42686c70) tried to fix
this bug, but didn't fix it completely. If the metadata was stored in a
shared leaf of the tree, the problem would happen again. This patch fixes
it by another way, we don't check the relationship of the trees when we
traverse the fs/file tree, we just do the check when we merge the snapshot
records to the root cache.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
btrfsck.c