From b86e1d538ef4ef6eba35a2c49c90e316f4c22f54 Mon Sep 17 00:00:00 2001
From: rread <rread>
Date: Wed, 28 Aug 2002 00:39:24 +0000
Subject: [PATCH] - allow the --ost command to have no arguments when used for
 obdecho

---
 lustre/utils/lmc | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lustre/utils/lmc b/lustre/utils/lmc
index 0f1644553d..ac5391317b 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]
-- 
GitLab