Whamcloud - gitweb
LU-3768 tunefs: make tunefs.lustre work correctly for MGS 53/7353/4
authorEmoly Liu <emoly.liu@intel.com>
Sun, 2 Jun 2013 07:35:18 +0000 (15:35 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 3 Sep 2013 05:55:58 +0000 (05:55 +0000)
commitaa41babe16b57f0719656eeb5b189254c4072898
treefe4ef3c07802d88c71e7c5eb8e2a7207b28de900
parent5375158bf772812b70369701b428acfc9e0ba32b
LU-3768 tunefs: make tunefs.lustre work correctly for MGS

Since LDD_F_NEED_INDEX flag is unset for a stand-alone MGS during
mkfs.lustre, when running tunefs.lustre on that MGS, it always says
"'----index' only valid for MDT,OST". To fix that, this patch is to
- print that error message only for mkfs.lustre
- fix the typo '----index' in the error message.

Signed-off-by: Liu Ying <emoly.liu@intel.com>
Change-Id: I4fa00dc554521c03671602ff9b2bbaca02c6a581
Reviewed-on: http://review.whamcloud.com/7353
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/mkfs_lustre.c