diff options
author | Maarten Vanraes <alien@mageia.org> | 2016-08-06 14:47:07 +0200 |
---|---|---|
committer | Maarten Vanraes <alien@mageia.org> | 2016-08-07 17:13:14 +0200 |
commit | f12af167fd6b6ff968a45a1df09fec4b992be356 (patch) | |
tree | 7922778dfc92a38851fbcc136664cd0090bf83e7 | |
parent | b63f536d4913967000aeda6a704340549bbe47f0 (diff) | |
download | manatools-f12af167fd6b6ff968a45a1df09fec4b992be356.tar manatools-f12af167fd6b6ff968a45a1df09fec4b992be356.tar.gz manatools-f12af167fd6b6ff968a45a1df09fec4b992be356.tar.bz2 manatools-f12af167fd6b6ff968a45a1df09fec4b992be356.tar.xz manatools-f12af167fd6b6ff968a45a1df09fec4b992be356.zip |
Mount: fix restrictions
-rw-r--r-- | lib/ManaTools/Shared/disk_backend/Plugin/Mount.pm | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/ManaTools/Shared/disk_backend/Plugin/Mount.pm b/lib/ManaTools/Shared/disk_backend/Plugin/Mount.pm index ddcf4bba..d4c34cef 100644 --- a/lib/ManaTools/Shared/disk_backend/Plugin/Mount.pm +++ b/lib/ManaTools/Shared/disk_backend/Plugin/Mount.pm @@ -568,6 +568,11 @@ class_has '+restrictions' => ( my $part = shift; return 0; }, + child => sub { + my $self = shift; + my $part = shift; + return $part->does('ManaTools::Shared::disk_backend::FileSystem'); + }, } } ); @@ -594,13 +599,18 @@ class_has '+restrictions' => ( sibling => sub { my $self = shift; my $part = shift; - return 0; + return $part->isa('ManaTools::Shared::disk_backend::Part::UnknownFS'); }, parent => sub { my $self = shift; my $part = shift; return $part->does('ManaTools::Shared::disk_backend::BlockDevice'); }, + child => sub { + my $self = shift; + my $part = shift; + return $part->isa('ManaTools::Shared::disk_backend::Part::Mount'); + }, } } ); |