xfs
[Top] [All Lists]

[PATCH] xfsprogs: Add depraction message for xfs_check

To: XFS mailing list <xfs@xxxxxxxxxxx>
Subject: [PATCH] xfsprogs: Add depraction message for xfs_check
From: Chandra Seetharaman <sekharan@xxxxxxxxxx>
Date: Wed, 17 Apr 2013 11:47:24 -0500
Delivered-to: xfs@xxxxxxxxxxx
Organization: IBM
Reply-to: sekharan@xxxxxxxxxx
Add deprecation message for xfs_check and suggest to use xfs_repair -n
instead.

Signed-off-by: Chandra Seetharaman <sekharan@xxxxxxxxxx>
---
diff --git a/db/xfs_check.sh b/db/xfs_check.sh
index c76b540..553da63 100755
--- a/db/xfs_check.sh
+++ b/db/xfs_check.sh
@@ -7,6 +7,9 @@ OPTS=" "
 DBOPTS=" "
 USAGE="Usage: xfs_check [-fsvV] [-l logdev] [-i ino]... [-b bno]... special"
 
+echo "xfs_check is deprecated and scheduled for removal in June 2014."
+echo "Please use xfs_repair -n <dev> instead."
+
 while getopts "b:fi:l:stvV" c
 do
        case $c in
diff --git a/man/man8/xfs_check.8 b/man/man8/xfs_check.8
index 620d0fc..1654532 100644
--- a/man/man8/xfs_check.8
+++ b/man/man8/xfs_check.8
@@ -35,11 +35,11 @@ during the execution of
 .BR xfs_check .
 Otherwise, spurious problems are reported.
 .PP
-Note that using
+Note that
 .B xfs_check
-is NOT recommended. Please use 
+is deprecated and scheduled for removal in June 2014. Please use
 .BR xfs_repair " " \-n
-instead, for better scalability and speed.
+instead.
 .SH
 OPTIONS
 .TP


<Prev in Thread] Current Thread [Next in Thread>