3 ms·
First of all, I do intend for it to get incorporated in to upstream btrfs-progs. Plus, for the most part, it's not a replacement for what's in btrfs-progs, it'
by LukeShu 3y ago
First of all, I do intend for it to get incorporated in to upstream btrfs-progs.
Plus, for the most part, it's not a replacement for what's in btrfs-progs, it's additional tools:
Replace:
- `btrfs-rec inspect dump-trees` is a clone of `btrfs inspect-internal dump-tree`, but it isn't meant to replace it, I only implemented it so that I could diff the output to validate that my implementation agrees with the btrfs-progs implementation.
- `btrfs-rec inspect mount` is conceptually a replacement for `btrfs restore`.
- `btrfs-rec inspect rebuild-mappings` is a replacement for `btrfs rescue chunk-recover`
Additional:
- I don't believe that `btrfs-rec inspect rebuild-trees` has an equivalent.
- `btrfs-rec inspect list-nodes`, `btrfs-rec inspect ls-files`, and `btrfs-rec inspect ls-trees` have no equivalent in btrfs-progs.
- (for completeness) `btrfs-rec inspect spew-items` has no equivalent, but it's for debugging btrfs-rec itself.
Missing:
- `btrfs-rec` doesn't try to do anything with mounted filesystems, such as `btrfs balance`, `btrfs filesystem`, `btrfs scrub`, `btrfs send`/`btrfs receive`, ...
- `btrfs-rec` doesn't try to do anything with filesystem initialization, such as `btrfstune` or `mkfs.btrfs`.
- `btrfs-rec` doesn't try to do things with recovering the superblock, I've found `btrfs rescue super-recover` and `btrfs-select-super` to be adequate.
- In general, I didn't try to re-implement commands that already work well.