def add_mds(gen, lustre, options, args):
+ fstype = 'extN'
+
if len(args) < 1:
usage()
else:
error("--mds requires a --node argument")
+ if options.has_key('fstype'):
+ fstype = options['fstype']
+
mds_name = new_name(options['mds'])
if mds_name != options['mds']:
warning("name:", options['mds'], "already used. using:", mds_name)
error("NODE: ", node_name, "not found")
- mds = gen.mds(mds_name, mds_uuid, "extN", devname, get_format_flag(options),
+ mds = gen.mds(mds_name, mds_uuid, fstype, devname, get_format_flag(options),
net_uuid, node_uuid, dev_size=size)
lustre.appendChild(mds)
if options.has_key('obdtype'):
obdtype = options['obdtype']
+ if options.has_key('fstype'):
+ fstype = options['fstype']
if obdtype == 'obdecho':
fstype = ''
else:
short_opts = "ho:i:m:"
long_opts = ["ost", "osc", "mtpt", "lov=", "node=", "mds=", "net", "tcpbuf=",
"route", "router", "merge=", "format", "reformat", "output=",
- "obdtype=", "obduuid=", "in=", "help", "batch="]
+ "obdtype=", "fstype=", "obduuid=", "in=", "help", "batch="]
opts = []
args = []
options = {}
# Options for commands
if o == "--obdtype":
options['obdtype'] = a
+ if o == "--fstype":
+ options['fstype'] = a
if o == "--obduuid":
options['obduuid'] = a
if o == "--tcpbuf":