summaryrefslogtreecommitdiffstats
path: root/lib/libdisk
Commit message (Collapse)AuthorAgeFilesLines
* unbreak build for sparc64 etc.kmacy2006-10-091-1/+1
| | | | | | | TARGET won't be defined on non subarches Approved by: rwatson (mentor) Reviewed by: jmg
* buildworld fixes for sun4vkmacy2006-10-091-1/+7
| | | | | | | not sure why pmap.c is included as it is unchanged Approved by: rwatson (mentor) Reviewed by: jmg
* Remove alpha-specific stuff.ru2006-08-231-88/+0
|
* Fix a bug in the size of the PMBR partition. Since the partition startsmarcel2006-08-091-0/+2
| | | | at LBA 1, the size is not the mediasize in sectors, but one less.
* o Add IDs for Plan9, QNX4.X, Mac OS-X, Linux exteneded partitions.maxim2006-04-251-0/+7
| | | | | | PR: bin/96326 Submitted by: Alex Kozlov MFC after: 2 weeks
* Instead of printing several pieces with .Sy just enclose the 'Note' blockharti2006-01-301-4/+6
| | | | | | into a .Bf/.Ef pair. Submitted by: ru
* The .Nm macro prints Open_Disk() instead of libdisk, so use an expliciteharti2006-01-271-2/+2
| | | | argument to get 'libdisk'. Also bump the date of the man page.
* Revert 1.45 now that snmp_hostres uses libgeom.harti2006-01-272-0/+8
|
* Add a dummy arm Write_Disk() function, and compile libdisk on arm.cognet2006-01-253-1/+51
|
* Build shared library on behalf of bsnmpd.ru2006-01-121-1/+0
|
* Fix prototypes.ru2005-11-241-8/+8
|
* Merge two slice_type_name() functions.nyan2005-04-131-23/+4
|
* Add over 32GB disk support on pc98 (userland part).nyan2005-03-301-1/+24
| | | | Submitted by: Hirokazu WATANABE
* Initialise `sn' before using its value.stefanf2005-03-081-2/+1
|
* Expand *n't contractions.ru2005-02-131-1/+1
|
* Remove an unnecessary defination of New_Chunk, which has beendelphij2005-01-051-2/+0
| | | | defined in libdisk.h.
* Various markup and spelling fixes.trhodes2004-12-291-3/+3
| | | | | PR: 75574 Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp> (original version)
* Plug memory leak.yongari2004-12-221-1/+4
| | | | MFC after: 1 week
* NODOCCOMPRESS -> NO_DOCCOMPRESSru2004-12-211-2/+2
| | | | | | | | NOINFO -> NO_INFO NOINFOCOMPRESS -> NO_INFOCOMPRESS NOLINT -> NO_LINT NOPIC -> NO_PIC NOPROFILE -> NO_PROFILE
* Add 0xbf (191) as new Solaris partition identifier.phk2004-11-101-0/+1
| | | | Submitted by: Lawrence.Lee@sun.com
* Don't barf when we encounter an UUID for GPT partitions. Instead, addmarcel2004-10-312-2/+3
| | | | | | | | | the GPT partition on i386 and adm64 as type=gpt, subtype=0 and with the sname set to the UUID. This prevents sysinstall from bombing out. This also makes sure the GPT partition shows up in sysinstall so as to avoid accidental "clobberage". PR: bin/72896
* For variables that are only checked with defined(), don't provideru2004-10-241-2/+2
| | | | any fake value.
* We have now so many GEOM classes that it is better to just skip unknownpjd2004-09-131-12/+2
| | | | | | | classes than exiting. Reviewed by: le OK'ed by: phk
* Ignore geom_stripe providers.le2004-09-131-0/+2
| | | | MFC in: one week
* 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.
* Typo in comment.le2004-08-021-1/+1
|
* Ignore geom_vinum providers.le2004-08-021-0/+2
|
* Mechanically kill hard sentence breaks.ru2004-07-021-5/+10
|
* Handle read_block() failures by ignoring the disk rather thanbrian2004-06-044-10/+34
| | | | dumping core.
* Remove spurious semicolons. Outside of functions they are actually errors butstefanf2004-05-161-1/+1
| | | | | | | | GCC doesn't warn about them without -pedantic. Approved by: das (mentor) PR: 56649 Reviewed by: md5
* PowerPC support.grehan2004-04-216-4/+125
| | | | | submitted by: Suleiman Souhlal <refugee@segfaulted.com> approved by: phk, jhb
* MFi386: WARNS=4 clean.nyan2004-03-301-7/+7
|
* Down to WARNS=2 for a while.kuriyama2004-03-301-1/+1
|
* Make libdisk WARNS=4 clean.kuriyama2004-03-306-26/+31
| | | | Glanced by: jhb
* Change libdisk and sysinstall to use d_addr_t rather than u_long for diskjhb2004-03-166-71/+74
| | | | | | | | | | | | | | | | addresses. For arch's with 64-bit longs, this is a nop, but for i386 this allows sysinstall to properly handle disks and filesystems > 1 TB. Changes from the original patch include: - Use d_addr_t rather than inventing a blkcnt type based on int64_t. - Use strtoimax() rather than strtoull() to parse d_addr_t's from config files. - Use intmax_t casts and %jd rather than %llu to printf d_addr_t values. Tested on: i386 Tested by: kuriyama Submitted by: julian MFC after: 1 month
* style.Makefile:johan2004-02-231-1/+1
| | | | Use WARNS?= instead of WARNS=.
* In Write_Disk(), fix the non-error case where we returned to themarcel2004-01-301-4/+0
| | | | | | | | caller without closing the disk device and freeing allocated memory. Not closing the disk device prevents GEOM from retasting after spoiling. Pointy hat: marcel
* Fix an uninitialized variable bug that caused write_pmbr() to boguslymarcel2004-01-281-3/+4
| | | | | | return an error value that made Write_Disk() abort. While on the subject, improve the initialization of the error variable in read_gpt() and update_gpt() even though nothing was broken there.
* Fixed pc98 partition type.nyan2004-01-271-1/+1
|
* Declare crc32 static. There's a copy in libz that conflicts for themarcel2003-11-171-1/+1
| | | | | | crunched binary. Found by: make release
* The partition naming on ia64 (e.g. da0p1) cannot be selected basedmarcel2003-11-121-0/+4
| | | | | | | | | | | on whether the parent chunk is of type whole. This also applies to MBR slices for non-GPT disks. Since most of the GPT handling is conditionally compiled, do the same with the partition naming. This fixes a braino that caused slices to be named as GPT partitions and generally messing up an install. Pointy hat: marcel
* o Save a copy of the GPT entries for which there's a chunk with anmarcel2003-11-041-10/+55
| | | | | | | | | | | index referencing it. We need to know the original type and name so that we know what to put in the table when we reconstruct it. o Clear the table entries before we rebuild it to avoid that we end up with stale data. o Sequentially populate the table entries from the chunks. For the chunks that have an index (now referencing the saved copy) we use the saved type and name. This way we can handle unknown types better. In all cases we update the start and end LBAs.
* Don't divide the start and end of the chunk by the sector size whenmarcel2003-11-031-2/+2
| | | | | | filling in the GPT entry. Both are already in sector numbers (LBA) and exactly what we need for the entry. We now write a structurally correct GPT partitioning.
* 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.
* Rewrite Write_Disk() so that it creates a GPT. Note that the code ismarcel2003-11-031-15/+363
| | | | | basicly untested, but the guts is all there. I need to free up a disk before I give it a spin.
* Turn Write_Disk() into a stub for now. It needs to be rewritten tomarcel2003-11-021-149/+2
| | | | write out a GPT and not a MBR.
* o Move Int_Open_Disk() from disk.c to open_disk.c for use by allmarcel2003-11-026-304/+603
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Do not fill in d_ncylinders, d_ntracks and d_nsectors in the disklabelmarcel2003-11-021-0/+2
| | | | | on ia64. Not only do we not have a disklabel by default, we also do not have a notion of cylinders, tracks and sectors.
* Compile-out support for allfreebsd, dedicate, sanitize and bios onmarcel2003-11-021-0/+2
| | | | ia64. These commands are PC specific and not supported.
* Turn Track_Aligned(), Prev_Track_Aligned(), Next_Track_Aligned(),marcel2003-11-021-7/+22
| | | | | | Cyl_Aligned(), Prev_Cyl_Aligned() and Next_Cyl_Aligned() into tautologies on ia64. GPT removes all notion of tracks, heads and sectors per track, so there are no alignment considerations.
OpenPOWER on IntegriCloud