Skip to content

Commit

Permalink
feat(clone): new parameter to identify deleted snapshot having active…
Browse files Browse the repository at this point in the history
… clones

Signed-off-by: Hrudaya <[email protected]>
  • Loading branch information
hrudaya21 committed Jul 27, 2023
1 parent 3c58926 commit 69f354a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions protobuf/v1/replica.proto
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,9 @@ message ListReplicaOptions {
google.protobuf.StringValue poolname = 2; // list the replicas on the provided pool, by name
google.protobuf.StringValue uuid = 3; // list the replica with the uuid if provided
google.protobuf.StringValue pooluuid = 4; // list the replicas on the provided pool, by uuid
// 0: All Replicas including snapshotclones and snapshots (Default)
// 1: Replica and Clones, without snapshots
// 2: Only Clones
// 3: Only Replicas
string replica_type = 5; // list replicas based on replicatype value
}
7 changes: 7 additions & 0 deletions protobuf/v1/snapshot.proto
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,18 @@ message SnapshotInfo {
bool valid_snapshot = 12; // true: valid, false: invalid (missing one/more snapshotdescriptor field i.e. txn_id, entity_id, source_uuid
bool ready_as_source = 13; // ready for usage, i,e source for another volume.
uint64 referenced_bytes = 14; // amount of bytes referenced by all successor snapshots.
bool future_delete_snapshot = 15; // true: snapshot is deleted and unused. false: Valid Snapshot
}
/// Request parameters to list snapshot.
message ListSnapshotsRequest {
optional string source_uuid = 1; // source uuid from which snapshot is taken
optional string snapshot_uuid = 2; // snapshot uuid for which the detail can be listed
// 0: All snapshots (Default).
// 1: All snapshot except "futuredelete" snapshot
// 2: Only "futuredelete" snapshot.
// 3: Only "invalid" snapshot
// 4: Only usuable snapshot except "futuredelete" and "invalid" snapshots.
optional string snapshot_type = 3; // list snapshot based on snapshottype value
}

/// List Snapshot Response.
Expand Down

0 comments on commit 69f354a

Please sign in to comment.