Skip to content

Commit 4ff9e2a

Browse files
committed
Add btrfs-list for listing subvolumes
Signed-off-by: Chris Mason <[email protected]>
1 parent ab8fb4c commit 4ff9e2a

File tree

4 files changed

+541
-1
lines changed

4 files changed

+541
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ bindir = $(prefix)/bin
1717
LIBS=-luuid
1818

1919
progs = btrfsctl mkfs.btrfs btrfs-debug-tree btrfs-show btrfs-vol btrfsck \
20-
btrfs-map-logical
20+
btrfs-map-logical btrfs-list
2121

2222
# make C=1 to enable sparse
2323
ifdef C
@@ -36,6 +36,9 @@ all: version $(progs) manpages
3636
version:
3737
bash version.sh
3838

39+
btrfs-list: $(objects) btrfs-list.o
40+
gcc $(CFLAGS) -o btrfs-list btrfs-list.o $(objects) $(LDFLAGS) $(LIBS)
41+
3942
btrfsctl: $(objects) btrfsctl.o
4043
gcc $(CFLAGS) -o btrfsctl btrfsctl.o $(objects) $(LDFLAGS) $(LIBS)
4144

0 commit comments

Comments
 (0)