Revert to snapshot capable volume driver interface.
Interface for drivers that support revert to snapshot.
revert_to_snapshot(context, volume, snapshot)¶
Revert volume to snapshot.
Note: the revert process should not change the volume’s current size, that means if the driver shrank the volume during the process, it should extend the volume internally.
context – the context of the caller.
volume – The volume to be reverted.
snapshot – The snapshot used for reverting.