def _is_vdev(name):
 if ((name in ('stripe', 'mirror', 'raidz', 'raidz1', 'raidz2', 'raidz3')) or re.search('^(mirror|raidz|raidz1|raidz2|raidz3)(-\\d+)?$', name)):
  return True
 return False

def _is_vdev ( name ) : if ( ( name in ( 'stripe' , 'mirror' , 'raidz' , 'raidz1' , 'raidz2' , 'raidz3' ) ) or re . search ( '^(mirror|raidz|raidz1|raidz2|raidz3)(-\\d+)?$' , name ) ) : return True return False
find out if a given name is a reserved word in zfs .