aboutsummaryrefslogtreecommitdiff
path: root/lib/libdisk
Commit message (Collapse)AuthorAgeFilesLines
* MFtbemd:Warner Losh2010-08-231-1/+1
| | | | | | | | Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want to test of all the CPUs of a given family conform. Notes: svn path=/head/; revision=211725
* Disable a check on a disk size because it's too strict. This change isYoshihiro Takahashi2009-09-211-0/+2
| | | | | | | | | | | | to avoid using incorrect geometry. It seems that this is the same problem in g_part_bsd_read()@g_part_bsd.c. Reviewed by: rink MFC after: 3 days Notes: svn path=/head/; revision=197374
* Correct BIOS header sanitizing on pc98.Yoshihiro Takahashi2009-09-191-3/+6
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=197322
* - Allow a higher value for the number of heads. Its better to do this and allowUlf Lilleengen2009-06-171-1/+1
| | | | | | | a few bad systems to run than to be completely strict about it. Notes: svn path=/head/; revision=194334
* - The maximum number of heads is 255, not 256.Ulf Lilleengen2009-06-151-1/+1
| | | | | | | Pointed out by: marcel Notes: svn path=/head/; revision=194244
* - Remove old and add new valid flags for the chunk structure.Ulf Lilleengen2009-06-151-8/+5
| | | | | | | Submitted by: randi Notes: svn path=/head/; revision=194243
* - Relax sanitazion requirements in libdisk, as a previous commit enabling thisUlf Lilleengen2009-06-151-9/+1
| | | | | | | | | | | sanitization broke sysinstall on some disks. This was due to the disks reporting a geometry that was incorrectly sanitized by sysinstall. This makes the sanitization consistent with fdisk. Tested by: randi Notes: svn path=/head/; revision=194241
* Simplify now that we have gpart.Marcel Moolenaar2009-05-201-84/+33
| | | | Notes: svn path=/head/; revision=192424
* - Sanitize disk parameters retrieved from GEOM, as they are not guaranteed toUlf Lilleengen2009-02-091-0/+3
| | | | | | | | | | have sane values. It caused sysinstall to crash when installing on certain SD cards. Discussed with: marcel Notes: svn path=/head/; revision=188408
* Add MIPS support to libdiskOleksandr Tymoshenko2008-05-043-1/+52
| | | | | | | Approved by: cognet (mentor) Notes: svn path=/head/; revision=178765
* Add support for gpart:Marcel Moolenaar2008-04-241-6/+10
| | | | | | | | | o Correct for gpart's 1-based index, versus 0-based index used by legacy slicers. o Parse and understand the xs and xt parameters. Notes: svn path=/head/; revision=178451
* Correct an off-by-1 for GPART. The literal partition type (i.e.Marcel Moolenaar2008-04-231-2/+8
| | | | | | | | | | the actual UUID) is prefixed by '!' to distinguish them from well-known aliases. MFC after: 3 days Notes: svn path=/head/; revision=178432
* - Make Disk_Names() behave as documented in libdisk(3): return an arrayAntoine Brodin2008-02-151-5/+14
| | | | | | | | | | | | | | of disk names, where you must free each pointer, as well as the array by hand. [1] - Destaticize "disks" in Disk_Names, it has no reasons to be static. PR: kern/96077 [1] PR: kern/114110 [1] MFC after: 1 month Approved by: rwatson (mentor) Notes: svn path=/head/; revision=176322
* Hmmm, must get reading glasses or else change the font on my terminal. ThatMike Makonnen2007-11-241-1/+1
| | | | | | | | | comma looks like a period. Noticed by: brueffer Notes: svn path=/head/; revision=173881
* Enclose entire header in #ifndef _LIBDISK_H_Mike Makonnen2007-11-201-0/+5
| | | | Notes: svn path=/head/; revision=173791
* CapitalizationMike Makonnen2007-11-181-1/+1
| | | | Notes: svn path=/head/; revision=173738
* Translate partitions of type "PART" to chunks of the same typeMarcel Moolenaar2007-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) Notes: svn path=/head/; revision=172286
* On PowerPC, geom_part has taken over the partitioning from geom_apple.Marcel Moolenaar2007-09-211-2/+7
| | | | | | | | | | Translate partitions of type "PART" to chunks of type "apple" on PowerPC. This fixes sysinstall. Approved by: re (kensmith) Notes: svn path=/head/; revision=172285
* Improve error handling in libdisk while parsing the kern.geom.conftxt sysctl.Rink Springer2007-08-051-19/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, any parse error will result in the calling program exiting with an unpleasant message. This change will cause libdisk to issue a warning and ignore lines it cannot parse instead of bluntly terminating the unfortunate enough program. This change will allow you to use sysinstall if you have a NTFS parition with a space in the name (such as 'Win Xp'). In such a case, a line like the following will appear in the kern.geom.conftxt output: 2 LABEL ntfs/Win Xp 209818635264 512 i 0 o 0 As the fields are space-separated, libdisk would go beserk and exit the program. This would happen if using FreeBSD 7.0 snapshot images (as GEOM_LABEL is in the installation kernel as well), thus making it impossible to install FreeBSD without renaming your NTFS paritions. Reported by: Dwight Berendse <dwight at berendse dot org> Nod from: phk Reviewed by: imp Approved by: re (bmah), imp (mentor) MFC after: 1 month Notes: svn path=/head/; revision=171734
* unbreak build for sparc64 etc.Kip Macy2006-10-091-1/+1
| | | | | | | | | | TARGET won't be defined on non subarches Approved by: rwatson (mentor) Reviewed by: jmg Notes: svn path=/head/; revision=163149
* buildworld fixes for sun4vKip Macy2006-10-091-1/+7
| | | | | | | | | | not sure why pmap.c is included as it is unchanged Approved by: rwatson (mentor) Reviewed by: jmg Notes: svn path=/head/; revision=163148
* Remove alpha-specific stuff.Ruslan Ermilov2006-08-231-88/+0
| | | | Notes: svn path=/head/; revision=161547
* Fix a bug in the size of the PMBR partition. Since the partition startsMarcel Moolenaar2006-08-091-0/+2
| | | | | | | at LBA 1, the size is not the mediasize in sectors, but one less. Notes: svn path=/head/; revision=161135
* o Add IDs for Plan9, QNX4.X, Mac OS-X, Linux exteneded partitions.Maxim Konovalov2006-04-251-0/+7
| | | | | | | | | PR: bin/96326 Submitted by: Alex Kozlov MFC after: 2 weeks Notes: svn path=/head/; revision=158033
* Instead of printing several pieces with .Sy just enclose the 'Note' blockHartmut Brandt2006-01-301-4/+6
| | | | | | | | | into a .Bf/.Ef pair. Submitted by: ru Notes: svn path=/head/; revision=155036
* The .Nm macro prints Open_Disk() instead of libdisk, so use an expliciteHartmut Brandt2006-01-271-2/+2
| | | | | | | argument to get 'libdisk'. Also bump the date of the man page. Notes: svn path=/head/; revision=154917
* Revert 1.45 now that snmp_hostres uses libgeom.Hartmut Brandt2006-01-272-0/+8
| | | | Notes: svn path=/head/; revision=154915
* Add a dummy arm Write_Disk() function, and compile libdisk on arm.Olivier Houchard2006-01-253-1/+51
| | | | Notes: svn path=/head/; revision=154814
* Build shared library on behalf of bsnmpd.Ruslan Ermilov2006-01-121-1/+0
| | | | Notes: svn path=/head/; revision=154247
* Fix prototypes.Ruslan Ermilov2005-11-241-8/+8
| | | | Notes: svn path=/head/; revision=152758
* Merge two slice_type_name() functions.Yoshihiro Takahashi2005-04-131-23/+4
| | | | Notes: svn path=/head/; revision=145013
* Add over 32GB disk support on pc98 (userland part).Yoshihiro Takahashi2005-03-301-1/+24
| | | | | | | Submitted by: Hirokazu WATANABE Notes: svn path=/head/; revision=144334
* Initialise `sn' before using its value.Stefan Farfeleder2005-03-081-2/+1
| | | | Notes: svn path=/head/; revision=143306
* Expand *n't contractions.Ruslan Ermilov2005-02-131-1/+1
| | | | Notes: svn path=/head/; revision=141846
* Remove an unnecessary defination of New_Chunk, which has beenXin LI2005-01-051-2/+0
| | | | | | | defined in libdisk.h. Notes: svn path=/head/; revision=139720
* Various markup and spelling fixes.Tom Rhodes2004-12-291-3/+3
| | | | | | | | PR: 75574 Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp> (original version) Notes: svn path=/head/; revision=139389
* Plug memory leak.Pyun YongHyeon2004-12-221-1/+4
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=139167
* NODOCCOMPRESS -> NO_DOCCOMPRESSRuslan Ermilov2004-12-211-2/+2
| | | | | | | | | | | NOINFO -> NO_INFO NOINFOCOMPRESS -> NO_INFOCOMPRESS NOLINT -> NO_LINT NOPIC -> NO_PIC NOPROFILE -> NO_PROFILE Notes: svn path=/head/; revision=139106
* Add 0xbf (191) as new Solaris partition identifier.Poul-Henning Kamp2004-11-101-0/+1
| | | | | | | Submitted by: Lawrence.Lee@sun.com Notes: svn path=/head/; revision=137512
* Don't barf when we encounter an UUID for GPT partitions. Instead, addMarcel Moolenaar2004-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 Notes: svn path=/head/; revision=137092
* For variables that are only checked with defined(), don't provideRuslan Ermilov2004-10-241-2/+2
| | | | | | | any fake value. Notes: svn path=/head/; revision=136910
* We have now so many GEOM classes that it is better to just skip unknownPawel Jakub Dawidek2004-09-131-12/+2
| | | | | | | | | | classes than exiting. Reviewed by: le OK'ed by: phk Notes: svn path=/head/; revision=135153
* Ignore geom_stripe providers.Lukas Ertl2004-09-131-0/+2
| | | | | | | MFC in: one week Notes: svn path=/head/; revision=135145
* Don't use type unknown for partitions that we don't care about becauseMarcel Moolenaar2004-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. Notes: svn path=/head/; revision=133179
* Typo in comment.Lukas Ertl2004-08-021-1/+1
| | | | Notes: svn path=/head/; revision=133032
* Ignore geom_vinum providers.Lukas Ertl2004-08-021-0/+2
| | | | Notes: svn path=/head/; revision=133028
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-5/+10
| | | | Notes: svn path=/head/; revision=131504
* Handle read_block() failures by ignoring the disk rather thanBrian Somers2004-06-044-10/+34
| | | | | | | dumping core. Notes: svn path=/head/; revision=130067
* Remove spurious semicolons. Outside of functions they are actually errors butStefan Farfeleder2004-05-161-1/+1
| | | | | | | | | | | GCC doesn't warn about them without -pedantic. Approved by: das (mentor) PR: 56649 Reviewed by: md5 Notes: svn path=/head/; revision=129302
* PowerPC support.Peter Grehan2004-04-216-4/+125
| | | | | | | | submitted by: Suleiman Souhlal <refugee@segfaulted.com> approved by: phk, jhb Notes: svn path=/head/; revision=128541