summaryrefslogtreecommitdiffstats
path: root/lib/libdisk/open_ia64_disk.c
Commit message (Collapse)AuthorAgeFilesLines
* With the old sade removed, libdisk is no longer used by anything in HEADnwhitehorn2012-12-301-239/+0
| | | | | and uses a number of problematic pre-gpart interfaces. Since it has been entirely obsoleted by interfaces in geom, remove it.
* Simplify now that we have gpart.marcel2009-05-201-84/+33
|
* Correct an off-by-1 for GPART. The literal partition type (i.e.marcel2008-04-231-2/+8
| | | | | | | the actual UUID) is prefixed by '!' to distinguish them from well-known aliases. MFC after: 3 days
* Translate partitions of type "PART" to chunks of the same typemarcel2007-09-211-4/+15
| | | | | | | | as they would have been translated from partitions of type "GPT". This fixes sysinstall, now that geom_part has taken over from geom_gpt. Approved by: re (kensmith)
* Don't use type unknown for partitions that we don't care about becausemarcel2004-08-051-2/+2
| | | | | | the chunk will never be added to the list in that case. Use type mbr for GPT nested MBRs and use type part for any partition we don't know or care about. Since the subtype is 0, this should not cause confusion.
* Fix two bugs in the calculation of the last LBA of the GPT coveredmarcel2003-11-031-2/+2
| | | | | | | | | part of the disk. The first appears to be a typo and instead of dividing the media size with the sector size, we multiplied. The second is an off-by-1 error that's the result of mixing up count and index. The code in question is only applicable for virgin disks and is used to create the "whole" chunk, which covers only the GPT usable portion of the disk.
* o Move Int_Open_Disk() from disk.c to open_disk.c for use by allmarcel2003-11-021-0/+273
platforms except ia64 and use Int_Open_Disk() in open_ia64_disk.c on ia64. We need to know more than GEOM can provide us so we're forced to read from the disk. Move uuid_type() to open_ia64_disk.c and remove all references on non-ia64. o Pass the GEOM conftxt to Int_Open_Disk() so that only Open_Disk() needs to know about GEOM and libdisk can more easily be used with media not handled by GEOM. o Create an ia64 specific definiton of struct disk on ia64, because we don't need/have most of the fields other platforms need and other fields not applicable on platforms other than ia64. o Do not compile change.c on ia64. It's too PC specific. o In Fixup_Names() in create_chunk.c, try all partition numbers that are valid for the GPT disk. We have the total number of partitions that can be allocated in the disk structure on ia64. Also, use the GPT partition naming if we're creating one under a chunk of type "whole". It's a GPT partition in that case. o In Create_Chunk(), compile-out the PC specific code on ia64 that checks BIOS geometry restrictions. o In Debug_Disk() in disk.c, dump the ia64 specific fields. o Save the partition index in the chunk on ia64 so that we can preserve it when we write the data back to disk. This avoids that partitions get moved around or swapped after installing FreeBSD, which may render a disk unusable.
OpenPOWER on IntegriCloud