Commit 558b416
btrfs-progs: check: verify device byte values in superblock to those in chunk root
The superblock of each device contains a copy of the corresponding
struct btrfs_dev_item that lives in the chunk root.
Add a check that the total_bytes and bytes_used values of these two
copies match.
Pull-request: #991
Signed-off-by: Mark Harmstone <maharmstone@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent dc9793f commit 558b416
1 file changed
+32
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8593 | 8593 | | |
8594 | 8594 | | |
8595 | 8595 | | |
| 8596 | + | |
8596 | 8597 | | |
8597 | 8598 | | |
8598 | 8599 | | |
| |||
8650 | 8651 | | |
8651 | 8652 | | |
8652 | 8653 | | |
| 8654 | + | |
| 8655 | + | |
| 8656 | + | |
| 8657 | + | |
| 8658 | + | |
| 8659 | + | |
| 8660 | + | |
| 8661 | + | |
| 8662 | + | |
| 8663 | + | |
| 8664 | + | |
| 8665 | + | |
| 8666 | + | |
| 8667 | + | |
| 8668 | + | |
| 8669 | + | |
| 8670 | + | |
| 8671 | + | |
| 8672 | + | |
| 8673 | + | |
| 8674 | + | |
| 8675 | + | |
| 8676 | + | |
| 8677 | + | |
8653 | 8678 | | |
8654 | 8679 | | |
8655 | 8680 | | |
| |||
8671 | 8696 | | |
8672 | 8697 | | |
8673 | 8698 | | |
| 8699 | + | |
| 8700 | + | |
| 8701 | + | |
| 8702 | + | |
| 8703 | + | |
| 8704 | + | |
| 8705 | + | |
8674 | 8706 | | |
8675 | 8707 | | |
8676 | 8708 | | |
| |||
0 commit comments