summaryrefslogtreecommitdiffstats
path: root/perl-install/partition_table.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
* - add field {fs_type} partially replacing {pt_type}Pascal Rigaux2004-07-271-269/+10
| | | | | | | | | | | | | | | | | | | | {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
* replace pt_type2name($part->{pt_type}) with part2name($part)Pascal Rigaux2004-07-231-3/+6
| | | | | (hoisting the dereferencing {pt_type})
* - simplify partition table entry names (based on fdisk's names)Pascal Rigaux2004-07-231-113/+100
| | | | | - rename some internal variables
* old dos is not useful anymorePascal Rigaux2004-07-231-1/+1
|
* simplifyPascal Rigaux2004-07-231-5/+6
|
* big renaming of field {type} to {pt_type},Pascal Rigaux2004-07-051-33/+34
| | | | | | this will allow defining {fs_type} which will always be a string whereas {pt_type} will always be a number
* new function isTrueLocalFS() to make a distinction between ext3/reiserfs/... ↵Pascal Rigaux2004-05-271-3/+4
| | | | | | | and nfs => allow /home on nfs (bugzilla #7460)
* perl now handle cleanly utf8 string in exceptions, no need to die \N("...")Pascal Rigaux2004-04-051-5/+5
|
* add set_best_geometry_for_the_partition_table to use the hd geometry instead ↵Pascal Rigaux2004-03-171-0/+2
| | | | of the physical geometry returned by the kernel (since for now i can't have bios geometry on 2.6)
* type 0x17 *can* be ntfs, assuming it is when we don't care much, and check ↵Pascal Rigaux2004-02-181-2/+2
| | | | if it is ntfs otherwise
* - tell kernel to remove the extended partitionPascal Rigaux2004-01-301-1/+2
| | | | | - true/false is better than yes/no in log message
* enhance log message "tell kernel ..."Pascal Rigaux2004-01-301-1/+1
|
* - remove the use of BLKRRPART (telling the kernel to re-read the partition ↵Pascal Rigaux2004-01-151-29/+78
| | | | | | | | | 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-2/+3
|
* ensure that a number is not written as the type in fstabPascal Rigaux2003-09-171-1/+5
|
* associate partition table 0xeb (BeOS) with filesystem befs (part of bug #5523)Pascal Rigaux2003-09-151-0/+1
|
* - fix call to openit()Pascal Rigaux2003-08-211-6/+4
| | | | | - replace *F with $F
* - Merge in AMD64 treeGwenolé Beauchesne2003-08-191-2/+8
| | | | | - Handle EFI partitions on IA-64
* perl_checker fixesThierry Vignaud2003-05-231-1/+1
|
* perl_checker adaptations + fixesPascal Rigaux2003-04-241-1/+1
|
* new perl_checker compliancePascal Rigaux2003-04-171-9/+9
|
* set {device_windobe} for 0x107 *and* 0x7 (since 0x107 is not set correctly ↵Pascal Rigaux2003-02-201-2/+6
| | | | | | | at this stage) (otherwise this causes mount points /mnt/win_ /mnt/win_1...)
* to workaround perl bug removing UTF8 flag when passing scalars to die's, passGuillaume Cottenceau2003-02-191-5/+5
| | | | | | a scalar-ref. but we need to de-ref, so it might break many things :). let's make a prayer :).
* /proc/partitions includes partition with type "empty" and a non-null sizePascal Rigaux2003-02-181-1/+2
| | | | | so add them for comparison
* - ensure someone can't set a mount point on a non formatted ntfs partitionPascal Rigaux2003-02-181-1/+4
| | | | | - remove the mount point when destructive resizing and isNonMountable
* perl_checker compliance ("ref" now need parentheses in many case)Pascal Rigaux2003-02-121-1/+1
|
* handle 0x7 partition table id specially since it can be both hpfs or ntfs.Pascal Rigaux2003-02-111-2/+4
| | | | | | | so adding 0x107 being really ntfs. hopefully this change won't break too much things (but things were already broken, since it assigned a mount point with type ntfs to some hpfs partitions) (fixes bug #1455)
* (adjust_local_extended): fix resizing local extendedPascal Rigaux2003-02-021-6/+7
|
* add isFat_or_NTFS() and use it where possible instead of isFat() since WindowsPascal Rigaux2003-01-301-6/+6
| | | | | is now using ntfs, not only Windows NT
* use "if any" instead of "if grep", and various other occurences of "any", ↵Pascal Rigaux2003-01-071-1/+1
| | | | "every", "partition"
* enumerate the various required packages when requiring a package dynamically ↵Pascal Rigaux2002-12-181-0/+7
| | | | known
* remove exported names which are not definedPascal Rigaux2002-12-131-1/+1
|
* replace "map $_->{normal}, @l" with "map { $_->{normal} } @l"Pascal Rigaux2002-12-051-1/+1
| | | | | (the other form is perl_checker-deprecated)
* remove unused variables or rename them with an underscore (eg: $o becomes $_o)Pascal Rigaux2002-12-041-1/+0
|
* do not use "local *F", use "my $F" or output() insteadPascal Rigaux2002-12-031-3/+1
|
* perl_checker adaptationsPascal Rigaux2002-11-281-1/+1
|
* perl_checker adaptationsPascal Rigaux2002-11-271-2/+2
|
* make perl_checker happyPascal Rigaux2002-11-141-1/+1
|
* add/remove some spaces to make perl_checker happyPascal Rigaux2002-11-121-1/+1
|
* add or remove spaces where need to please perl_checkerPascal Rigaux2002-11-111-8/+8
|
* - have "local *FILEHANDLE" before each "open FILEHANDLE, ..."Pascal Rigaux2002-11-061-1/+1
| | | | | - use some "cat_" and "output" where possible
* replace complex "unless"s with "if"sPascal Rigaux2002-11-061-1/+1
|
* replace "_" with "N" and "__" with "N_"Pascal Rigaux2002-11-061-8/+8
| | | | | | | | | | | | | | | | | | | 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!
* - isUBD can tell wether it is an ubd partitionPascal Rigaux2002-11-051-1/+2
| | | | | - isSpecial is true for ubd partitions
* - add ntfs in isOtherAvailableFSPascal Rigaux2002-09-181-2/+2
| | | | | - but ensure it is not in isMountableRW
* remove associating 0x35 => 'jfs' since it causes types_rev to associate jfs ↵Pascal Rigaux2002-08-281-1/+0
| | | | to 0x35 instead of 0x383
* - do not handle clearall in read()Pascal Rigaux2002-08-271-6/+3
| | | | | - ensure not partition table in written when "readonly" (it must not happen, but just in case)
* rename LVMname to VG_namePascal Rigaux2002-08-111-1/+1
|
* make new perl_checker happy (and that's not easy!)Pascal Rigaux2002-07-311-2/+2
|