Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sheep/vdi: Fix fill_vdi_state_list() to set 'deleted' member #235

Merged
merged 3 commits into from Apr 22, 2016

Conversation

tmenjo
Copy link
Contributor

@tmenjo tmenjo commented Apr 22, 2016

The function fill_vdi_state_list() implementing SD_OP_GET_VDI_COPIES should set the deleted member of struct vdi_state and respond it.

This is mainly for sheep/group.c:get_vdis_from() because it set VDI bitmap sys->vdi_deleted based on the value of deleted member responded by SD_OP_GET_VDI_COPIES request.

I separate my work into 3 commits. First one refactors related unit tests to use Unity framework. Second one adds unit tests. Third one fixes fill_vdi_state_list().

Fixes #234.

Signed-off-by: Takashi Menjo <menjo.takashi@lab.ntt.co.jp>
The function fill_vdi_state_list() implementing SD_OP_GET_VDI_COPIES
should set the 'deleted' member of struct vdi_state and respond it.

This is mainly for sheep/group.c:get_vdis_from() because it set
VDI bitmap 'sys->vdi_deleted' based on the value of 'deleted' member
responded by SD_OP_GET_VDI_COPIES request.

Signed-off-by: Takashi Menjo <menjo.takashi@lab.ntt.co.jp>
Fixes sheepdog#234

Signed-off-by: Takashi Menjo <menjo.takashi@lab.ntt.co.jp>
@mitake mitake merged commit 3d5438a into sheepdog:master Apr 22, 2016
@mitake
Copy link
Contributor

mitake commented Apr 22, 2016

Merged, thanks.

@tmenjo tmenjo deleted the fix-fill-vdi-state-list branch May 17, 2016 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sheep/vdi: fill_vdi_state_list() should set 'deleted' member
2 participants