From: rread Date: Wed, 28 Aug 2002 00:39:24 +0000 (+0000) Subject: - allow the --ost command to have no arguments when used for obdecho X-Git-Tag: 0.5.5~37 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=b86e1d538ef4ef6eba35a2c49c90e316f4c22f54;p=fs%2Flustre-release.git - allow the --ost command to have no arguments when used for obdecho --- diff --git a/lustre/utils/lmc b/lustre/utils/lmc index 0f16445..ac53913 100755 --- a/lustre/utils/lmc +++ b/lustre/utils/lmc @@ -342,9 +342,6 @@ def add_ost(gen, lustre, options, args): size = 0 fstype = 'extN' - if len(args) < 1: - usage() - if options.has_key('node'): node_name = options['node'] else: @@ -359,6 +356,8 @@ def add_ost(gen, lustre, options, args): if obdtype == 'obdecho': fstype = '' else: + if len(args) < 1: + usage() devname = args[0] if len(args) > 1: size = args[1]