def _cleanup_device_hardlink(hardlink_path, volume_path, volume_id):
 try:
  utils.execute('rm', '-f', hardlink_path, run_as_root=True)
 except processutils.ProcessExecutionError as exc:
  LOG.error(_LE('backup: %(vol_id)s failed to remove backup hardlink from %(vpath)s to %(bpath)s.\nstdout: %(out)s\n stderr: %(err)s.'), {'vol_id': volume_id, 'vpath': volume_path, 'bpath': hardlink_path, 'out': exc.stdout, 'err': exc.stderr})

def _cleanup_device_hardlink ( hardlink_path , volume_path , volume_id ) : try : utils . execute ( 'rm' , '-f' , hardlink_path , run_as_root = True ) except processutils . ProcessExecutionError as exc : LOG . error ( _LE ( 'backup: %(vol_id)s failed to remove backup hardlink from %(vpath)s to %(bpath)s.\nstdout: %(out)s\n stderr: %(err)s.' ) , { 'vol_id' : volume_id , 'vpath' : volume_path , 'bpath' : hardlink_path , 'out' : exc . stdout , 'err' : exc . stderr } )
remove the hardlink for the volume block device .