Attilio Rao
4b547324c0
Disconnect sun4v architecture from the three.
...
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
2011-05-14 01:53:38 +00:00
Ulrich Spörlein
0d9deed52c
mdoc: drop redundant .Pp and .LP calls
...
They have no effect when coming in pairs, or before .Bl/.Bd
2010-10-08 12:40:16 +00:00
Warner Losh
25faff346c
MFtbemd:
...
Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want
to test of all the CPUs of a given family conform.
2010-08-23 22:24:11 +00:00
Yoshihiro Takahashi
1764b93ab2
Disable a check on a disk size because it's too strict. This change is
...
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
2009-09-21 04:04:02 +00:00
Yoshihiro Takahashi
0f0f85be13
Correct BIOS header sanitizing on pc98.
...
MFC after: 3 days
2009-09-19 03:33:18 +00:00
Ulf Lilleengen
7ca3f45cd2
- Allow a higher value for the number of heads. Its better to do this and allow
...
a few bad systems to run than to be completely strict about it.
2009-06-17 06:47:05 +00:00
Ulf Lilleengen
1d695e8ed4
- The maximum number of heads is 255, not 256.
...
Pointed out by: marcel
2009-06-15 16:51:07 +00:00
Ulf Lilleengen
86baa27ae6
- Remove old and add new valid flags for the chunk structure.
...
Submitted by: randi
2009-06-15 16:42:08 +00:00
Ulf Lilleengen
3eba493397
- Relax sanitazion requirements in libdisk, as a previous commit enabling this
...
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
2009-06-15 16:18:24 +00:00
Marcel Moolenaar
866772cfa7
Simplify now that we have gpart.
2009-05-20 06:01:20 +00:00
Ulf Lilleengen
043767b123
- Sanitize disk parameters retrieved from GEOM, as they are not guaranteed to
...
have sane values. It caused sysinstall to crash when installing on certain SD
cards.
Discussed with: marcel
2009-02-09 21:34:06 +00:00
Oleksandr Tymoshenko
228d330b1a
Add MIPS support to libdisk
...
Approved by: cognet (mentor)
2008-05-04 22:24:40 +00:00
Marcel Moolenaar
236ee032b5
Add support for gpart:
...
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.
2008-04-24 00:11:15 +00:00
Marcel Moolenaar
727b08eb66
Correct an off-by-1 for GPART. The literal partition type (i.e.
...
the actual UUID) is prefixed by '!' to distinguish them from
well-known aliases.
MFC after: 3 days
2008-04-23 03:00:26 +00:00
Antoine Brodin
b08b3ca18f
- Make Disk_Names() behave as documented in libdisk(3): return an array
...
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)
2008-02-15 21:19:15 +00:00
Mike Makonnen
e38d709cd6
Hmmm, must get reading glasses or else change the font on my terminal. That
...
comma looks like a period.
Noticed by: brueffer
2007-11-24 11:58:54 +00:00
Mike Makonnen
84f2123154
Enclose entire header in #ifndef _LIBDISK_H_
2007-11-20 22:48:32 +00:00
Mike Makonnen
f378c687da
Capitalization
2007-11-18 18:44:35 +00:00
Marcel Moolenaar
cd6898e6ee
Translate partitions of type "PART" to chunks of the same type
...
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)
2007-09-21 16:24:01 +00:00
Marcel Moolenaar
b567bafeb4
On PowerPC, geom_part has taken over the partitioning from geom_apple.
...
Translate partitions of type "PART" to chunks of type "apple" on
PowerPC. This fixes sysinstall.
Approved by: re (kensmith)
2007-09-21 16:19:50 +00:00
Rink Springer
8a4974cb5a
Improve error handling in libdisk while parsing the kern.geom.conftxt sysctl.
...
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
2007-08-05 16:55:40 +00:00
Kip Macy
cab68f571e
unbreak build for sparc64 etc.
...
TARGET won't be defined on non subarches
Approved by: rwatson (mentor)
Reviewed by: jmg
2006-10-09 05:12:54 +00:00
Kip Macy
ddd5342909
buildworld fixes for sun4v
...
not sure why pmap.c is included as it is unchanged
Approved by: rwatson (mentor)
Reviewed by: jmg
2006-10-09 04:58:45 +00:00
Ruslan Ermilov
2d05c776ef
Remove alpha-specific stuff.
2006-08-23 12:12:56 +00:00
Marcel Moolenaar
97a337185f
Fix a bug in the size of the PMBR partition. Since the partition starts
...
at LBA 1, the size is not the mediasize in sectors, but one less.
2006-08-09 20:19:15 +00:00
Maxim Konovalov
66802e2cc7
o Add IDs for Plan9, QNX4.X, Mac OS-X, Linux exteneded partitions.
...
PR: bin/96326
Submitted by: Alex Kozlov
MFC after: 2 weeks
2006-04-25 20:42:15 +00:00
Hartmut Brandt
f2a49a97ac
Instead of printing several pieces with .Sy just enclose the 'Note' block
...
into a .Bf/.Ef pair.
Submitted by: ru
2006-01-30 08:26:59 +00:00
Hartmut Brandt
f1cceec6b0
The .Nm macro prints Open_Disk() instead of libdisk, so use an explicite
...
argument to get 'libdisk'. Also bump the date of the man page.
2006-01-27 16:38:05 +00:00
Hartmut Brandt
580a11fd5f
Revert 1.45 now that snmp_hostres uses libgeom.
2006-01-27 16:32:13 +00:00
Olivier Houchard
ea7075eb64
Add a dummy arm Write_Disk() function, and compile libdisk on arm.
2006-01-25 11:24:37 +00:00
Ruslan Ermilov
0b61bced98
Build shared library on behalf of bsnmpd.
2006-01-12 07:26:57 +00:00
Ruslan Ermilov
639d850061
Fix prototypes.
2005-11-24 10:30:44 +00:00
Yoshihiro Takahashi
365971ecad
Merge two slice_type_name() functions.
2005-04-13 13:42:38 +00:00
Yoshihiro Takahashi
4fe043b760
Add over 32GB disk support on pc98 (userland part).
...
Submitted by: Hirokazu WATANABE
2005-03-30 13:03:33 +00:00
Stefan Farfeleder
f51df9ed11
Initialise `sn' before using its value.
2005-03-08 21:46:18 +00:00
Ruslan Ermilov
0227791b40
Expand *n't contractions.
2005-02-13 22:25:33 +00:00
Xin LI
122dc5646e
Remove an unnecessary defination of New_Chunk, which has been
...
defined in libdisk.h.
2005-01-05 14:07:31 +00:00
Tom Rhodes
8f79184fe2
Various markup and spelling fixes.
...
PR: 75574
Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp> (original version)
2004-12-29 02:18:24 +00:00
Pyun YongHyeon
2d25239038
Plug memory leak.
...
MFC after: 1 week
2004-12-22 08:17:18 +00:00
Ruslan Ermilov
ab7a294721
NODOCCOMPRESS -> NO_DOCCOMPRESS
...
NOINFO -> NO_INFO
NOINFOCOMPRESS -> NO_INFOCOMPRESS
NOLINT -> NO_LINT
NOPIC -> NO_PIC
NOPROFILE -> NO_PROFILE
2004-12-21 09:33:47 +00:00
Poul-Henning Kamp
54c7ea9dbf
Add 0xbf (191) as new Solaris partition identifier.
...
Submitted by: Lawrence.Lee@sun.com
2004-11-10 07:50:16 +00:00
Marcel Moolenaar
a1107cc375
Don't barf when we encounter an UUID for GPT partitions. Instead, add
...
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
2004-10-31 01:28:59 +00:00
Ruslan Ermilov
a35d88931c
For variables that are only checked with defined(), don't provide
...
any fake value.
2004-10-24 15:33:08 +00:00
Pawel Jakub Dawidek
08aa5a1ddb
We have now so many GEOM classes that it is better to just skip unknown
...
classes than exiting.
Reviewed by: le
OK'ed by: phk
2004-09-13 16:06:14 +00:00
Lukas Ertl
6ce35ad043
Ignore geom_stripe providers.
...
MFC in: one week
2004-09-13 11:28:54 +00:00
Marcel Moolenaar
7bf298bcad
Don't use type unknown for partitions that we don't care about because
...
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.
2004-08-05 17:44:07 +00:00
Lukas Ertl
31359ff400
Typo in comment.
2004-08-02 19:57:37 +00:00
Lukas Ertl
3231ba13da
Ignore geom_vinum providers.
2004-08-02 19:14:58 +00:00
Ruslan Ermilov
1a0a934547
Mechanically kill hard sentence breaks.
2004-07-02 23:52:20 +00:00
Brian Somers
5661d9de75
Handle read_block() failures by ignoring the disk rather than
...
dumping core.
2004-06-04 11:49:11 +00:00