Skip to content

Commit aa62e84

Browse files
Yan Zhengchrismason-xx
Yan Zheng
authored andcommitted
Btrfs image tool
This patch adds btrfs image tool. The image tool is a debugging tool that creates/restores btrfs metadump image. Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
1 parent 49bc666 commit aa62e84

File tree

7 files changed

+894
-18
lines changed

7 files changed

+894
-18
lines changed

Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ prefix ?= /usr/local
1515
bindir = $(prefix)/bin
1616
LIBS=-luuid
1717

18-
progs = btrfsctl btrfsck mkfs.btrfs debug-tree btrfs-show btrfs-vol btrfstune
18+
progs = btrfsctl btrfsck mkfs.btrfs debug-tree btrfs-show btrfs-vol \
19+
btrfstune btrfs-image
1920

2021
# make C=1 to enable sparse
2122
ifdef C
@@ -55,6 +56,9 @@ debug-tree: $(objects) debug-tree.o
5556
btrfstune: $(objects) btrfstune.o
5657
gcc $(CFLAGS) -o btrfstune $(objects) btrfstune.o $(LDFLAGS) $(LIBS)
5758

59+
btrfs-image: $(objects) btrfs-image.o
60+
gcc $(CFLAGS) -o btrfs-image $(objects) btrfs-image.o -lpthread -lz $(LDFLAGS) $(LIBS)
61+
5862
dir-test: $(objects) dir-test.o
5963
gcc $(CFLAGS) -o dir-test $(objects) dir-test.o $(LDFLAGS) $(LIBS)
6064

0 commit comments

Comments
 (0)