summaryrefslogtreecommitdiffstats
path: root/perl-install/partition_table
Commit message (Collapse)AuthorAgeFilesLines
* first usable sector is LBA34 for GPTThierry Vignaud2016-07-311-0/+2
| | | | | | | | same rationale as in commit 767048570e8c44061cb0d6faf689698d3313870c for mga#18666 this wasn't an issue as we later round partition on 1MB boundary but it's still cleaner/safer...
* sync libparted view with diskdrake oneThierry Vignaud2016-07-121-0/+5
| | | | | | | | | in order to prevent overlapping errors when adding partitions: (b/c libparted doesn't know that diskdrake already removed the partitions in its memory view) "failed to add partition #1 on /dev/vda" "Error: Can't have overlapping partitions." "add_partition failed"
* (initialize) simplifyThierry Vignaud2016-07-081-5/+2
|
* prevent GPT partition to use the 33 last sectorsThierry Vignaud2016-07-051-0/+6
| | | | Resolves: mga#18666, mga#17796
* kill big unused hash of GUIDsThierry Vignaud2016-07-051-89/+1
| | | | basically reverting: commit 36c2fc004bf445ff784bde423ba7aa27885539f8
* kill a bogus FIXME noteThierry Vignaud2016-06-301-1/+0
|
* add a GRUB_BIOS partitions if needed (mga#18656)Thierry Vignaud2016-06-111-1/+2
|
* detect GRUB_BIOS partitions (mga#18656)Thierry Vignaud2016-06-111-0/+4
| | | | let's abuse ->{pt_type} for tracking such partitions
* fix path in commentThierry Vignaud2015-12-241-1/+1
|
* prevent errors when telling kernel to reread partsThierry Vignaud2015-06-131-0/+3
| | | | | | disk_{add,del}_partition call ped_disk_commit() which result in udev events (and also already tell the kernel to reread the partition table (several times))
* set pt_type according to fs_type before flag cases (mga#16029)Thierry Vignaud2015-05-241-5/+5
|
* display cosmetics when reading back GPTThierry Vignaud2015-05-201-0/+6
| | | | | let's diskdrake show the same types as for MBR partitions. to be cleaned once we switch to libparted for everything...
* prefer 'fat32' over 'fat16'Thierry Vignaud2015-05-201-0/+2
| | | | | not that important as we do the format/..., we only rely on libparted for writing the partition table & setting the GUID, but just in case...
* libparted: map 'fat32' to 'vfat' (mga#15987)Thierry Vignaud2015-05-201-0/+2
| | | | | | | fix fs returned by libparted thus fixing mount point for FAT partitions on GTP (mga#15987) this also fix setting the proper GUID for FAT partitions on GPT
* simplifyThierry Vignaud2015-05-201-4/+8
| | | | needed for next commit
* Speed up reading of flags from GPT partition table.Martin Whitaker2015-04-191-4/+4
| | | | | | | | On some machines, calls to ped_disk_new() in libparted take of the order of seconds, so doing this for each flag and partition in turn makes partition_table::gpt::read_one take an inordinate amount of time (mga#15621). Instead, collect the flags during the call to c::get_disk_partitions.
* really try to detect recovery partitions on GPTThierry Vignaud2015-04-031-1/+1
| | | | fix "set_partition_flag: unknown type: recovery" (mga#15621)
* try to detect recovery partitions on GPTThierry Vignaud2015-03-301-0/+2
|
* better fix for too corrupted partition tableThierry Vignaud2015-03-301-1/+1
|
* fix retrieving ntfs partitions s/ntfs/ntfs-3g/Thierry Vignaud2015-03-271-0/+1
|
* really fix retrieving swap partition typeThierry Vignaud2015-03-271-1/+1
| | | | Thomas rushed to push before I run perl_checker... :-(
* 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)
* fix fs_type returned by libparted for swapsThierry Vignaud2015-03-271-0/+1
|
* log which type is unknownThierry Vignaud2015-03-271-1/+1
|
* fix tagging LVM/raid as "linux filesystem" with GPTThierry Vignaud2015-03-271-2/+10
|
* fix tagging ntfs-3g as "linux filesystem" with GPTThierry Vignaud2015-03-271-0/+1
| | | | libparted needs it to be named like this in order to put the right
* fix tagging swap as "linux filesystem" with GPTThierry Vignaud2015-03-271-0/+1
| | | | | libparted needs it to be named like this in order to put the right GUID...
* fix retrieving LVM/RAID partition typeThierry Vignaud2015-03-271-0/+4
| | | | simimar to commit ee22664bcb1fdedece15e07d047ba86f3d791ee6
* make it more genericThierry Vignaud2015-03-271-1/+1
| | | | just bind the libparted function (needed for next commit)
* perl_checker cleanupThierry Vignaud2015-03-251-1/+1
|
* log which partition we fail to addThierry Vignaud2015-03-251-2/+2
|
* set proper GUID to ESP partitions with GPT layoutThierry Vignaud2015-03-251-1/+6
|
* fix retrieving ESP partition typeThierry Vignaud2015-03-251-1/+5
| | | | | | | | | ESP are the only partitions we're detecting through their pt_type (modulo 0x12 which was Compaq Diagnostic & unlikely to be found on GPT...) However GPT has no equivalent to pt_type But we can test for ESP flag
* use a proper interface between parted/perl worldsThierry Vignaud2015-03-251-11/+2
| | | | | | | | | | | | | create directly the hash in XS instead of instead of sprintf()ing it into a string which was then parsed in perl in order to actually create the hash this fixes several issues: - due to adding some fields to the string under if (), we could silently have ignored some partitions - this also simplifies adding further fields
* fix retrieving partitionThierry Vignaud2015-03-251-2/+2
| | | | | | | needed for next commit also we were passing '' as fs_type to c::disk_add_partition() $part was undef since commit 9e6b327ca2b1f46db62e0811fabf0a6cf0b114a7
* Do not try to delete partitions if the partition table was overwrittenPascal Terjan2015-02-041-1/+4
|
* perl_checker cleanupThierry Vignaud2015-02-041-1/+1
|
* Fix partition number in GPT for empty disksPascal Terjan2015-02-031-1/+2
|
* Fix GPT initialization on empty diskPascal Terjan2015-02-031-1/+5
|
* add GPT partition GUID tableThomas Backlund2014-12-221-0/+90
|
* kill $Id:$ tagsThierry Vignaud2014-06-0710-10/+10
| | | | 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...
* (read_one) better error message (more info)Thierry Vignaud2012-04-071-1/+1
|
* SimplifyPascal Terjan2012-04-071-19/+13
|
* Fix partition numbering on GPT (mga#3091)Pascal Terjan2012-04-051-9/+14
|
* perl_checker cleanupsThierry Vignaud2012-03-233-5/+4
|
* perl_checker hintsThierry Vignaud2011-12-191-2/+2
|
* (read_one) kill Dumper warningThierry Vignaud2011-12-171-3/+0
| | | | (present since "Rewrite gpt support with libparted" (pterjan, 2009-01-27))
* partition_table: align partitions to 1MB boundaries to avoidAnssi Hannula2011-08-061-13/+2
| | | | performance issues with drives with 4k physical sectors (mga#1215)