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
librbd: API changes to support separate data pool #11353
Conversation
This is rebased on top of PR #11327 |
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Replace the individual image option parameters with the ImageOptions wrapper and extract the options within the state machine itself. This will simplify adding support for the data pool and other options in the future. Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
@dillaman pybind test fails:
So it fails when creating an image with 'striping' feature and providing stripe_unit and stripe_count = 0. Previously in such a case it used defaults for these parameters and set the feature bit. Now it creates the image without this feature. Also reproducible with rbd cli:
|
@dillaman Never mind, I was running a wrong test_rbd.py, I see you have already updated it accordingly. |
@trociny Yeah, I expanded on the approach where the STRIPINGV2 feature is auto-applied if you specify stripe options for the DATA_POOL feature. However, I didn't want to introduce unnecessary incompatibility if the data pool was the same as the header's pool, so I also auto-removed the flag if the feature wasn't in use. Given that, I figured it also probably made sense to remove the STRIPINGV2 flag if fancy striping wasn't actually being used (although I know krbd will just ignore it if it's set w/ non-fancy stripe settings). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
No description provided.