storage plugin: new list_volumes plugin method

This cleanup improve code reuse, and allows plugins to override list_volumes.
This commit is contained in:
Dietmar Maurer
2019-07-19 11:56:16 +02:00
committed by Fabian Grünbichler
parent bfb3d42daf
commit c2fc9fbe1d
3 changed files with 117 additions and 139 deletions

View File

@ -21,7 +21,7 @@ sub plugindata {
{ images => 1, rootdir => 1 }],
format => [ { raw => 1, qcow2 => 1, vmdk => 1, subvol => 1 } , 'raw' ],
};
}
}
sub properties {
return {
@ -114,7 +114,7 @@ sub activate_storage {
"directory is expected to be a mount point but is not mounted: '$mp'\n";
}
$class->SUPER::activate_storage($storeid, $scfg, $cache);
$class->SUPER::activate_storage($storeid, $scfg, $cache);
}
sub check_config {