summaryrefslogtreecommitdiffstats
path: root/perl-install/partition_table/raw.pm
Commit message (Collapse)AuthorAgeFilesLines
* diskdrake: fix adding parts to extended partition on hybrid ISO (mga#27862)Martin Whitaker2020-12-181-2/+2
|
* diskdrake: support adding partitions to Live ISOs on USB sticks (mga#25224)Martin Whitaker2020-02-291-1/+2
|
* Remove redundant code when initialising a partition table.Martin Whitaker2017-03-141-6/+0
| | | | | | Now we force the kernel to reread the partition table when we initialise it, there's no need to also inform it that we've deleted all the existing partitions.
* Don't tell the kernel about partition table changes when it rescans them ↵Martin Whitaker2017-02-251-0/+6
| | | | | | | | | | | | | | | automatically (mga#20074). When no partitions on a DOS-partitioned disk are mounted, the kernel automatically rescans the partition table when it is written to disk. We shouldn't then try to update the kernel's view of the partition table, as the list of deltas we have recorded is relative to the previous state of the partition table, not the newly rescanned state. The behaviour for other partition table types is unchanged. v2 (tvignaud): just make base class assume the kernel doesn't reread, only mbr subclass overrides need_to_tell_kernel() in order to be smarter
* Ensure the kernel doesn't rescan a partially written partition table ↵Martin Whitaker2017-02-251-0/+10
| | | | | | | | | | | | | | | | | | | (mga#20074). When no partitions on a DOS-partitioned disk are mounted, the kernel automatically rescans the partition table when the file handle to the raw device is released. Currently the code opens and closes the raw device when writing the primary partition table and when writing each extended partition table segment. As the extended partition table segments form a linked list, this allows the kernel to get in and rescan the table when the list is not in a coherent state. This patch changes the code to open the raw device before writing the primary partition table and to close it only after writing the last extended partition table segment. The behaviour for other partition table types is unchanged. v2 (tvignaud): simplify by moving copies of noop funcs into the base class
* better fix for too corrupted partition tableThierry Vignaud2015-03-301-1/+1
|
* fix failing to read partition table (mga#13592, mga#15272)Thierry Vignaud2015-03-271-1/+2
| | | | | | this is making it more readable regarding: "I cannot read the partition table of device XXX, it is too corrupted" (mga#13592, mga#15272, mga#15472)
* kill $Id:$ tagsThierry Vignaud2014-06-071-1/+1
| | | | they're obsolete since switching from CVS/SVN to git...
* drop (broken) support for Alpha, PPC, Sparc & most of IA64Thierry.Vignaud2014-05-261-4/+0
| | | | | | | | | | | | | Including Xsun, silo & yaboot support Rationale: it's unused/unmaintained for years and those arches are beyond any hope of being usefull any day... They just got in the way... Part of IA64 support is still kept (eg: support for GPT, EFI, right xorg driver at install, ...) as it might be usefull to extend to other arches Next to consider: Xbox?
* recognize grub2 magic (from rosa but cleaned)Thierry Vignaud2012-12-071-0/+8
| | | | warning: looks bogus and actually unused by Rosa...
* perl_checker cleanupsThierry Vignaud2012-03-231-1/+1
|
* partition_table: align partitions to 1MB boundaries to avoidAnssi Hannula2011-08-061-13/+2
| | | | performance issues with drives with 4k physical sectors (mga#1215)
* - perl -pi -e 's!Something bad is happening on your drive!Something bad is ↵Ahmad Samir2011-04-041-1/+1
| | | | happening on your hard disk drive!'
* - use 'cannot' instead of 'can not'Ahmad Samir2011-04-021-5/+5
| | | | | - use 'LDAP' instead of 'Ldap'
* Synthesized commit during git-svn import combining previous Mandriva history ↵Mageia SVN-Git Migration2011-02-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with Mageia. This commit consitsts of the following subversion commits: ------------------------------------------------------------------------ r431 | dmorgan | 2011-02-06 01:58:02 +0000 (Sun, 06 Feb 2011) | 1 line Add drakx structure on the SVN ------------------------------------------------------------------------ r432 | dmorgan | 2011-02-06 01:59:38 +0000 (Sun, 06 Feb 2011) | 1 line Import cleaned advertising ------------------------------------------------------------------------ r446 | dmorgan | 2011-02-06 22:37:08 +0000 (Sun, 06 Feb 2011) | 1 line Import Clean perl-install ------------------------------------------------------------------------ r448 | dmorgan | 2011-02-06 23:02:36 +0000 (Sun, 06 Feb 2011) | 1 line Add cleaned files ------------------------------------------------------------------------ r449 | dmorgan | 2011-02-06 23:03:52 +0000 (Sun, 06 Feb 2011) | 1 line Import cleaned kernel ------------------------------------------------------------------------ r450 | dmorgan | 2011-02-06 23:23:30 +0000 (Sun, 06 Feb 2011) | 1 line Import cleaned tools ------------------------------------------------------------------------ r451 | dmorgan | 2011-02-07 00:01:56 +0000 (Mon, 07 Feb 2011) | 1 line Import stage1 ------------------------------------------------------------------------ r473 | dmorgan | 2011-02-07 11:20:50 +0000 (Mon, 07 Feb 2011) | 1 line Import images ------------------------------------------------------------------------ r497 | ennael | 2011-02-09 21:02:06 +0000 (Wed, 09 Feb 2011) | 2 lines readd missing file ------------------------------------------------------------------------ r502 | pterjan | 2011-02-09 23:30:32 +0000 (Wed, 09 Feb 2011) | 1 line Import rescue ------------------------------------------------------------------------ r603 | ennael | 2011-02-24 13:32:54 +0000 (Thu, 24 Feb 2011) | 2 lines import cleaned rescue for Mageia ------------------------------------------------------------------------ r2061 | tv | 2011-10-20 20:32:19 +0100 (Thu, 20 Oct 2011) | 1 line import (cleaned) doc ------------------------------------------------------------------------
* fix using empty dmraidPascal Terjan2010-02-091-1/+13
|
* fix styleOlivier Blin2009-08-041-1/+1
|
* Fix a crash when trying to create a partition on a device with no cylinder_sizePascal Terjan2009-08-041-5/+7
|
* more loggingPascal Rigaux2008-08-211-1/+1
|
* - partitioning wizard lirary: Pascal Rigaux2008-03-251-0/+6
| | | | | | | o allow "Use free space" if there is an extended partition even if all primary partitions are used (#38804) (*old* bug!)
* fix previous commitPascal Rigaux2008-01-221-1/+1
|
* handle missing mbr_signature in /sys/firmware/edd/int13_dev*Pascal Rigaux2008-01-221-1/+1
|
* - diskdrake :Pascal Rigaux2007-09-191-0/+3
| | | | | | o do not allow partitions bigger than 2TB-1 on DOS MBR, nor partitions starting above 2TB-1
* create partition_table_initialize() and partition_table_clear_and_initialize()Pascal Rigaux2007-09-191-4/+3
| | | | | | which are wrappers around partition_table::initialize() but which also create a singleton VG automatically (so that it's easier for the user)
* oops, this one goes with previous commitPascal Rigaux2007-09-181-7/+0
|
* rename partition_table::raw::clear() into partition_table::initialize()Pascal Rigaux2007-09-181-17/+2
|
* rename ->zero_MBR into ->clear, and ->zero_MBR_and_dirty into ->clear_and_dirtyPascal Rigaux2007-09-181-9/+13
| | | | | (old name kept for compatibility)
* create clear_existing()Pascal Rigaux2007-09-181-2/+7
|
* create partition_table::raw::read_primary out of partition_table::read_primary()Pascal Rigaux2007-09-181-0/+11
|
* create pt_info_to_primary() out of partition_table::read_one()Pascal Rigaux2007-09-181-0/+14
|
* transform ->clear_raw into the more generic ->initializePascal Rigaux2007-09-181-2/+2
| | | | | (useful to have a more standard partition_table::lvm)
* - diskdrake:Pascal Rigaux2007-08-081-0/+1
| | | | | | | | o do not show partition types which have no associated filesystem for LVM LV (#32326) nb: we still would need to have pt_type per partition_table types
* re-sync after the big svn lossPascal Rigaux2007-04-251-4/+15
|
* conectiva 10's grub detection (thanks to bogdano)Pascal Rigaux2005-08-251-0/+1
|
* move is_xbox from common to detect_devicesOlivier Blin2005-08-051-1/+1
|
* ignore HDIO_GETGEO fail (useful for dmraid)Pascal Rigaux2005-06-201-13/+16
|
* create default_type() out of zero_MBR()Pascal Rigaux2005-04-131-4/+8
|
* Diskdrake mods for XBox (thks Pixel)Stew Benedict2005-03-101-0/+5
|
* better english (writing style rather than spoken one)Thierry Vignaud2004-12-131-5/+5
|
* detect on lilo on floppy (bugzilla #12213)Pascal Rigaux2004-11-231-0/+1
|
* add some ";", remove some ";", as told by perl_checkerPascal Rigaux2004-11-181-1/+1
|
* fix yaboot detectionPascal Rigaux2004-11-161-1/+2
|
* don't die when failing to open a device (to get its geometry), skip it insteadPascal Rigaux2004-09-291-8/+15
| | | | | (as used to be done before partition_table::raw::get_geometries() was introduced)
* try to get geometry from EDDPascal Rigaux2004-09-171-1/+45
|
* 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
|
* add set_best_geometry_for_the_partition_table to use the hd geometry instead ↵Pascal Rigaux2004-03-171-1/+7
| | | | of the physical geometry returned by the kernel (since for now i can't have bios geometry on 2.6)
* - remove the use of BLKRRPART (telling the kernel to re-read the partition ↵Pascal Rigaux2004-01-151-15/+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 fixesPascal Rigaux2004-01-051-1/+1
|
* perl_checker fixesThierry Vignaud2003-05-231-1/+1
|