Function gluster::ok_to_remove [] [src]

pub fn ok_to_remove(volume: &str, brick: &Brick) -> Result<bool, GlusterError>

Based on the replicas or erasure bits that are still available in the volume this will return True or False as to whether you can remove a Brick. This should be called before volume_remove_brick()