mirror of
git://git.proxmox.com/git/pve-storage.git
synced 2024-12-23 17:34:34 +03:00
BTRFSPlugin: reuse DirPlugin update/get_volume_attribute
this allows setting notes+protected for backups on btrfs Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
91d49d1d52
commit
0d4c46bf35
@ -138,9 +138,22 @@ sub status {
|
||||
return PVE::Storage::DirPlugin::status($class, $storeid, $scfg, $cache);
|
||||
}
|
||||
|
||||
# TODO: sub get_volume_attribute {}
|
||||
sub get_volume_attribute {
|
||||
my ($class, $scfg, $storeid, $volname, $attribute) = @_;
|
||||
return PVE::Storage::DirPlugin::get_volume_attribute($class, $scfg, $storeid, $volname, $attribute);
|
||||
}
|
||||
|
||||
# TODO: sub update_volume_attribute {}
|
||||
sub update_volume_attribute {
|
||||
my ($class, $scfg, $storeid, $volname, $attribute, $value) = @_;
|
||||
return PVE::Storage::DirPlugin::update_volume_attribute(
|
||||
$class,
|
||||
$scfg,
|
||||
$storeid,
|
||||
$volname,
|
||||
$attribute,
|
||||
$value,
|
||||
);
|
||||
}
|
||||
|
||||
# croak would not include the caller from within this module
|
||||
sub __error {
|
||||
|
Loading…
Reference in New Issue
Block a user