phk
283a9b563b
Vastly simplify architecture handling: Use properties of label as
...
recorded in global variables, rather than checks on the architecture.
Drop horribly code to handle MBR/PC98's embedded in the BSD label area.
If you need to have an MBR or PC98 on your disk, you should not overlap
it with a BSDLABEL, if you don't need it, this code is nothing but trouble.
2003-05-02 20:14:48 +00:00
phk
da6f75bd54
Default the location to the compiled for architecture if no -m arg specified.
2003-05-02 20:02:11 +00:00
phk
55aa7c2b5c
Add three global variables which contain the location, size and a flag
...
for the alpha checksum, and set them depending on the specified architecture
Don't look for disklabels every 16 bytes, look the only place they should
be for the current architecture.
Always read the label from the raw disk and decode it into struct
disklabel rather than trust a cast from random addresses.
When writing to the raw disk, encode the label properly.
2003-05-02 19:58:08 +00:00
phk
865a4611c8
Pull in geom_bsd_enc.c from sys/geom to encode and decode our labels.
2003-05-02 19:54:18 +00:00
phk
3f52da0d28
Pull in bcopy() prototype from <string.h> when compiled in userland.
2003-05-02 19:53:55 +00:00
ps
406073e21a
Add untested support for the Broadcom 5704.
...
Obtained from: NetBSD
2003-05-02 19:53:40 +00:00
alc
d282523893
Lock access to the vm_object's flags in vop_stdcreatevobject().
2003-05-02 19:33:21 +00:00
phk
872854ec00
Remove the well-intentioned, but ill thought out check which prevents us
...
from dd(1)'ing the boot code off one drive and have bsdlabel write it
on another.
2003-05-02 19:14:38 +00:00
phk
cf0500a874
Update the test-script based on the sunlabel version, but put a for-loop
...
in there to run over the various architectures.
2003-05-02 19:12:20 +00:00
phk
d73072efd4
Considering that I did cast the arguments to (intmax_t) I must have
...
been sleepy since I used %qd instead of %jd.
2003-05-02 19:08:57 +00:00
scottl
3df17deeec
pc98 has it's own release subdir, so it's safe to remove the stg, ncv, and
...
nsp drivers from the i386 floppies.
Suggested by: bmah
2003-05-02 17:47:08 +00:00
imp
0016700b2e
sysctlbyname takes a size_t as its 5th argument, not a pointer.
...
However, since NULL was used, and this is C++, this error went
undetected until g++ 3.3 somehow managed to whine about it.
Reported by: obrien
2003-05-02 17:38:08 +00:00
jake
ffe5115e13
Fix printf format errors.
2003-05-02 17:21:07 +00:00
bmah
0d423cf51c
New release notes: ata(4) flushing on shutdown, mergemaster(8) -P,
...
old rc scripts gone, texinfo 4.5.
Updated release notes: OpenPAM Dianthus.
2003-05-02 16:28:45 +00:00
des
69e4c91a9a
This commit was generated by cvs2svn to compensate for changes in r114536,
...
which included commits to RCS files with non-trunk default branches.
2003-05-02 15:08:06 +00:00
des
1b2b5956a0
Vendor import of OpenPAM Dianthus.
2003-05-02 15:08:06 +00:00
nyan
5a81fa192a
s/DIOCGPC98/DIOCSPC98/
2003-05-02 14:55:42 +00:00
sos
f1adb32797
Add flushing of devices on shutdown.
...
Note: this might print failure messages on some systems, unfortunatly
the info from the device, stating if flushing is supported, cannot be trusted
so the operation is always issued on all devices, just in case...
2003-05-02 13:47:44 +00:00
phk
5ffbb6f148
Style improvement.
2003-05-02 12:57:40 +00:00
phk
3708ab2594
Use g_wither_geom() and plug memory leaks.
2003-05-02 12:52:51 +00:00
phk
637729fea0
Plug memory leaks.
2003-05-02 12:49:41 +00:00
sos
282348e1fa
Add "addspare" functionality.
2003-05-02 12:42:31 +00:00
sos
66a49a9d90
Add ioctl to add a spare disk to a RAID array.
...
Fix the discovery of RAID's to not grap unused disks.
Change the probe printing of a RAID a bit.
2003-05-02 12:41:44 +00:00
sos
9d68e427c5
Add function to add spare disk to raid.
2003-05-02 12:39:34 +00:00
sos
485a0c5f9a
Dont try to call detached interrupt routine.
2003-05-02 12:37:03 +00:00
phk
26f669a3c9
Use an uma-zone for allocation bio requests.
2003-05-02 12:36:12 +00:00
ru
680bad4c09
Fix build on 4.x.
2003-05-02 11:56:43 +00:00
davidxu
10a5205738
Handle thread canceled case, it is same as signal caused backout,
...
but will break out of loop.
2003-05-02 11:39:00 +00:00
dougb
78f557b9c8
rc.sendmail should not have been removed yet.
...
Don't include it in the rcOG removal prompt.
2003-05-02 11:07:58 +00:00
dougb
25b63e0932
This file was removed prematurely. It contains functionality
...
not currently duplicated by rcNG, and is also relied on by
/etc/mail/Makefile.
Submitted by: hrs
Pointy hat to: me
2003-05-02 11:05:57 +00:00
kato
96e3b93fb0
IPLware support. The `IPLware' program assumes boot menu program
...
begins with the `jmp 0x2d4' near jump.
2003-05-02 09:33:12 +00:00
mtm
97e0bf7aa2
Huh? When did the etc bits for amd64 get added?
...
Make sure they're ported over to rc.d.
While I'm at it correct a logic mistake in rc.d/apmd.
Approved by: markm (mentor)(implicit)
2003-05-02 08:35:17 +00:00
phk
94c69d48c9
Use g_slice_spoiled() instead of g_std_spoiled().
...
Add XXX comment about minor memory leak until I can fix it.
2003-05-02 08:33:26 +00:00
phk
7636503a41
Use g_slice_spoiled() instead of g_std_spoiled().
2003-05-02 08:21:02 +00:00
phk
d2b42c6620
Use g_slice_spoiled().
...
Free buffer from g_read_data().
2003-05-02 08:13:03 +00:00
mtm
b961f940af
Create a symbolic link /dev/vga -> /dev/ttyv0.
...
We can't remove the sourcing of /etc/rc.devfs yet in case the user
might have custom entries in it. We will have to come up with an
/etc/devfs.rules or something to make this kind of thing easier.
Approved by: markm (mentor)(implicit)
2003-05-02 08:10:58 +00:00
obrien
baba414b75
bufpos is used in size_t contexts, so make it one.
2003-05-02 07:08:52 +00:00
obrien
9680dcd33d
Set WARNS=1. RESOLUTION_MAX macro has major signed/unsigned issues.
2003-05-02 06:56:32 +00:00
obrien
91e854c20e
Use __FBSDID.
2003-05-02 06:49:10 +00:00
obrien
e21b490b41
Use size_t type vars in sizeof contexts.
2003-05-02 06:46:24 +00:00
phk
055cf65eb1
Back out all the stuff that didn't belong in the last commit.
2003-05-02 06:42:59 +00:00
obrien
9bb7fb74d1
Make this WARNS=1 as that is all we can do with GCC 3.3 -- too many
...
sized/unsigned comparisons.
2003-05-02 06:39:13 +00:00
obrien
3bcdc44d52
Make count a size_t as that is what is compared against and how it is used.
2003-05-02 06:36:52 +00:00
phk
4c52a206d2
Use g_slice_spoiled() rather than g_std_spoiled().
...
Remember to free the buffer we got from g_read_data().
2003-05-02 06:36:14 +00:00
phk
6b0e95eef5
Use g_slice_spoiled() not g_std_spoiled()
2003-05-02 06:34:51 +00:00
phk
0a7a0e5019
Use g_slice_spoiled() rather than g_std_spoiled()
2003-05-02 06:33:59 +00:00
phk
077126a4be
Use g_slice_spoiled() rather than g_std_spoiled().
2003-05-02 06:33:26 +00:00
phk
4ac5216f83
Use a more tailored spoil routine for slices, and take advantage of
...
g_wither_geom() to do most of the work for us.
2003-05-02 06:29:33 +00:00
dougb
a50936449c
* Document the -P option
...
* Add a paragraph suggesting that the merge option be used only for
files that users have modified. People have been using this option
for all files that are different, causing unecessary confusion.
2003-05-02 06:28:30 +00:00
obrien
ed489277de
[Grrr, editor exited too early]
...
Rev 1.39 sets WARNS=WFORMAT=0 because of the explanation given.
2003-05-02 06:26:32 +00:00