mirror of
https://github.com/gluster/glusterd2.git
synced 2026-02-05 21:45:43 +01:00
The block host volume will still exist even when the blocks are all deleted. Manually deleting block host volume will need another step of unmounting. With this patch we auto-delete the block host volume if there are no blocks. The availablility check of bhv free space is not done within lock, hence there is a possiblity that the available space has changed by the time we decide to create the volume. This patch also fixes the race condition. Signed-off-by: Poornima G <pgurusid@redhat.com>