docs: def fail_perm(item):
      '''Fail a work-item permanatly by mv'ing it to queue's fail directory'''
      # The only thing we require to fail is an item_id and a queue
      # as an item may fail permanently due to malformed item_id-ness
      item_id = item.id
      trg_queue = item.queue
      host = item.host
      try:
          os.rename(fsq_path.item(trg_queue, item_id, host=host),
                    os.path.join(fsq_path.fail(trg_queue, host=host), item_id))
      except (OSError, IOError, ), e:
          raise FSQFailError(e.errno, u'cannot mv item to fail: {0}:'\
                             u' {1}'.format(item.id, wrap_io_os_err(e)))
  
      return item.id