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

Make blivet aware of internal LVs #149

Merged
merged 9 commits into from
Jun 18, 2015

Commits on Jun 17, 2015

  1. Don't crash when processing cached LVs

    Just ignore the unsupported "sub-LVs" and consider cached LVs normal LVs.
    vpodzime committed Jun 17, 2015
    Configuration menu
    Copy the full SHA
    d3f8aa4 View commit details
    Browse the repository at this point in the history
  2. Rearrange and group some of the StorageDevice's methods/properties

    Those that are related to each other should be next to each other and titled.
    vpodzime committed Jun 17, 2015
    Configuration menu
    Copy the full SHA
    9a40555 View commit details
    Browse the repository at this point in the history
  3. Move parents checking and update into a seprarate methods

    Internal LVs are not going to be referenced by the DeviceTree instance and are
    going to have no parents. Their "parent" LVs are going to be referenced as
    'self.parent_lv' instead of 'self.parents[0]' because all the other devices use
    the opposite logic for parent-children relations -- children are consisting of
    or built on top of parents (whereas "parent" LVs are consisting of their
    internal LVs).
    
    This way internal LVs can easily override these methods.
    vpodzime committed Jun 17, 2015
    Configuration menu
    Copy the full SHA
    30c61ca View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2015

  1. Add classes for the internal LVs of various types

    Also make the LVMLogicalVolumeDevice class ready for managing internal LVs.
    vpodzime committed Jun 18, 2015
    Configuration menu
    Copy the full SHA
    e46eca8 View commit details
    Browse the repository at this point in the history
  2. Create and use internal LVs instead of static values

    Instead of calculating static values for number of copies, log size and metadata
    size of a given LV, we should use internal LVs assigned to their "parent"
    (normal) LVs and calculate such values dynamically from those internal LVs.
    vpodzime committed Jun 18, 2015
    Configuration menu
    Copy the full SHA
    2a84996 View commit details
    Browse the repository at this point in the history
  3. Accept both list and ParentList when checking LVs parents

    These are both valid types for the self.parents attribute.
    vpodzime committed Jun 18, 2015
    Configuration menu
    Copy the full SHA
    f468d8b View commit details
    Browse the repository at this point in the history
  4. Make Blivet.lvs return all LVs not just traditional/thick LVs

    Thin pools and thin LVs are also LVs so they should be included in the
    result. Also don't use the to-be-deprecated-soon getDevicesByType() method.
    vpodzime committed Jun 18, 2015
    Configuration menu
    Copy the full SHA
    5903e71 View commit details
    Browse the repository at this point in the history
  5. Use relations between LVs to determine parent LV

    Thin/cache pools have internal data/metadata LVs the name of which can be
    queried. Let's use this functionality to help determining the parent LV if name
    matching fails.
    vpodzime committed Jun 18, 2015
    Configuration menu
    Copy the full SHA
    3c80131 View commit details
    Browse the repository at this point in the history
  6. Implement the support for resizing internal metadata LVs of thin pools

    Internal metadata LVs of thin pools can be resized so our representation should
    also allow it.
    vpodzime committed Jun 18, 2015
    Configuration menu
    Copy the full SHA
    86748b3 View commit details
    Browse the repository at this point in the history