Whamcloud - gitweb
LU-4527 utils: deprecate old version lfs command opts 31/8631/6
authorAndreas Dilger <andreas.dilger@intel.com>
Thu, 19 Dec 2013 23:34:53 +0000 (16:34 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 3 Feb 2014 02:31:23 +0000 (02:31 +0000)
commit2ea5c6b3d0762ceeb3c8282dc23676f2ac40a640
tree46365d080851a260a1cd22410081fe6d0e436c02
parenteb2a52d636defc93c2e1e624889120300b2e534b
LU-4527 utils: deprecate old version lfs command opts

The build version checking in lfs_getstripe() and lfs_find() was
incorrectly using LUSTRE_VERSION instead of LUSTRE_VERSION_CODE.
The old "positional" parameters for "lfs setstripe" have long been
deprecated and are now being removed.  The "--offset" and "--index"
options were not correctly being deprecated since 2.4.50 as intended.

Remove the code and conditions for already-passed build versions,
and fix the remaining checks to use LUSTRE_VERSION_CODE.  Fix one
test that was using a deprecated option.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Bob Glossman <bob.glossman@intel.com>
Change-Id: I086c869ea5b3ba6c1f83cc2b6ce2c866b43ebbe5
Reviewed-on: http://review.whamcloud.com/8631
Tested-by: Jenkins
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/utils/lctl.c
lustre/utils/lfs.c
lustre/utils/lustre_cfg.c