diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-12-18 15:12:01 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-12-18 15:12:01 +0000 |
commit | 739d2dead3c6afd511fa478df666c84739d6930b (patch) | |
tree | f63fc44c0a0d9c473a2b6fd3714b9d365d8f5c24 /perl-install/lvm.pm | |
parent | c033599e0f506ca7dff48aea19557b56c27048ea (diff) | |
download | drakx-backup-do-not-use-739d2dead3c6afd511fa478df666c84739d6930b.tar drakx-backup-do-not-use-739d2dead3c6afd511fa478df666c84739d6930b.tar.gz drakx-backup-do-not-use-739d2dead3c6afd511fa478df666c84739d6930b.tar.bz2 drakx-backup-do-not-use-739d2dead3c6afd511fa478df666c84739d6930b.tar.xz drakx-backup-do-not-use-739d2dead3c6afd511fa478df666c84739d6930b.zip |
add "new" to lvm.pm, and use it
Diffstat (limited to 'perl-install/lvm.pm')
-rw-r--r-- | perl-install/lvm.pm | 6 |
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 {} |