Revision 6ef8077e lib/backend.py

b/lib/backend.py
2149 2149
  return rbd.GetSyncStatus()
2150 2150

  
2151 2151

  
2152
def BlockdevGetsize(disks):
2152
def BlockdevGetdimensions(disks):
2153 2153
  """Computes the size of the given disks.
2154 2154

  
2155 2155
  If a disk is not found, returns None instead.
......
2158 2158
  @param disks: the list of disk to compute the size for
2159 2159
  @rtype: list
2160 2160
  @return: list with elements None if the disk cannot be found,
2161
      otherwise the size
2161
      otherwise the pair (size, spindles), where spindles is None if the
2162
      device doesn't support that
2162 2163

  
2163 2164
  """
2164 2165
  result = []
......
2171 2172
    if rbd is None:
2172 2173
      result.append(None)
2173 2174
    else:
2174
      result.append(rbd.GetActualSize())
2175
      result.append(rbd.GetActualDimensions())
2175 2176
  return result
2176 2177

  
2177 2178

  

Also available in: Unified diff