aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ManaTools/Shared/disk_backend/Plugin/Btrfs.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ManaTools/Shared/disk_backend/Plugin/Btrfs.pm')
-rw-r--r--lib/ManaTools/Shared/disk_backend/Plugin/Btrfs.pm16
1 files changed, 10 insertions, 6 deletions
diff --git a/lib/ManaTools/Shared/disk_backend/Plugin/Btrfs.pm b/lib/ManaTools/Shared/disk_backend/Plugin/Btrfs.pm
index 36a868d6..fa14d995 100644
--- a/lib/ManaTools/Shared/disk_backend/Plugin/Btrfs.pm
+++ b/lib/ManaTools/Shared/disk_backend/Plugin/Btrfs.pm
@@ -244,7 +244,9 @@ use Moose;
extends 'ManaTools::Shared::disk_backend::Part';
-has '+type' => (
+use MooseX::ClassAttribute;
+
+class_has '+type' => (
default => 'Btrfs'
);
@@ -266,7 +268,7 @@ has 'subvolumes' => (
default => sub { return [];},
);
-has '+in_restriction' => (
+class_has '+in_restriction' => (
default => sub {
return sub {
my $self = shift;
@@ -281,7 +283,7 @@ has '+in_restriction' => (
}
);
-has '+out_restriction' => (
+class_has '+out_restriction' => (
default => sub {
return sub {
my $self = shift;
@@ -359,7 +361,9 @@ use Moose;
extends 'ManaTools::Shared::disk_backend::Part';
-has '+type' => (
+use MooseX::ClassAttribute;
+
+class_has '+type' => (
default => 'BtrfsVol'
);
@@ -387,7 +391,7 @@ has 'subvolumes' => (
default => sub { return [];},
);
-has '+in_restriction' => (
+class_has '+in_restriction' => (
default => sub {
return sub {
my $self = shift;
@@ -404,7 +408,7 @@ has '+in_restriction' => (
}
);
-has '+out_restriction' => (
+class_has '+out_restriction' => (
default => sub {
return sub {
my $self = shift;