summaryrefslogtreecommitdiffstats
path: root/perl-install/lvm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/lvm.pm')
-rw-r--r--perl-install/lvm.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/lvm.pm b/perl-install/lvm.pm
index 37965485f..4ae8e4ff2 100644
--- a/perl-install/lvm.pm
+++ b/perl-install/lvm.pm
@@ -13,6 +13,12 @@ use devices;
use run_program;
#- for partition_table_xxx emulation
+sub new {
+ my ($class, $name) = @_;
+ $name =~ s/\W/_/g;
+ $name = substr($name, 0, 63); # max length must be < NAME_LEN / 2 where NAME_LEN is 128
+ bless { disks => [], VG_name => $name }, $class;
+}
sub hasExtended { 0 }
sub adjustStart {}
sub adjustEnd {}