code: func validateDevice(val string, serverOS string) (string, error) {
  	switch serverOS {
  	case "linux":
  		return validateLinuxPath(val, validDeviceMode)
  	case "windows":
  		// Windows does validation entirely server-side
  		return val, nil
  	}
  	return "", errors.Errorf("unknown server OS: %s", serverOS)
  }
docs: // validateDevice validates a path for devices