def _create_unique_device_link(backup_id, volume_path, volume_id, bckup_mode):
 if _image_mode(bckup_mode):
  hardlink_path = utils.make_dev_path(('%s-%s' % (CONF.backup_tsm_volume_prefix, backup_id)))
 else:
  (dir, volname) = os.path.split(volume_path)
  hardlink_path = ('%s/%s-%s' % (dir, CONF.backup_tsm_volume_prefix, backup_id))
 _make_link(volume_path, hardlink_path, volume_id)
 return hardlink_path

def _create_unique_device_link ( backup_id , volume_path , volume_id , bckup_mode ) : if _image_mode ( bckup_mode ) : hardlink_path = utils . make_dev_path ( ( '%s-%s' % ( CONF . backup_tsm_volume_prefix , backup_id ) ) ) else : ( dir , volname ) = os . path . split ( volume_path ) hardlink_path = ( '%s/%s-%s' % ( dir , CONF . backup_tsm_volume_prefix , backup_id ) ) _make_link ( volume_path , hardlink_path , volume_id ) return hardlink_path
create a consistent hardlink for the volume block device .