Revision 6099bfcf scripts/gnt-debug

b/scripts/gnt-debug
39 39
def Delay(opts, args):
40 40
  """Sleeps for a while
41 41

  
42
  @param opts: the command line options selected by the user
43
  @type args: list
44
  @param args: should contain only one element, the duration
45
      the sleep
46
  @rtype: int
47
  @return: the desired exit code
48

  
42 49
  """
43 50
  delay = float(args[0])
44 51
  op = opcodes.OpTestDelay(duration=delay,
......
50 57

  
51 58

  
52 59
def GenericOpCodes(opts, args):
53
  """Send any opcode to the master
60
  """Send any opcode to the master.
61

  
62
  @todo: The function is broken and needs to be converted to the
63
      current job queue API
64
  @param opts: the command line options selected by the user
65
  @type args: list
66
  @param args: should contain only one element, the path of
67
      the file with the opcode definition
68
  @rtype: int
69
  @return: the desired exit code
54 70

  
55 71
  """
56 72
  fname = args[0]
......
96 112

  
97 113

  
98 114
def TestAllocator(opts, args):
99
  """Runs the test allocator opcode"""
115
  """Runs the test allocator opcode.
100 116

  
117
  @param opts: the command line options selected by the user
118
  @type args: list
119
  @param args: should contain only one element, the iallocator name
120
  @rtype: int
121
  @return: the desired exit code
122

  
123
  """
101 124
  try:
102 125
    disks = [{"size": utils.ParseUnit(val), "mode": 'w'}
103 126
             for val in opts.disks.split(",")]

Also available in: Unified diff