mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-12 01:16:13 +00:00
6d2cf04247
This commit introduces a new command called 'btrfs' for managing a btrfs filesystem. 'btrfs' handles: - snapshot/subvolume creation - adding/removal of volume (ie: disk) - defragment of a tree - scan of a device searching a btrfs filesystem - re-balancing of the chunk on the disks - listing subvolumes and snapshots This has also been updated to include the new defrag range ioctl. Signed-off-by: Chris Mason <chris.mason@oracle.com>
38 lines
849 B
Makefile
38 lines
849 B
Makefile
GZIP=gzip
|
|
INSTALL= install
|
|
|
|
prefix ?= /usr/local
|
|
bindir = $(prefix)/bin
|
|
mandir = $(prefix)/man
|
|
man8dir = $(mandir)/man8
|
|
|
|
MANPAGES = mkfs.btrfs.8.gz btrfsctl.8.gz btrfsck.8.gz btrfs-image.8.gz \
|
|
btrfs-show.8.gz btrfs.8.gz
|
|
|
|
all: $(MANPAGES)
|
|
|
|
mkfs.btrfs.8.gz: mkfs.btrfs.8.in
|
|
$(GZIP) -n -c mkfs.btrfs.8.in > mkfs.btrfs.8.gz
|
|
|
|
btrfs.8.gz: btrfs.8.in
|
|
$(GZIP) -n -c btrfs.8.in > btrfs.8.gz
|
|
|
|
btrfsctl.8.gz: btrfsctl.8.in
|
|
$(GZIP) -n -c btrfsctl.8.in > btrfsctl.8.gz
|
|
|
|
btrfsck.8.gz: btrfsck.8.in
|
|
$(GZIP) -n -c btrfsck.8.in > btrfsck.8.gz
|
|
|
|
btrfs-image.8.gz: btrfs-image.8.in
|
|
$(GZIP) -n -c btrfs-image.8.in > btrfs-image.8.gz
|
|
|
|
btrfs-show.8.gz: btrfs-show.8.in
|
|
$(GZIP) -n -c btrfs-show.8.in > btrfs-show.8.gz
|
|
|
|
clean :
|
|
rm -f $(MANPAGES)
|
|
|
|
install: $(MANPAGES)
|
|
$(INSTALL) -m755 -d $(DESTDIR)$(man8dir)
|
|
$(INSTALL) -m 644 $(MANPAGES) $(DESTDIR)$(man8dir)
|