api: add import/export format querying

This commit is contained in:
Wolfgang Bumiller
2017-05-12 11:56:10 +02:00
committed by Fabian Grünbichler
parent ac191ec740
commit d390328bfd
3 changed files with 57 additions and 0 deletions

View File

@ -894,10 +894,20 @@ sub volume_export {
die "volume export not implemented for $class";
}
sub volume_export_formats {
my ($class, $scfg, $storeid, $volname, $snapshot, $base_snapshot, $with_snapshots) = @_;
die "volume export formats not implemented for $class";
}
# Import data from a stream, creating a new or replacing or adding to an existing volume.
sub volume_import {
my ($class, $scfg, $storeid, $fh, $volname, $format, $base_snapshot, $with_snapshots) = @_;
die "volume import not implemented for $class";
}
sub volume_import_formats {
my ($class, $scfg, $storeid, $volname, $base_snapshot, $with_snapshots) = @_;
die "volume import formats not implemented for $class";
}
1;