Revision a57e502a lib/backend.py

b/lib/backend.py
2851 2851
      result["DISK_%d_BACKEND_TYPE" % idx] = "block"
2852 2852
    elif disk.dev_type in [constants.DT_FILE, constants.DT_SHARED_FILE]:
2853 2853
      result["DISK_%d_BACKEND_TYPE" % idx] = \
2854
        "file:%s" % disk.physical_id[0]
2854
        "file:%s" % disk.logical_id[0]
2855 2855

  
2856 2856
  # NICs
2857 2857
  for idx, nic in enumerate(instance.nics):
......
3076 3076
      config.set(constants.INISECT_INS, "disk%d_ivname" % disk_count,
3077 3077
                 ("%s" % disk.iv_name))
3078 3078
      config.set(constants.INISECT_INS, "disk%d_dump" % disk_count,
3079
                 ("%s" % disk.physical_id[1]))
3079
                 ("%s" % disk.logical_id[1]))
3080 3080
      config.set(constants.INISECT_INS, "disk%d_size" % disk_count,
3081 3081
                 ("%d" % disk.size))
3082 3082

  
......
3159 3159
  """Rename a list of block devices.
3160 3160

  
3161 3161
  @type devlist: list of tuples
3162
  @param devlist: list of tuples of the form  (disk,
3163
      new_logical_id, new_physical_id); disk is an
3164
      L{objects.Disk} object describing the current disk,
3165
      and new logical_id/physical_id is the name we
3166
      rename it to
3162
  @param devlist: list of tuples of the form  (disk, new_unique_id); disk is
3163
      an L{objects.Disk} object describing the current disk, and new
3164
      unique_id is the name we rename it to
3167 3165
  @rtype: boolean
3168 3166
  @return: True if all renames succeeded, False otherwise
3169 3167

  

Also available in: Unified diff