btrfs-progs: doc: link btrfsck to btrfs-check
authorDavid Sterba <dsterba@suse.cz>
Wed, 16 Apr 2014 16:33:44 +0000 (18:33 +0200)
committerDavid Sterba <dsterba@suse.cz>
Tue, 22 Apr 2014 12:26:19 +0000 (14:26 +0200)
The 'btrfsck' command has been deprecated in favor of 'btrfs check'. For
compatibility install a symlink to the btrfs-check.8 manpage.

Signed-off-by: David Sterba <dsterba@suse.cz>
Documentation/Makefile
Documentation/btrfs-check.txt
Documentation/btrfs-restore.txt
Documentation/mkfs.btrfs.txt

index ec8598b..e22f5bc 100644 (file)
@@ -48,6 +48,7 @@ XMLTO_EXTRA = -m manpage-bold-literal.xsl
 GZIP = gzip
 INSTALL ?= install
 RM ?= rm -f
+LNS ?= ln -sf
 BTRFS_VERSION = $(shell sed -n 's/.*BTRFS_BUILD_VERSION "Btrfs \(.*\)"/\1/p'\
                  ../version.h)
 
@@ -73,6 +74,7 @@ install: install-man
 install-man: man
        $(INSTALL) -d -m 755 $(DESTDIR)$(man8dir)
        $(INSTALL) -m 644 $(GZ_MAN8) $(DESTDIR)$(man8dir)
+       $(LNS) btrfs-check.8.gz $(DESTDIR)$(man8dir)
 
 clean:
        $(RM) *.xml *.xml+ *.8 *.8.gz
index ddd7fe7..485a49c 100644 (file)
@@ -18,6 +18,8 @@ command, it is *highly* recommended to read the following btrfs wiki before
 executing 'btrfs check' with '--repair' option: +
 https://btrfs.wiki.kernel.org/index.php/Btrfsck
 
+'btrfsck' is an alias of 'btrfs check' command and is now deprecated.
+
 OPTIONS
 -------
 -s|--support <superblock>::
@@ -47,4 +49,3 @@ SEE ALSO
 `mkfs.btrfs`(8),
 `btrfs-scrub`(8),
 `btrfs-rescue`(8)
-`btrfsck`(8)
index 72aa084..c1d1607 100644 (file)
@@ -14,7 +14,7 @@ DESCRIPTION
 'btrfs restore' is used to try to salvage files from a damaged filesystem and
 restore them into <path> or just list the tree roots.
 
-Since current `btrfsck`(8) or `btrfs-rescue`(8) only has very limited usage,
+Since current `btrfs-check`(8) or `btrfs-rescue`(8) only has very limited usage,
 'btrfs restore' is normally a better choice.
 
 NOTE: It is recommended to read the following btrfs wiki page if your data is
index bafe065..7ce0096 100644 (file)
@@ -130,4 +130,4 @@ further details.
 
 SEE ALSO
 --------
-`btrfsck`(8)
+`btrfs`(8)