Whamcloud - gitweb
LU-6535 utils: fix updating index and fsname 32/14632/4
authorWang Shilong <wshilong@ddn.com>
Mon, 4 May 2015 13:07:22 +0000 (21:07 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 5 Jun 2015 01:54:33 +0000 (01:54 +0000)
commitc735a3ef9780fe846292b1f4a11d4cc47d90d5e7
treefc9e26aaf7b353f270bbb2d78189304ea2ae28ec
parent6f0f73eb72f63c8988aa89e2bf05f24b6588e584
LU-6535 utils: fix updating index and fsname

We should do whether we can update index and fsname checks after
we have done all options parsing, otherwise, we failed this command:
tunefs.lustre --fsname=lustre --writeconf /dev/mgs
but succeed with following command:
tunefs.lustre --writeconf --fsname=lustre /dev/mgs

Signed-off-by: Wang Shilong <wshilong@ddn.com>
Change-Id: Iadeaad1a6245c58214330c544df245b532f42372
Reviewed-on: http://review.whamcloud.com/14632
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Reviewed-by: Emoly Liu <emoly.liu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/mkfs_lustre.c