def _remap_vbd_dev(dev):
 should_remap = CONF.xenserver.remap_vbd_dev
 if (not should_remap):
  return dev
 old_prefix = 'xvd'
 new_prefix = CONF.xenserver.remap_vbd_dev_prefix
 remapped_dev = dev.replace(old_prefix, new_prefix)
 return remapped_dev

def _remap_vbd_dev ( dev ) : should_remap = CONF . xenserver . remap_vbd_dev if ( not should_remap ) : return dev old_prefix = 'xvd' new_prefix = CONF . xenserver . remap_vbd_dev_prefix remapped_dev = dev . replace ( old_prefix , new_prefix ) return remapped_dev
return the appropriate location for a plugged-in vbd device ubuntu maverick moved xvd? -> sd? .