summaryrefslogtreecommitdiffstats
path: root/perl-install/lvm.pm
Commit message (Collapse)AuthorAgeFilesLines
* many functions in fsedit don't modify anything, they are simply accessors.Pascal Rigaux2004-08-031-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | create fs::get and move them into it - device2part(), up_mount_point() moved from fs to fs::get - part2hd(), file2part(), has_mntpoint(), mntpoint2part(), empty_all_hds() moved from fsedit to fs::get - fsedit::get_root() -> fs::get::root() - fsedit::get_root_() -> fs::get::root_() - fsedit::get_really_all_fstab() -> fs::get::really_all_fstab() - fsedit::get_all_fstab_and_holes() -> fs::get::fstab_and_holes() - fsedit::get_all_fstab() -> fs::get::fstab() - fsedit::get_all_holes() -> fs::get::holes() - fsedit::all_free_space -> fs::get::free_space() - fsedit::get_really_all_fstab() -> fs::get::really_all_fstab() - fsedit::get_fstab_and_holes() -> fs::get::hds_fstab_and_holes() - fsedit::get_holes() -> fs::get::hds_holes() - fsedit::get_fstab() -> fs::get::hds_fstab() - fsedit::free_space() -> fs::get::hds_free_space() - fsedit::get_visible_fstab() unused, removed
* introduce ->ensure_binary_is_installed and use itPascal Rigaux2004-08-021-1/+1
|
* - add field {fs_type} partially replacing {pt_type}Pascal Rigaux2004-07-271-6/+5
| | | | | | | | | | | | | | | | | | | | {pt_type} is always a number, {fs_type} is always a string - introduce set_isFormatted() (to ensure {notFormatted} but also {fs_type_from_magic} and {bad_fs_type_magic} are updated) - don't use 0x483 for ext3 anymore (same for reiserfs...), the type_name gives both a pt_type and a fs_type - many accessors from partition_table removed (type2fs(), fs2pt_type()) - remove isThisFs() (not useful anymore since we can use directly {fs_type}) - remove isFat() (inline the function) - other isXXX() from partition_table are moved to fs::type - part2name() is now fs::type::part2type_name - name2pt_type() is now fs::type::type_name2subpart() - partition_table::important_types() is now fs::type::type_names() - fsedit::typeOfPart() is now fs::type::fs_type_from_magic() - no need to truncate type_name since they are shorter
* a {type} didn't get moved to {pt_type}, fixingPascal Rigaux2004-07-271-1/+1
|
* big renaming of field {type} to {pt_type},Pascal Rigaux2004-07-051-2/+2
| | | | | | this will allow defining {fs_type} which will always be a string whereas {pt_type} will always be a number
* perl now handle cleanly utf8 string in exceptions, no need to die \N("...")Pascal Rigaux2004-04-051-1/+1
|
* create /dev/mapper/control (needed when you don't have devfs)Pascal Rigaux2004-02-041-0/+7
|
* - replace PE_size with extent_size and get it (fix illegal division by 0)Pascal Rigaux2004-02-041-9/+11
| | | | | | | - fix getting the output of pvs vgs lvs commands (chomp_ is not enough because of spaces at the end) - fix get_lvs() (and use lvs instead of vgdisplay)
* adaptation/simplification for new lvm2 (thanks to Luca Berra)Pascal Rigaux2004-01-151-5/+3
|
* lvm2 uses urandomPascal Rigaux2004-01-131-0/+1
|
* - install lvm2 rpm instead of lvm (and using ->ensure_is_installed)Pascal Rigaux2004-01-131-4/+2
| | | | | - "vgdisplay" error status is not good, using "vgs" instead
* basic lvm2 support (not tested yet!)Pascal Rigaux2004-01-061-22/+22
|
* fix typo (fix bug #4239)Pascal Rigaux2003-08-111-1/+1
|
* allow choosing lv name (thanks to Brian Murrell)Pascal Rigaux2003-06-041-3/+3
|
* perl_checker adaptations + fixesPascal Rigaux2003-04-241-1/+1
|
* to workaround perl bug removing UTF8 flag when passing scalars to die's, passGuillaume Cottenceau2003-02-191-1/+1
| | | | | | a scalar-ref. but we need to de-ref, so it might break many things :). let's make a prayer :).
* add "new" to lvm.pm, and use itPascal Rigaux2002-12-181-0/+6
|
* replace "_" with "N" and "__" with "N_"Pascal Rigaux2002-11-061-1/+1
| | | | | | | | | | | | | | | | | | | rationale: - currently, we use _("xxx") as a shorthand for gettext("xxx"). It also used to call xgettext with --keyword=_ - alas, function &_ is global and not by package (notice esp. that _ is not exported in common.pm) - this lead to big ugly pb with packages defining their own &_, overriding common.pm's &_ - a fix is to set @::textdomains to add a new domain (the default being "libDrakX") but relying on the global "_" is still dangerous!
* fix using given size for created LVs whereas lvcreate allocates a little lessPascal Rigaux2002-09-051-2/+9
| | | | | (thanks to Alan Hughes)
* - vg_add: do not vgremove the old_name anymore, this is dangerous and should ↵Pascal Rigaux2002-08-111-24/+34
| | | | | | | | | | not happen - lv_create: fix bug when {primary}{normal} didn't exist - use run_program::get_stdout instead of `` - create and use run() and run_or_die() which takes care of running vgscan again when needed - rename LVMname to VG_name
* ensure lvm tools don't need to be all installed at the same timePascal Rigaux2002-02-211-1/+6
|
* - LVs "device" field were containing "/dev/vg/number" whereas it must be ↵Pascal Rigaux2002-02-161-5/+11
| | | | | | | "vg/name" - added lv_resize
* - call pvcreate with "-y -ff"Pascal Rigaux2002-02-161-1/+3
| | | | | - created LVs are notFormatted
* enhance lvm handling (mostly standalone)Pascal Rigaux2001-09-161-5/+18
|
* move to MDK::Common, bool->to_boolPascal Rigaux2001-07-241-1/+1
|
* (get_lvs): remove the setting of flag isFormatted which was wrong (didn'tPascal Rigaux2001-04-031-1/+0
| | | | | propose to format it)
* protect the loading of module lvm-modPascal Rigaux2001-04-031-1/+1
|
* (lv_create): fix typoPascal Rigaux2001-03-051-1/+1
|
* small fixes for LVMPascal Rigaux2001-03-031-1/+2
|
* creationPascal Rigaux2001-03-031-0/+98