blob: a36082a2b4891baa61c142b5739d0b6b6c18dfc3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/bash
readonly image=../scratch/dump-zero.img
######################################################################
set -e
set -x
make build
gendir="${image%.img}.gen"
mountpoint="${image%.img}.mnt"
mkdir -p "$mountpoint"
sudo ./bin/btrfs-rec \
--pv="$image" \
--mappings="$gendir/2.mappings.json" \
--node-list="$gendir/0.nodes.json" \
--trees="$gendir/3.trees.json" \
inspect mount \
--skip-filesums \
"$mountpoint"
|