returnoldSize,fmt.Errorf("rbd info failed, error: %v",infoErr)
}
ifcurSize>=sz{
returnnewSizeQuant,nil
}
// rbd resize
l:=len(rbdExpander.rbdMounter.Mon)
// pick a mon randomly
start:=rand.Int()%l
// iterate all monitors until resize succeeds.
fori:=start;i<start+l;i++{
mon:=rbdExpander.rbdMounter.Mon[i%l]
glog.V(4).Infof("rbd: resize %s using mon %s, pool %s id %s key %s",rbdExpander.rbdMounter.Image,mon,rbdExpander.rbdMounter.Pool,rbdExpander.rbdMounter.adminId,rbdExpander.rbdMounter.adminSecret)