volume/driver: implement basic snapshot

added basic support for snapshot to VolumeDriver base class.
The implementation is not effective, but works. The effective
implementation should be done by drived driver class.
This commit is contained in:
Isaku Yamahata
2011-05-13 23:27:35 +09:00
parent ad040378a7
commit e0a1468a03

View File

@@ -271,6 +271,10 @@ class SnapshotNotFound(NotFound):
message = _("Snapshot %(snapshot_id)s could not be found.")
class VolumeIsBusy(Error):
message = _("deleting volume %(volume_name)s that has snapshot")
class ExportDeviceNotFoundForVolume(NotFound):
message = _("No export device found for volume %(volume_id)s.")