Revision 11064155 lib/utils/lvm.py

b/lib/utils/lvm.py
55 55

  
56 56
  @type pvs_info: list
57 57
  @param pvs_info: list of L{LvmPvInfo} objects
58
  @rtype: list
59
  @return: A list of error strings described the violation found, or an empty
60
      list if everything is ok
58
  @rtype: tuple
59
  @return: A pair composed of: 1. a list of error strings describing the
60
    violations found, or an empty list if everything is ok; 2. a pair
61
    containing the sizes of the smallest and biggest PVs, in MiB.
62

  
61 63
  """
62 64
  errmsgs = []
63 65
  sizes = [pv.size for pv in pvs_info]
......
67 69
  if LvmExclusiveTestBadPvSizes(small, big):
68 70
    m = ("Sizes of PVs are too different: min=%d max=%d" % (small, big))
69 71
    errmsgs.append(m)
70
  return errmsgs
72
  return (errmsgs, (small, big))
71 73

  
72 74

  
73 75
def LvmExclusiveTestBadPvSizes(small, big):

Also available in: Unified diff