summaryrefslogtreecommitdiffstats
path: root/perl-install/fsedit.pm
Commit message (Collapse)AuthorAgeFilesLines
* - switch to mdadm (instead of raidtools)Pascal Rigaux2004-08-081-53/+10
| | | | | | | | | - create mdadm.conf instead of raidtab - internal {raids} is no more indexed by X for mdX, and so don't have holes anymore - internal {chunk-size} is now a number in KiB - internal {raid} is the raid device name, not the number - various cleanup for raid detection
* reverted an unneeded string changePablo Saratxaga2004-08-061-1/+1
|
* move mount options related stuff from fs.pm to newly created fs/mount_options.pmPascal Rigaux2004-08-031-1/+1
| | | | | | | | | | | - fs::set_all_default_options() -> fs::mount_options::set_all_default() - fs::mount_options_pack() -> fs::mount_options::pack() - fs::mount_options_unpack() -> fs::mount_options::unpack() - fs::rationalize_options() -> fs::mount_options::rationalize() - fs::set_default_options() -> fs::mount_options::set_default() - fs::mount_options() -> fs::mount_options::list() - fs::mount_options_help() -> fs::mount_options::help()
* many functions in fsedit don't modify anything, they are simply accessors.Pascal Rigaux2004-08-031-128/+22
| | | | | | | | | | | | | | | | | | | | | | | | 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
* fsedit::check_fs_type() is now fs::type::check()Pascal Rigaux2004-08-021-8/+1
|
* - move package_needed_for_partition_type() from fsedit to fs::formatPascal Rigaux2004-08-021-10/+0
| | | | | - create check_package_is_installed() in fs::format and use it
* merge hds() in get_hds() to correctly handle catching cdie when the device ↵Pascal Rigaux2004-07-291-31/+42
| | | | is non partionned
* - add field {fs_type} partially replacing {pt_type}Pascal Rigaux2004-07-271-77/+56
| | | | | | | | | | | | | | | | | | | | {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
* shorter and fasterPascal Rigaux2004-07-221-4/+6
|
* set {is_removable} directly in fsedit::hds()Pascal Rigaux2004-07-221-0/+4
|
* *** empty log message ***Pascal Rigaux2004-07-221-1/+1
|
* *** empty log message ***Pascal Rigaux2004-07-221-0/+1
|
* change_pt_type() must return a boolean valuePascal Rigaux2004-07-151-0/+1
|
* big renaming of field {type} to {pt_type},Pascal Rigaux2004-07-051-45/+45
| | | | | | this will allow defining {fs_type} which will always be a string whereas {pt_type} will always be a number
* create rationalize_options() and use it (bugzilla #3525)Pascal Rigaux2004-07-051-1/+2
| | | | | more checks should be done in this function, and used at more places (but where?)
* in is_same_hd(), both hds can have {device} unset, it doesn't mean they are ↵Pascal Rigaux2004-06-291-1/+1
| | | | the same
* rename is_same_part to are_same_partitions (not that much clear, but at ↵Pascal Rigaux2004-06-151-1/+2
| | | | least a little)
* use "find { ... }"Pascal Rigaux2004-06-151-2/+2
|
* new function isTrueLocalFS() to make a distinction between ext3/reiserfs/... ↵Pascal Rigaux2004-05-271-1/+3
| | | | | | | and nfs => allow /home on nfs (bugzilla #7460)
* really handle LABEL=XXX in fstab (as used by redhat) (no xfs labels yet)Pascal Rigaux2004-05-131-0/+10
|
* fix drakupdate_fstab adding twice an entry in fstab, one with the old name, ↵Pascal Rigaux2004-05-011-1/+2
| | | | one with the devfs name
* perl now handle cleanly utf8 string in exceptions, no need to die \N("...")Pascal Rigaux2004-04-051-16/+16
|
* disallow lvm on / with no /boot until lilo handles itPascal Rigaux2004-03-111-1/+4
|
* /proc/partitions parsing was broken for scsi cdroms using non-devfs names, andPascal Rigaux2004-03-081-6/+5
| | | | | | our 2.6 doesn't use devfs names in /proc/partitions... :'-( (bugzilla #8641)
* type 0x17 *can* be ntfs, assuming it is when we don't care much, and check ↵Pascal Rigaux2004-02-181-2/+3
| | | | if it is ntfs otherwise
* - remove the use of BLKRRPART (telling the kernel to re-read the partition ↵Pascal Rigaux2004-01-151-1/+3
| | | | | | | | | table) in most cases - replace with tell_kernel() and will_tell_kernel() - correctly handle in standalone the need to reboot, with no way to forget it (telling the WM to quit nicely then call reboot when it's done)
* perl_checker compliancePascal Rigaux2004-01-061-1/+2
|
* put in {raw_hds} non partitioned usb keysPascal Rigaux2003-11-271-2/+5
|
* getHds called by install_steps must not be interactivePascal Rigaux2003-11-181-4/+4
|
* - make use_proc_partitions a clean functionPascal Rigaux2003-11-111-1/+4
| | | | | | | (not only used when diskdrake code fails) - fix {start} in read_proc_partitions() ({start} was not re-initialised between drives)
* when the checking the mount point is not already used, don't take into ↵Pascal Rigaux2003-09-171-1/+1
| | | | account current partition
* add a warning for / on LVM: "You may not be able to install lilo (since lilo ↵Pascal Rigaux2003-09-141-0/+3
| | | | doesn't handle a LV on multiple PVs)"
* fix check_mntpoint to get back error "There is already a partition with ↵Pascal Rigaux2003-09-081-3/+3
| | | | mount point %s\n"
* simplifyPascal Rigaux2003-08-211-3/+3
|
* allocatePartitions() resulted in a small unallocated area at the end of thePascal Rigaux2003-08-211-0/+4
| | | | | | | | | | | | | | | | | drive when: - suggest_part() reserves some room for the other partitions which are going to be added next. For maxsize limited partition, it reserves maxsize (if maxsize is reached) - suggest_part() which adds the last partition limited by maxsize can be called on a partition a little bigger than maxsize due to cylinder boundary adjustments on previous partition creations. In that case, it doesn't use the full area. It occured for example with the current $fsedit::suggestions{server}. The fix chosen is to ensure the last suggest_part() is called with a size defined as maxsize <= size < maxsize + cylinder_size.
* fix english (thanks to Arpad Biro)Pascal Rigaux2003-08-201-1/+1
|
* Handle /boot/efi as an EFI partitionGwenolé Beauchesne2003-08-191-1/+1
|
* re-export %fsedit::suggestions as needed (why did titi my-ed it?) (fixes bug ↵Pascal Rigaux2003-07-291-1/+1
| | | | #4298)
* - move read_proc_partitions_raw() from fsedit.pm to devices.pmThierry Vignaud2003-06-241-14/+2
| | | | | | - (devices::from_devfs, devices::from_devfs) handle block devices too, with read_proc_partitions_raw() helper
* fix pixel vs strict pragamThierry Vignaud2003-06-241-1/+1
|
* allow encrypted partitions in auto_install (with encrypt_key non encrypted!)Pascal Rigaux2003-06-161-1/+1
|
* fix computeSize which took into account suggested partitions on another drivesPascal Rigaux2003-06-061-5/+8
| | | | | (which is especially bad for LVMs)
* allow specifying lv_name in auto_installs (not tested!)Pascal Rigaux2003-06-041-1/+3
|
* perl_checker fixesThierry Vignaud2003-05-231-1/+1
|
* perl_checker adaptations + fixesPascal Rigaux2003-04-241-1/+1
|
* new perl_checker compliancePascal Rigaux2003-04-171-16/+16
|
* /root on a separate partition gives a warning, not an errorPascal Rigaux2003-02-271-1/+3
|
* use test_for_bad_drives even after install (esp. to detect removed usb-storagePascal Rigaux2003-02-211-1/+1
| | | | | devices still visible in /proc/scsi/scsi)
* warn non-ascii chars in mount point (cf bug #1588)Pascal Rigaux2003-02-201-0/+1
|
* use cdie instead of die for warningsPascal Rigaux2003-02-201-1/+1
|