mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 02:43:36 +00:00
cephfs: add set/Get/List/Remove metadata utility functions
Add utility functions to set/Get/List/Remove PV/PVC/PVCNamespace metadata on subvolume. Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
This commit is contained in:
committed by
mergify[bot]
parent
8c5563a9bc
commit
ecf03eb6ae
@ -72,6 +72,11 @@ type SubVolumeClient interface {
|
||||
CreateCloneFromSnapshot(ctx context.Context, snap Snapshot) error
|
||||
// CleanupSnapshotFromSubvolume removes the snapshot from the subvolume.
|
||||
CleanupSnapshotFromSubvolume(ctx context.Context, parentVol *SubVolume) error
|
||||
|
||||
// SetAllMetadata set all the metadata from arg parameters on Ssubvolume.
|
||||
SetAllMetadata(parameters map[string]string) error
|
||||
// UnsetAllMetadata unset all the metadata from arg keys on subvolume.
|
||||
UnsetAllMetadata(keys []string) error
|
||||
}
|
||||
|
||||
// subVolumeClient implements SubVolumeClient interface.
|
||||
|
Reference in New Issue
Block a user