summaryrefslogtreecommitdiffstats
path: root/perl-install/lvm.pm
Commit message (Collapse)AuthorAgeFilesLines
* create lvm::pv_physical_extents() and use itPascal Rigaux2005-07-011-1/+4
|
* remove debug code from previous commitPascal Rigaux2005-07-011-3/+1
|
* create generic function get_pv_field()Pascal Rigaux2005-07-011-3/+10
|
* better namePascal Rigaux2005-07-011-1/+1
|
* replace lv_nb_segments() with lv_nb_pvs()Pascal Rigaux2005-07-011-3/+7
| | | | | (which is really what lilo cares about. lilo error is "mapped boot device cannot be on multiple real devices")
* handle vgreducePascal Rigaux2005-07-011-0/+10
|
* better error message, and translate itPascal Rigaux2005-07-011-1/+1
|
* lilo only accept /boot (or /) on a LV if it uses only one PV, so correctly ↵Pascal Rigaux2005-07-011-0/+11
| | | | warn/error this
* ensure we have a {lv_name} (esp. for auto_installs)Pascal Rigaux2005-03-291-0/+1
|
* ensure {lv_name} is set when calling check_mntpoint() from Create() (via ↵Pascal Rigaux2005-03-221-1/+6
| | | | check()) (bugzilla #14253)
* rootDevice must be properly set, esp. for newt diskdrake (bugzilla #14254)Pascal Rigaux2005-03-181-0/+1
|
* ensure {lv_name} is set for LVM partitionsPascal Rigaux2005-02-011-0/+1
|
* move device mapper initialisation out of lvm.pm into devices.pm (since it ↵Pascal Rigaux2004-12-291-9/+1
| | | | will be useful for other things)
* remove some unneeded ";", add some for normalization (as told by perl_checker)Pascal Rigaux2004-11-181-1/+1
|
* no need to run vgscan and vgchange in standalonePascal Rigaux2004-10-141-2/+4
| | | | | (nb: /etc/lvmtab is no more used, so i also dropped that check)
* don't die when device-mapper is missing (occurs on 2.4 kernel) (bugzilla #11834)Pascal Rigaux2004-09-301-3/+4
|
* call pvremove on every PVs when destroying a VG (to clear the LVM2 magic) ↵Pascal Rigaux2004-09-221-0/+1
| | | | (bugzilla #11579)
* 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