summaryrefslogtreecommitdiff
path: root/lib/libdisk
AgeCommit message (Collapse)Author
2012-12-30With the old sade removed, libdisk is no longer used by anything in HEADNathan Whitehorn
and uses a number of problematic pre-gpart interfaces. Since it has been entirely obsoleted by interfaces in geom, remove it. Notes: svn path=/head/; revision=244865
2012-01-20Remove an errant `#define dprintf printf'. It seems to be leftoverDavid Schultz
debugging code that nothing depends on. (I've had this in my tree for years without issue.) Notes: svn path=/head/; revision=230369
2011-05-14Disconnect sun4v architecture from the three.Attilio Rao
Some files keep the SUN4V tags as a code reference, for the future, if any rewamped sun4v support wants to be added again. Reviewed by: marius Tested by: sbruno Approved by: re Notes: svn path=/head/; revision=221869
2010-10-08mdoc: drop redundant .Pp and .LP callsUlrich Spörlein
They have no effect when coming in pairs, or before .Bl/.Bd Notes: svn path=/head/; revision=213573
2010-08-23MFtbemd:Warner Losh
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
2009-09-21Disable a check on a disk size because it's too strict. This change isYoshihiro Takahashi
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
2009-09-19Correct BIOS header sanitizing on pc98.Yoshihiro Takahashi
MFC after: 3 days Notes: svn path=/head/; revision=197322
2009-06-17- Allow a higher value for the number of heads. Its better to do this and allowUlf Lilleengen
a few bad systems to run than to be completely strict about it. Notes: svn path=/head/; revision=194334
2009-06-15- The maximum number of heads is 255, not 256.Ulf Lilleengen
Pointed out by: marcel Notes: svn path=/head/; revision=194244
2009-06-15- Remove old and add new valid flags for the chunk structure.Ulf Lilleengen
Submitted by: randi Notes: svn path=/head/; revision=194243
2009-06-15- Relax sanitazion requirements in libdisk, as a previous commit enabling thisUlf Lilleengen
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
2009-05-20Simplify now that we have gpart.Marcel Moolenaar
Notes: svn path=/head/; revision=192424
2009-02-09- Sanitize disk parameters retrieved from GEOM, as they are not guaranteed toUlf Lilleengen
have sane values. It caused sysinstall to crash when installing on certain SD cards. Discussed with: marcel Notes: svn path=/head/; revision=188408
2008-05-04 Add MIPS support to libdiskOleksandr Tymoshenko
Approved by: cognet (mentor) Notes: svn path=/head/; revision=178765
2008-04-24Add support for gpart:Marcel Moolenaar
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
2008-04-23Correct an off-by-1 for GPART. The literal partition type (i.e.Marcel Moolenaar
the actual UUID) is prefixed by '!' to distinguish them from well-known aliases. MFC after: 3 days Notes: svn path=/head/; revision=178432
2008-02-15- Make Disk_Names() behave as documented in libdisk(3): return an arrayAntoine Brodin
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
2007-11-24Hmmm, must get reading glasses or else change the font on my terminal. ThatMike Makonnen
comma looks like a period. Noticed by: brueffer Notes: svn path=/head/; revision=173881
2007-11-20Enclose entire header in #ifndef _LIBDISK_H_Mike Makonnen
Notes: svn path=/head/; revision=173791
2007-11-18CapitalizationMike Makonnen
Notes: svn path=/head/; revision=173738
2007-09-21Translate partitions of type "PART" to chunks of the same typeMarcel Moolenaar
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
2007-09-21On PowerPC, geom_part has taken over the partitioning from geom_apple.Marcel Moolenaar
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
2007-08-05Improve error handling in libdisk while parsing the kern.geom.conftxt sysctl.Rink Springer
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
2006-10-09unbreak build for sparc64 etc.Kip Macy
TARGET won't be defined on non subarches Approved by: rwatson (mentor) Reviewed by: jmg Notes: svn path=/head/; revision=163149
2006-10-09buildworld fixes for sun4vKip Macy
not sure why pmap.c is included as it is unchanged Approved by: rwatson (mentor) Reviewed by: jmg Notes: svn path=/head/; revision=163148
2006-08-23Remove alpha-specific stuff.Ruslan Ermilov
Notes: svn path=/head/; revision=161547
2006-08-09Fix a bug in the size of the PMBR partition. Since the partition startsMarcel Moolenaar
at LBA 1, the size is not the mediasize in sectors, but one less. Notes: svn path=/head/; revision=161135
2006-04-25o Add IDs for Plan9, QNX4.X, Mac OS-X, Linux exteneded partitions.Maxim Konovalov
PR: bin/96326 Submitted by: Alex Kozlov MFC after: 2 weeks Notes: svn path=/head/; revision=158033
2006-01-30Instead of printing several pieces with .Sy just enclose the 'Note' blockHartmut Brandt
into a .Bf/.Ef pair. Submitted by: ru Notes: svn path=/head/; revision=155036
2006-01-27The .Nm macro prints Open_Disk() instead of libdisk, so use an expliciteHartmut Brandt
argument to get 'libdisk'. Also bump the date of the man page. Notes: svn path=/head/; revision=154917
2006-01-27Revert 1.45 now that snmp_hostres uses libgeom.Hartmut Brandt
Notes: svn path=/head/; revision=154915
2006-01-25Add a dummy arm Write_Disk() function, and compile libdisk on arm.Olivier Houchard
Notes: svn path=/head/; revision=154814
2006-01-12Build shared library on behalf of bsnmpd.Ruslan Ermilov
Notes: svn path=/head/; revision=154247
2005-11-24Fix prototypes.Ruslan Ermilov
Notes: svn path=/head/; revision=152758
2005-04-13Merge two slice_type_name() functions.Yoshihiro Takahashi
Notes: svn path=/head/; revision=145013
2005-03-30Add over 32GB disk support on pc98 (userland part).Yoshihiro Takahashi
Submitted by: Hirokazu WATANABE Notes: svn path=/head/; revision=144334
2005-03-08Initialise `sn' before using its value.Stefan Farfeleder
Notes: svn path=/head/; revision=143306
2005-02-13Expand *n't contractions.Ruslan Ermilov
Notes: svn path=/head/; revision=141846
2005-01-05Remove an unnecessary defination of New_Chunk, which has beenXin LI
defined in libdisk.h. Notes: svn path=/head/; revision=139720
2004-12-29Various markup and spelling fixes.Tom Rhodes
PR: 75574 Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp> (original version) Notes: svn path=/head/; revision=139389
2004-12-22Plug memory leak.Pyun YongHyeon
MFC after: 1 week Notes: svn path=/head/; revision=139167
2004-12-21NODOCCOMPRESS -> NO_DOCCOMPRESSRuslan Ermilov
NOINFO -> NO_INFO NOINFOCOMPRESS -> NO_INFOCOMPRESS NOLINT -> NO_LINT NOPIC -> NO_PIC NOPROFILE -> NO_PROFILE Notes: svn path=/head/; revision=139106
2004-11-10Add 0xbf (191) as new Solaris partition identifier.Poul-Henning Kamp
Submitted by: Lawrence.Lee@sun.com Notes: svn path=/head/; revision=137512
2004-10-31Don't barf when we encounter an UUID for GPT partitions. Instead, addMarcel Moolenaar
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
2004-10-24For variables that are only checked with defined(), don't provideRuslan Ermilov
any fake value. Notes: svn path=/head/; revision=136910
2004-09-13We have now so many GEOM classes that it is better to just skip unknownPawel Jakub Dawidek
classes than exiting. Reviewed by: le OK'ed by: phk Notes: svn path=/head/; revision=135153
2004-09-13Ignore geom_stripe providers.Lukas Ertl
MFC in: one week Notes: svn path=/head/; revision=135145
2004-08-05Don't use type unknown for partitions that we don't care about becauseMarcel Moolenaar
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
2004-08-02Typo in comment.Lukas Ertl
Notes: svn path=/head/; revision=133032
2004-08-02Ignore geom_vinum providers.Lukas Ertl
Notes: svn path=/head/; revision=133028