code: func waitForPath(pool, image string, maxRetries int, useNbdDriver bool) (string, bool) {
  	for i := 0; i < maxRetries; i++ {
  		if i != 0 {
  			time.Sleep(time.Second)
  		}
  		if useNbdDriver {
  			if devicePath, found := getNbdDevFromImageAndPool(pool, image); found {
  				return devicePath, true
  			}
  		} else {
  			if devicePath, found := getRbdDevFromImageAndPool(pool, image); found {
  				return devicePath, true
  			}
  		}
  	}
  	return "", false
  }
docs: // Stat a path, if it doesn't exist, retry maxRetries times.