Commit Graph

4895 Commits

Author SHA1 Message Date
marcel
373fa1bf00 Sync with HEAD. 2006-07-07 03:30:37 +00:00
julian
64961250b2 MFC: 1.84. (and fixes)
If in silent mode, do not return an error responce if asked
to delete a table entry that is not present, or add one that exists.
2006-06-29 21:03:12 +00:00
simon
b0daff4ba7 MFC rev. 1.82:
- Fail with an understandable error message if we cannot detect the
  sector size, instead of later failing with an error about /boot/mbr
  not being a multiple of the sector size (since we end up with an
  assumed sector size of MAX_SEC_SIZE * 2).
- We query the sector size via an IOCTL anyway, so if that succeeds
  use that instead of probing for it via read(2) calls.  This fixes
  the problem with fdisk failing to operate on at least graid3 and
  md(4) devices on kernels with src/sys/geom/geom_dev.c before
  rev. 1.90, due to fdisk failing to detect the sector size.
- When detecting the root device allow "/" characters in it, which
  happens with e.g. gmirror devices.
2006-06-25 08:52:19 +00:00
oleg
f361b24e4b MFC src/sys/netinet/ip_fw2.c rev.1.133:
install_state() should properly initialize 'addr_type' field of newly created
flows for O_LIMIT rules.

MFC src/sbin/ipfw/ipfw2.c rev.1.90 (mlaier):

Print dynamic rules for IPv6 as well.

PR:		bin/98349
2006-06-24 06:38:39 +00:00
delphij
a205bc6abf MFC 1.3: do_file() is called recursively from several places and
cannot safely free() anything related to items that may be
recursed on.

Obtained from:	DragonFly (rev 1.7, dillon)
PR:		bin/94767
2006-06-21 09:59:01 +00:00
maxim
a327c57ea9 MFC revs. 1.6, 1.7: eliminate core dumps on lines without '\n'. 2006-06-21 00:26:41 +00:00
maxim
04d810fd53 MFC rev. 1.32 fsdb.c, rev. 1.11 fsdb.h, rev. 1.19 fsdbutil.c: do
recrack(arguments) for commands which actually take NAME as arguments;
be consistent and print argc - 1 as a command arguments number in
all cases.
2006-05-21 09:04:31 +00:00
brooks
0f6e8e11cd MFC rev 1.14:
Be more like Windows and Linux and send our hostname in the host-name
option if none is given in the config file.  Also add #ifdefd out
support for sending a client ID based on our MAC address.

PR:		bin/94743, bin/76401
Submitted by:	Frank Behrens <frank at pinky dot sax dot de>
2006-05-13 03:42:01 +00:00
brooks
88670e3978 MFC revs 1.12-14:
1.12,14 - Use /var/run instead of /etc for temporary files
 1.13 - Fix the TIMEOUT case

PR:		bin/90518, bin/92187
2006-05-13 03:24:00 +00:00
pjd
5ed608104d MFC: sbin/geom/class/eli/geom_eli.c 1.10
Correct error messages.
2006-05-10 07:17:45 +00:00
dwmalone
1e5e83baa0 MFC: 1.37
Stop dump reading off the end of its inode bitmaps when it finds an
invalid inode number in a directory entry.

Approved by:    re
2006-05-02 19:08:58 +00:00
maxim
a39c1e5c00 MFC rev. 1.59: describe what actually boot(8) -m mutes.
Approved by:	re (kensmith)
2006-05-01 20:01:13 +00:00
maxim
98fcb88a28 MFC rev. 1.32: reset lineno to 1 for each devd config file.
Approved by:	re (kensmith)
2006-05-01 19:24:35 +00:00
brueffer
104f0687ce MFC: rev. 1.32
Add a missing .Pp call.

Approved by:	re (hrs)
2006-04-26 18:41:00 +00:00
pjd
7de50cd211 MFC: sbin/geom/core/geom.c 1.26
Fix an off-by-one error causing geom(8) utilities to fail or crash in random
situations.

Approved by:	re (scottl)
2006-04-13 06:36:26 +00:00
pjd
0633ad44e0 Sync with HEAD.
Approved by:	re (scottl)
2006-04-05 22:20:44 +00:00
yar
7ce10275c7 MFC rev. 1.11:
Revert to setting vlan and vlandev parametes synchronously, as soon
as both have been read from the command line.  Still use the callback,
but this time only to verify that both vlan and vlandev have been
found on the command line.

This should allow for control over the relative order of processing
parameters, which is needed to satisfy some caveats of the if_vlan
driver.  E.g., MTU cannot be changed on a vlan interface until it's
attached to its parent.

Approved by:	re (scottl)
2006-03-22 15:32:30 +00:00
pjd
a56f321071 MFC: graid3(8)
Synchronize graid3(8) with HEAD:
- Speed up synchronization process by using configurable number of parallel
  I/O requests.
- Reimplement graid3 softc synchronization by using per-device sx(9) lock.
- Stop synchronization from pre-sync hook.
- Fix possible race between synchronization and regular requests.

Approved by:	re (mux)
2006-03-20 15:50:02 +00:00
pjd
c2dead3970 MFC: gmirror(8)
Synchronize gmirror(8) with HEAD:
- Speed up synchronization process by using configurable number of parallel
  I/O requests.
- Allow for kernel dumps to the mirror.
- Reimplement gmirror softc synchronization by using per-device sx(9) lock.
- Stop synchronization from pre-sync hook.
- Fix possible race between synchronization and regular requests.

Approved by:	re (mux)
2006-03-20 15:48:55 +00:00
glebius
64f07cddfc MFC 1.119:
There is no IFF_POLLING flag anymore.

Approved by:	re (mux)
2006-03-18 21:59:22 +00:00
sos
16ca8e211f MFC:
Add new modes.

Approved by: re@ (mux)
2006-03-16 21:30:09 +00:00
rik
f994482cad MFC:
Add support for Cronyx Tau32-PCI adapters. (update)

Approved by:	re(scottl)
2006-03-10 23:10:39 +00:00
sam
ef9503e74b MFC 1.115: explain what list chan displays
Approved by:	re (scottl, hrs)
2006-03-10 22:05:53 +00:00
ume
b50d2d1850 MFC: Revert `proto ip' back to the previous behavior. The kernel side of
ipfw2 doesn't allow zero as protocol number.

	sbin/ipfw/ipfw.8:	1.186
	sbin/ipfw/ipfw2.c:	1.85

Approved by:	re (mux)
2006-03-09 09:18:37 +00:00
pjd
05c6e127c5 MFC: sbin/bsdlabel/bsdlabel.8 1.63,1.64
Fix evil examples - first partition should start at offset 16 and explain why
this is important.

Approved by:	re (hrs)
2006-03-08 14:23:13 +00:00
sam
6800859061 MFC 1.37: cleanup line break formatting
Approved by:	re (scottl)
2006-03-07 17:50:23 +00:00
kris
ff03d3aa0c MFC r1.35: Don't refer to obsolete loader method for setting dumpdev.
Approved by:	re (mux)
2006-03-01 22:35:15 +00:00
glebius
0f023eef98 MFC 1.20 by ambrisko:
Grab the media from the passed in structure to put it into the
  global structure.

PR:		bin/91399, bin/93727
Approved by:	re (scottl)
2006-03-01 22:24:23 +00:00
wkoszek
dbe3338f30 Forced commit in order to note, that I brought style(9) changes together with
functional changes. It was done by accident. Proper comment to the previous
commit should be:

MFC:
   Extend kldunload(8) functionality and fix minor problems:
   o multiple modules can be unloaded at once (specified either by id or be
     module name)
   o exit with EX_USAGE after usage() is called.
   o remove unused variables, since we keep command line flags as bitmask,
     in 'opt'.
   o 'kldload -n ...' does nothing. Add comment to this options.

   Additionally:
   o Update manual page to conform new functionality.
   o Increace WARNS to 6. Because we can.

   o Bump a date in .Dd field. Spotted by brueffer@.

   Approved by:	cognet (mentor)

Approved by:	re (scottl)
2006-03-01 20:51:53 +00:00
wkoszek
681b13e95d MFC:
Big style(9) fix. This commit brings no functional change.

   Approved by:	cognet (mentor)

Approved by:	re (scottl)
2006-03-01 20:29:50 +00:00
pjd
0536624c24 MFC: Sync with HEAD.
Approved by:	re (scottl)
2006-03-01 17:55:29 +00:00
keramida
b6c769da16 MFC 1.73:
Revert a minor glitch of revision 1.69

    Submitted by:   Andriy Tkachuk <andrit@ukr.net>
    X-MFC after:    RE approval

Approved by:	re (mux)
2006-02-24 15:13:33 +00:00
sam
6943ed1374 MFC 1.114: add missing args to mac:del and mac:kick
Approved by:	re (scottl)
2006-02-19 00:20:39 +00:00
sam
fc95fea574 sync with HEAD:
o mcast rate addition
o malloc size off-by-one fixes
o long ssid handling

Approved by:	re (scottl)
2006-02-15 17:44:18 +00:00
ru
4d6c4a9f13 MFC: 1.58: -mdoc sweep.
Approved by:	re (scottl)
2006-02-15 15:10:55 +00:00
ru
12bea99eb3 MFC: 1.15: Only install boot_i386.8 on i386 and amd64.
Approved by:	re (scottl)
2006-02-15 15:10:07 +00:00
jcamou
314981dbdd MFC: rev.1.113.
Approved by:	re (scottl)
2006-02-15 15:03:04 +00:00
jcamou
675ebf74a9 MFC: rev.1.3
Approved by:	re (hrs)
2006-02-15 14:58:59 +00:00
cperciva
08fb917f1d MFC gbde.8 rev. 1.14, gbde.c rev. 1.31:
Teach gbde(8) to use a key file in addition to a passphrase.  This
  makes it practical to use GBDE for "something you have plus something
  you know" security together with a USB flash drive.

Approved by:	re (scottl)
2006-02-14 16:15:48 +00:00
yar
af897e152b MFC ifconfig.c rev. 1.117:
Do address assignment/removal operations after callbacks.  Presently,
ifconfig callbacks are used for L2 configuration, media and vlan,
so actions associated with address assignment, like sending out a
gratuitous ARP, should go when L2 is running already.

Return ifvlan.c to the state of rev. 1.7.2.2 -- undo the last
back-out.  The above change to ifconfig.c lets us use a callback
for vlan set-up without facing the evil side-effects from IP
assignment to an orphaned vlan interface.

Approved by:	re (scottl)
2006-02-09 10:48:43 +00:00
pjd
cefc091c9d MFC: sbin/geom/class/eli/geom_eli.c 1.6
Remove unused argument.
2006-01-31 21:24:36 +00:00
pjd
894edd33c9 MFC: sbin/geom/core/geom.8 1.18
Add a reference to geli(8).
2006-01-31 12:39:26 +00:00
sos
1a40e9ce58 MFC:
Remove accidental debug leftovers.
2006-01-30 10:20:28 +00:00
yar
718263f07d Temporarily back out the last change, rev. 1.7.2.2.
The problem with it was that it swapped the relative order of IP
assignment and parent interface attachment.  The present if_vlan
code gets certain flags from the parent, including those meaningful
to the upper layers.  E.g., IP assignment to an interface with
IFF_BROADCAST goes somewhat differently from that to a non-broadcast
interface.  Consequently, assigning IP before attaching the parent
results in a bogus or missing broadcast address on the vlan interface.
This bug is still here, but at least it won't be triggered by doing
both vlanX configuration steps, IP and vlan+vlandev, in a single
ifconfig invocation, which is usual to setting up vlans via rc.conf.

Work at the global issue is under way.
2006-01-28 16:38:28 +00:00
dougb
885f415f1b MFC version 1.6 of the Makefile, crank WARNS up to 6
MFC version 1.2 of rcorder.c, fix for "chunk is already free" error
2006-01-26 01:34:00 +00:00
sos
f11f5a5c34 MFC:
Bring ATA up to -current standards:

Fix SiS SATA support, the SATA registers was off.
Update the ICH7 support so it deals better with chips without AHCI.
Unbreak hotplug support on the ICH6 and ICH7 chipsets.
Add support for VIA VT8251 southbridge.
Add new nVidia nForce4 chips.
Add support for the Marvell 88SX[56]0[48][01] series of SATA chips.
Fix the promise modesetting for old chips.
Get rid of the advertising clause in the copyright.
Add support for using DMA on dump, greatly speeds up the dump process.
When IOCATAGPARM is called, update the capabilities page that is stored
in the kernel and return the new values.
Fix rebuilds of arrays that got stuck.
Add dump support in ataraid.
Add support for for reading and writing SiS metadata.
Add support for writing VIA metadata.
Add support for writing Intel metadata.
Correct calculation of RAID0 sizes on VIA RAID arrays.
Update Intel MatrixRAID support to be able to pick up RAID0+1 (RAID10)
2006-01-25 08:13:46 +00:00
joel
2d6cdc2b7e MFC: s/5.5/6.0/ in HISTORY section. 2006-01-24 17:02:39 +00:00
pjd
2bb373ae84 MFC: sbin/mount/mount.c 1.80
Resolve the mount point's path with realpath(2) before checking if file
system is mounted. This prevevents duplicated mounts.

The change I made against the original patch is to fall back to the given
path on realpath(2) failure instead of exiting with an error.

Submitted by:	Andreas Kohn <andreas@syndrom23.de>
PR:		bin/89782
2006-01-24 15:27:25 +00:00
brooks
62ebe3a4fd MFC rev 1.5: Mention the -b flag in the SYNOPSIS. 2006-01-24 06:03:16 +00:00
brooks
38fe71cbe9 MFC rev 1.11:
When we give up on an interface, use the arp(8) command to remove all
  entries from the interface rather than using ifconfig's delete command.
  This preserves non-dhclient configured addresses (though they are wiped
  out when dhclient is restarted).
2006-01-24 06:01:59 +00:00