btrfs-progs: add send-test

send-test.c links against libbtrfs and uses the send functionality provided
to decode and print a send stream to the console.

Signed-off-by: Mark Fasheh <mfasheh@suse.de>
Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
Mark Fasheh 2013-01-30 14:50:25 -08:00 committed by David Sterba
parent fac5b559a7
commit 66819df285

View File

@ -164,6 +164,10 @@ ioctl-test: $(objects) ioctl-test.o
@echo " [LD] $@"
$(Q)$(CC) $(CFLAGS) -o ioctl-test $(objects) ioctl-test.o $(LDFLAGS) $(LIBS)
send-test: $(objects) send-test.o
@echo " [LD] $@"
$(Q)$(CC) $(CFLAGS) -o send-test $(objects) send-test.o $(LDFLAGS) $(LIBS) -lpthread
manpages:
$(Q)$(MAKE) $(MAKEOPTS) -C man
@ -173,7 +177,7 @@ install-man:
clean :
@echo "Cleaning"
$(Q)rm -f $(progs) cscope.out *.o .*.d btrfs-convert btrfs-image btrfs-select-super \
btrfs-zero-log btrfstune dir-test ioctl-test quick-test btrfs.static btrfsck \
btrfs-zero-log btrfstune dir-test ioctl-test quick-test send-test btrfs.static btrfsck \
version.h
$(Q)$(MAKE) $(MAKEOPTS) -C man $@