• Ilya Dryomov's avatar
    rbd: copyup with an empty snapshot context (aka deep-copyup) · 89a59c1c
    Ilya Dryomov authored
    This is the core of deep-flatten feature: sending a copyup request
    (i.e. a guarded write of the data read from the parent) with an empty
    snapshot context (snaps = [], seq = 0) causes the OSD to reflect the
    write in all existing snapshots.  This allows "rbd flatten" to fully
    disconnect the clone image and its snapshots from the parent and make
    the parent snapshot removable.
    
    The actual modification request is sent only after deep-copyup request
    is completed.  Waiting for deep-copyup reply is unnecessary, this will
    be improved in the future.
    Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
    89a59c1c
rbd.c 160 KB