summaryrefslogtreecommitdiff
path: root/btrfs-select-super.c
Commit message (Collapse)AuthorAge
* Btrfs-progs: add a btrfs-select-super command to overwrite the superChris Mason2011-10-25
Btrfs stores multiple copies of the superblock, and for common power-failure crashes where barriers were not in use, one of the super copies is often valid while the first copy is not. This adds a btrfs-select-super -s N /dev/xxx command, which can overwrite all the super blocks with a copy that you have already determined is valid with btrfsck -s Signed-off-by: Chris Mason <chris.mason@oracle.com>