From 607bf8180284446d5f632061eba37a55bb086e2d Mon Sep 17 00:00:00 2001 From: rread Date: Thu, 24 Apr 2003 01:36:34 +0000 Subject: [PATCH] b=1075 * added --failover option to lconf and lctl cleanup * failover flag added to obd_disconnect and obd_cleanup * if failover ==1, then MDS and OST will not update the client state in last_rcvd. * Also changes to lconf to add the --group support to MDS. --- lustre/utils/Lustre/cmdline.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lustre/utils/Lustre/cmdline.py b/lustre/utils/Lustre/cmdline.py index 9205c0a..53bb6e8 100644 --- a/lustre/utils/Lustre/cmdline.py +++ b/lustre/utils/Lustre/cmdline.py @@ -49,7 +49,7 @@ class Options: def init_values(self): values = {} for opt in self.options: - values[self.long(opt)] = self.default(opt) + values[self.key(opt)] = self.default(opt) return values def long(self, option): @@ -57,6 +57,10 @@ class Options: if n < 0: return option[0] else: return option[0][0:n] + def key(self, option): + key = self.long(option) + return string.replace(key, '-', '_') + def short(self, option): n = string.find(option[0], ',') if n < 0: return '' @@ -102,9 +106,10 @@ class Options: raise error.OptionError("option: '%s' expects integer value, got '%s' " % (o,a)) else: val = 1 - values[self.long(option)] = val + values[self.key(option)] = val return values + class option_wrapper: def __init__(self, values): self.__dict__['values'] = values -- 1.8.3.1