Project

General

Profile

Actions

Feature #10154

closed

librbd: use early snapshot context for copyup operations so snapshots of clones don't depend on parents

Added by Josh Durgin over 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Jason Dillaman
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

If we send the copyup operation with a snapshot context with an empty list of snap ids and a snap seq before the earliest snapshot id in the clone, the osd will treat it as an old write and will logically replace all versions of the object that did not exist. From rbd's perspective, it makes that object no longer depend on the parent image in any snapshot.

This would let flatten remove the parent->clone dependency even when the clone has snapshots, which makes managing clones much simpler.

Actions

Also available in: Atom PDF