Hi, David and Zhao,

David Sterba wrote on 2015/09/03 15:17 +0200:
On Thu, Aug 27, 2015 at 09:44:05AM +0800, Zhao Lei wrote:
[...]

Thanks for the links and summary!

But it is still uncorrectable because neither kernel nor btrfsck can fix
it(only can report).

I'm curious if it' is possible to write code that would fix the problem,
eg. te relocate or shift the blocks. The 'btrfs rescue' command group is
meant for this type of targeted fixes, unless it's easy to integrate it
to the check & repair itself.

I'm happy and willing to add the relocating ability for btrfs-progs.
As that will provide a lot of flexibility, while the code should be quite easy if I do it in a NOCOW method.
(Find a extent, copy it to other place, follow backref and modify)

The only concern is, does it mean that we need to implement all the features of btrfs kernel in user space tool?
And will it make the codes duplicated between kernel and progs?

Thanks,
Qu


In short, it is caused by old version of btrfs-convert, and already fixed,
and this patch is used to make scrub report it in output.

I assume there are people affected by this problem so it would be good
to have a repair tool.
--
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

--
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