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

cephfs: skip expand for BackingSnapshot volume #3586

Merged
merged 1 commit into from
Dec 21, 2022

Commits on Dec 21, 2022

  1. cephfs: skip expand for BackingSnapshot volume

    We should not call ExpandVolume for the BackingSnapshot
    subvolume as there wont be any real subvolume created for
    it and even if we call it the ExpandVolume will fail
    fail as there is no real subvolume exists.
    
    This commits fixes by adjusting the `if` check to ensure
    that ExpandVolume will only be called either the
    VolumeRequest is to create from a snapshot or volume
    and BackingSnapshot is not true.
    
    sample code here https://go.dev/play/p/PI2tNii5tTg
    
    Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
    Madhu-1 committed Dec 21, 2022
    Configuration menu
    Copy the full SHA
    5a5b19d View commit details
    Browse the repository at this point in the history