This is just an oddity with the commit stuff in btrfs-progs.  It will just
update the generation of the root you call with, which in btrfsck case would
have been the fs_root.  But because we didn't actually update the fs_root we
wouldn't have cow'ed the fs root and therefore the generation will not match the
node which will make the file system unmountable.  Fix this by calling with the
csum_root which is the one we're messing with.  Thanks,

Signed-off-by: Josef Bacik <jba...@fusionio.com>
---
 cmds-check.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cmds-check.c b/cmds-check.c
index 68cdd52..fa77046 100644
--- a/cmds-check.c
+++ b/cmds-check.c
@@ -5227,7 +5227,7 @@ int cmd_check(int argc, char **argv)
                        return -EIO;
                }
 
-               ret = btrfs_commit_transaction(trans, root);
+               ret = btrfs_commit_transaction(trans, info->csum_root);
                if (ret)
                        exit(1);
                goto out;
-- 
1.7.7.6

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to