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

correct disk removal disqualification calculation. Fixes #1553 #1554

Conversation

phillxnet
Copy link
Member

Previously we refused a disk removal based on disk > pool usage
but the intended calculation was disk > pool free space.
Hence switch usage for (pool.size - usage) = free space.

So now this action is disqualified if disk > pool free space

This accounts for a worst case scenario.

Fixes #1553

Previously a 7.5 GB disk was not allowed to be removed from a 463 GB (2 GB used) pool.
After pr this was allowed. Logging was used during development to confirm figures were as expected.
Details and user experience are available in the linked issue #1553 .

Previously we refused a disk removal based on disk > pool usage
but the intended calculation was disk > pool free space.
Hence switch usage for (pool.size - usage) = free space.
@phillxnet
Copy link
Member Author

Ready for review.

@schakrava schakrava merged commit f9737dd into rockstor:master Nov 30, 2016
@phillxnet phillxnet deleted the 1553_incorrect_space_calculation_on_disk_removal branch November 30, 2016 10:47
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.

None yet

2 participants