-
Notifications
You must be signed in to change notification settings - Fork 86
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
Added support for PV grow #1229
Added support for PV grow #1229
Conversation
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.
Looks good to me in general, but it needs a test.
f9eb277
to
835c49a
Compare
|
@@ -107,6 +110,17 @@ def __repr__(self): | |||
"pe_start": self.pe_start, "data_alignment": self.data_alignment}) | |||
return s | |||
|
|||
@property | |||
def grow_to_fill(self): |
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.
Please add a docstring here explaining how this works, e.g. what target size needs to be set to make this work and that ActionResizeFormat
still needs to be created and executed.
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.
Fixed. Added docstring.
Storage role requires support for a case when PV has to be resized to fill all available space when its device's size changes (usually on VM). A new flag 'grow_to_fill' was added, which marks the device for size expansion (all available space it taken). Proper size is determined by LVM, avoiding inaccurate size calculations in blivet.
835c49a
to
9290cdf
Compare
Storage role requires support for a case when PV has to be resized to fill all available space when its device's size changes (usually on VM).
A new flag
grow_to_fill
was added, which marks the device for size expansion (all available space it taken).Proper size is determined by LVM, avoiding inaccurate size calculations in blivet.