[PATCH] Btrfs: add a extent ref verify tool

2017-08-31 Thread josef
From: Josef Bacik We were having corruption issues that were tied back to problems with the extent tree. In order to track them down I built this tool to try and find the culprit, which was pretty successful. If you compile with this tool on it will live verify every ref update

Re: [PATCH] Btrfs: add a extent ref verify tool V2

2014-05-09 Thread Josef Bacik
On 05/08/2014 07:34 PM, Zach Brown wrote: +#ifdef CONFIG_BTRFS_FS_REF_VERIFY +int btrfs_build_ref_tree(struct btrfs_fs_info *fs_info); +void btrfs_free_ref_cache(struct btrfs_fs_info *fs_info); +int btrfs_ref_tree_mod(struct btrfs_root *root, u64 bytenr, u64 num_bytes, + u64

[PATCH] Btrfs: add a extent ref verify tool V3

2014-05-09 Thread Josef Bacik
We were having corruption issues that were tied back to problems with the extent tree. In order to track them down I built this tool to try and find the culprit, which was pretty successful. If you compile with this tool on it will live verify every ref update that the fs makes and make sure it

Re: [PATCH] Btrfs: add a extent ref verify tool V2

2014-05-09 Thread Zach Brown
On Fri, May 09, 2014 at 04:45:05PM -0400, Josef Bacik wrote: On 05/08/2014 07:34 PM, Zach Brown wrote: +#ifdef CONFIG_BTRFS_FS_REF_VERIFY +int btrfs_build_ref_tree(struct btrfs_fs_info *fs_info); +void btrfs_free_ref_cache(struct btrfs_fs_info *fs_info); +int btrfs_ref_tree_mod(struct

[PATCH] Btrfs: add a extent ref verify tool V2

2014-05-08 Thread Josef Bacik
We were having corruption issues that were tied back to problems with the extent tree. In order to track them down I built this tool to try and find the culprit, which was pretty successful. If you compile with this tool on it will live verify every ref update that the fs makes and make sure it

Re: [PATCH] Btrfs: add a extent ref verify tool V2

2014-05-08 Thread Zach Brown
+#ifdef CONFIG_BTRFS_FS_REF_VERIFY +int btrfs_build_ref_tree(struct btrfs_fs_info *fs_info); +void btrfs_free_ref_cache(struct btrfs_fs_info *fs_info); +int btrfs_ref_tree_mod(struct btrfs_root *root, u64 bytenr, u64 num_bytes, +u64 parent, u64 ref_root, u64 owner, u64

[PATCH] Btrfs: add a extent ref verify tool V2

2014-03-28 Thread Josef Bacik
We were having corruption issues that were tied back to problems with the extent tree. In order to track them down I built this tool to try and find the culprit, which was pretty successful. If you compile with this tool on it will live verify every ref update that the fs makes and make sure it

[PATCH] Btrfs: add a extent ref verify tool

2014-03-27 Thread Josef Bacik
We were having corruption issues that were tied back to problems with the extent tree. In order to track them down I built this tool to try and find the culprit, which was pretty successful. If you compile with this tool on it will live verify every ref update that the fs makes and make sure it