Whamcloud - gitweb
LU-1526 utils: Supply default MDT index
authorJames Simmons <uja.ornl@gmail.com>
Thu, 18 Oct 2012 12:26:16 +0000 (08:26 -0400)
committerOleg Drokin <green@whamcloud.com>
Mon, 29 Oct 2012 06:01:46 +0000 (02:01 -0400)
commit7712ab3fd86e88f7a8e7d6eb9c82492a8b39a61c
tree52286ca5bf22796cb54ad661953887bdbd056447
parentb32074ad81953df481e620e4dbf011b77ad96a53
LU-1526 utils: Supply default MDT index

To prepare for DNE indexing has become a requirement
for MDTs and with the latest lustre you can't mount
a MDT that was not formated with a index. While mount
has this requirement mkfs.lustre has a bug that allows
you to format a MDS without a index and not even warn
the user. At the same time mkfs.lustre has to handle
the case were a user will not supply a index since it
was not required in earlier lustre releases. This patch
address this problem by supplying a default index of
zero for the MDT if no index is supplied to mkfs.lustre
and warns the user they must supply a index in the
future.

Signed-off-by: James Simmons <uja.ornl@gmail.com>
Change-Id: I45932321885856d97b10630a0667e8338822b199
Reviewed-on: http://review.whamcloud.com/4293
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Li Wei <liwei@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/utils/mkfs_lustre.c