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

rbd: inherit the parent image features when cloning an image #9334

Merged
merged 16 commits into from Jul 27, 2016

Commits on Jun 21, 2016

  1. tools/rbd: use rbd.create4() for all formats

    Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
    yangdongsheng committed Jun 21, 2016
    Copy the full SHA
    666a2e8 View commit details
    Browse the repository at this point in the history
  2. tools/rbd: skip the check of options in Clone action.

    Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
    yangdongsheng committed Jun 21, 2016
    Copy the full SHA
    15459ae View commit details
    Browse the repository at this point in the history
  3. tools/rbd: fix a wrong value setting for format_specified

    Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
    yangdongsheng committed Jun 21, 2016
    Copy the full SHA
    ad45604 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2016

  1. tools/rbd: only set the options specified by user in get_image_option…

    …s().
    
    Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
    yangdongsheng committed Jul 22, 2016
    Copy the full SHA
    a9db199 View commit details
    Browse the repository at this point in the history
  2. librbd: set the default options when they are not specified.

    Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
    yangdongsheng committed Jul 22, 2016
    Copy the full SHA
    6f5571f View commit details
    Browse the repository at this point in the history
  3. librbd/clone: set RBD_FEATURE_STRIPINGV2 in feature if stripe related…

    … options specified
    
    Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
    yangdongsheng committed Jul 22, 2016
    Copy the full SHA
    d97fe01 View commit details
    Browse the repository at this point in the history
  4. librbd/copy: set RBD_FEATURE_STRIPINGV2 in feature if stripe related …

    …options specified
    
    Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
    yangdongsheng committed Jul 22, 2016
    Copy the full SHA
    dd299e0 View commit details
    Browse the repository at this point in the history
  5. librbd: introduce RBD_IMAGE_OPTION_FEATURES_[SET|CLEAR] for features …

    …overwriting.
    
    Currently, if we want to use the default options for rbd, we need to omit the
    RBD_IMAGE_OPTION_FEATURES, but if we want --image-shared. we need to overwrite
    something bese on the default value of image options.
    
    This patch introduce two flags in image_options, RBD_IMAGE_OPTION_FEATURES_SET
    means, we want to set something after you get the features from default, parent
    or user. And RBD_IMAGE_OPTION_FEATURES_CLEAR will do a bit clear.
    
    Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
    yangdongsheng committed Jul 22, 2016
    Copy the full SHA
    22f77dd View commit details
    Browse the repository at this point in the history
  6. tools/rbd: set RBD_IMAGE_OPTION_FEATURES_CLEAR when --image-shared sp…

    …ecified.
    
    Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
    yangdongsheng committed Jul 22, 2016
    Copy the full SHA
    3508f40 View commit details
    Browse the repository at this point in the history
  7. pybind: don't set the default values for the options not specified in…

    … creating
    
    Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
    yangdongsheng committed Jul 22, 2016
    Copy the full SHA
    c37df5e View commit details
    Browse the repository at this point in the history
  8. pybind: don't set the default values for the options not specified in…

    … cloning
    
    Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
    yangdongsheng committed Jul 22, 2016
    Copy the full SHA
    4942076 View commit details
    Browse the repository at this point in the history
  9. pybind: don't set the default values for the options not specified in…

    … copying
    
    Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
    yangdongsheng committed Jul 22, 2016
    Copy the full SHA
    98251ea View commit details
    Browse the repository at this point in the history
  10. librbd: set RBD_FEATURE_STRIPINGV2 in create if needed.

    Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
    yangdongsheng committed Jul 22, 2016
    Copy the full SHA
    df81ba1 View commit details
    Browse the repository at this point in the history
  11. librbd: check the RBD_FEATURE_LAYERING for the features of child image.

    Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
    yangdongsheng committed Jul 22, 2016
    Copy the full SHA
    cfae775 View commit details
    Browse the repository at this point in the history
  12. tools/rbd: set order to default value if it is not specified in options.

    Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
    yangdongsheng committed Jul 22, 2016
    Copy the full SHA
    a187b34 View commit details
    Browse the repository at this point in the history
  13. tools/rbd: use create4() for both of format 1 and format 2.

    Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
    yangdongsheng committed Jul 22, 2016
    Copy the full SHA
    6264acb View commit details
    Browse the repository at this point in the history