5053 Commits

Author SHA1 Message Date
dwmalone
d6bcba4a25 MFC: Sync restore with the version in -current.
Fix remaining nits from PR bin/39905.
Check for write failure while building temp files.
Correctly set file group when restore is run by a user other than root.
Use safer string handling.
Fixes the "getfile: lost data" panic when restoring older dumps.
Fix spurious "Header with wrong dumpdate" message.
Add -D for degraded mode, which tries harder to read corrupted backups.
Remove a diagnostic message from man page that is no longer printed.
2008-06-09 07:53:16 +00:00
mckusick
f3a0200cf7 MFC of an update to the dump program to save extended attributes
and an update to the restore program to restore all dumped extended
attributes. The affected files and the version being MFC'ed:

  Revision  Path
  1.11      src/include/protocols/dumprestore.h
  1.28      src/sbin/dump/dump.h
  1.38      src/sbin/dump/traverse.c
  1.31      src/sbin/restore/dirs.c
  1.11      src/sbin/restore/extern.h
  1.12      src/sbin/restore/restore.h
  1.48      src/sbin/restore/tape.c
  1.16      src/sys/sys/extattr.h
  1.21      src/sys/ufs/ufs/extattr.h
  1.24      src/share/man/man5/fs.5

Note that this code will not compile until these header
files have been updated: <protocols/dumprestore.h> and
<sys/extattr.h>. This should happen in the course of doing
a normal `buildworld'.

This resolves PR 93085 which will be closed.

PR:             bin/93085
MFC request by: Robert Watson
2008-05-23 18:08:32 +00:00
dwmalone
bdf655b82e MFC:
Dummynet has a limit of 100 slots queue size (or 1MB, if you give
the limit in bytes) hard coded into both the kernel and userland.
Make both these limits a sysctl, so it is easy to change the limit.
2008-05-20 11:32:03 +00:00
brooks
36ceedabe7 MFC rev 1.8: When sending packets directly to the DHCP server, use a socket
and send directly rather than bogusly sending it out as a link layer
broadcast (which fails to be received on some networks).

PR:	bin/96018
2008-05-15 01:59:20 +00:00
oleg
d09731caba MFC: 1.111
Calculate p.fs.lookup_step correctly. This should prevent zeroing of
w_q_lookup table (used in RED algorithm for (1 - w_q)^t computation).
2008-04-25 10:35:53 +00:00
oleg
ab369ac566 MFC:
src/sys/netinet/ip_dummynet.h	1.41
src/sys/netinet/ip_dummynet.c	1.111-1.114
src/sys/netinet/ip_fw_pfil.c	1.26
src/sys/net/if_bridge.c		1.107
src/sys/net/if_ethersubr.c	1.240
src/sbin/ipfw/ipfw.8		1.206

- style(9) cleanup.
- dummynet_io() declaration has changed.
- Alter packet flow inside dummynet and introduce 'fast' mode of dummynet
  operation: allow certain packets to bypass dummynet scheduler. Benefits are:
  -- lower latency: if packet flow does not exceed pipe bandwidth, packets
     will not be (up to tick) delayed (due to dummynet's scheduler granularity).
  -- lower overhead: if packet avoids dummynet scheduler it shouldn't reenter
     ip stack later. Such packets can be fastforwarded.
  -- recursion (which can lead to kernel stack exhaution) eliminated. This fix
     long existed panic, which can be triggered this way:
	kldload dummynet
	sysctl net.inet.ip.fw.one_pass=0
	ipfw pipe 1 config bw 0
	for i in `jot 30`; do ipfw add 1 pipe 1 icmp from any to any; done
	ping -c 1 localhost
- New sysctl nodes:
  net.inet.ip.dummynet.io_fast -	enables 'fast' dummynet io
  net.inet.ip.dummynet.io_pkt -		packets passed to dummynet
  net.inet.ip.dummynet.io_pkt_fast -	packets avoided dummynet scheduler
  net.inet.ip.dummynet.io_pkt_drop -	packets dropped by dummynet
- Workaround p->numbytes overflow, which can result in infinite loop inside
  dummynet module (prerequisite is using queues with "fat" pipe).

PR:	kern/113548 kern/121955
2008-04-25 10:29:26 +00:00
brooks
313bd47a97 MFC rev 1.19
Add a new function is_default_interface() which determines if this
interface is one with the default route (or there isn't one).  Use it to
decide if we should adjust the default route and /etc/resolv.conf.

Fix the delete of the default route.  The if statement was totally bogus
and the delete only worked due to a typo. [1]

Reported by:    Jordan Coleman <jordan at JordanColeman dot com> [1]
2008-04-11 00:18:37 +00:00
julian
91515fa1c7 MFC: ipfw2.c 1.114
ipfw.8    1.209

Use an explicit argument to format table args as IP addresses.
2008-04-04 18:10:50 +00:00
remko
55a2645084 MFC rev 1.84 route.c
In route.c in newroute() there's a call to exit(0) if the command was
  'get'. Since rtmsg() always gets called and returns 0 on success and -1
  on failure, it's possible to exit with a suitable exit code by calling
  exit(ret != 0) instead, as is done at the end of newroute().

  PR:		bin/112303
  Submitted by:	bruce@cran.org.uk
  MFC after:	1 week

Approved by:	imp (mentor, implicit)
2008-03-29 13:44:36 +00:00
remko
dfa2a1a6da MFC rev 1.73 newfs.8
Replace reference from vinum.8 to gvinum.8, it was advised in the PR to
  replace this with vinum.4, but that's the kernel interface manual, which
  is not appropriate in my understanding.  I think that gvinum is a suitable
  replacement for this.

  PR:             docs/121938
  Submitted by:   "Federico" <federicogalvezdurand at yahoo dot com>
  MFC after:      3 days
2008-03-24 10:46:00 +00:00
brooks
3355824a91 MFC rev 1.18:
During PREINIT, when giving the interface the address 0.0.0.0, do it as an
alias to avoid distrubing other addresses.

PR:		bin/119255
Submitted by:	Jaakko Heinonen <jh at saunalahti dot fi>
2008-03-12 17:29:42 +00:00
delphij
1bb37e6e92 MFC revision 1.14
date: 2008/01/29 00:20:00;  author: delphij;  state: Exp;  lines: +1 -1
Don't coredump when executed with -o.
2008-03-08 00:54:27 +00:00
mav
6128f03298 MFC rev. 1.63-1.68
Document -instance and -globalport options.
Note that the punch_fw option does not work in securelevel 3.
2008-03-04 12:52:34 +00:00
maxim
05f8f2f2f2 MFC rev. 1.11: allow setkey(8) to recognize esp as a protocol
name for spdadd.
2008-02-26 09:44:36 +00:00
jhb
67b50856e5 MFC: Map 'boot' to GPT_ENT_TYPE_FREEBSD_BOOT when parsing UUIDs. 2008-02-12 19:23:37 +00:00
remko
68b8802d7c MFC rev 1.70 bsdlabel.8
Remove redundant whitespace.

  Noticed by:	brueffer
2008-02-11 07:48:12 +00:00
remko
e12eb4d242 MFC rev 1.69 bsdlabel.8
Attempt to describe the ''auto'' type a bit better in the default
  section (if nothing had been specified, or if the auto type had
  been specified, a default layout is used).

  PR: docs/116047
  Submitted by: Ian Smith <smithi at nimnet dot asn dot au>
  Minor modifications by me.
2008-02-10 12:31:06 +00:00
lulf
6a3aa2f96a MFC revision 1.21
- Update geom(8) to explain that GEOM_LIBRARY_PATH can take a colon-separated
  list of paths.

Approved by:	pjd (mentor)
2008-02-07 12:18:26 +00:00
lulf
1cc7e9a7a8 MFC revision 1.34
- Make geom commands handle multiple library paths in the GEOM_LIBRARY_PATH
  environment variable using ':' as a separator.

Approved by:	pjd (mentor)
2008-02-07 12:10:47 +00:00
mtm
00cd394a8a MFC: ver. 1.82-1.83
Fix an error in bit shifting logic for network addresses. The route
	command would add incorrect routing entries if network numbers weren't
	fully "spelled" out according to their class. For example:
	  # route add 128.0/16   (works)
	  # route add 128/16     (doesn't work)
	  # route add 193.0.0/24 (works)
	  # route add 193/24     (doesn't work)

	Also, rework the way a netmask is deduced from network number if
	it [netmask] is not specified.

	Submitted by:	Nuno Antunes <nuno.antunes@gmail.com> (mostly)
2008-01-28 07:37:08 +00:00
jhb
2f930c2edb MFC: Add support for booting from GPT-labeled disks from the BIOS. This
includes /boot/pmbr, /boot/gptboot, and 'gpt boot'.
2008-01-24 22:23:22 +00:00
maxim
12252a5277 MFC rev. 1.90 ntfs_vfsops.c and revs. 1.22, 1.23 mount_ntfs.8: mask
maximum file permissions with ACCESSPERMS.
2008-01-19 17:54:11 +00:00
jkim
83453e6457 MFC: 1.3
Teach dhclient(8) about net80211 link (association) status.

Reviewed by:	brooks
Approved by:	re (kensmith)
2007-12-10 17:58:47 +00:00
gnn
d5b4af487e MFC support for the Camellia block cipher
HEAD
Revision  Path
  1.16    src/lib/libipsec/pfkey_dump.c
  1.38    src/sbin/setkey/setkey.8
  1.12    src/sbin/setkey/token.l
  1.81    src/secure/lib/libcrypto/Makefile
  1.47    src/secure/lib/libcrypto/Makefile.inc
  1.8     src/secure/lib/libcrypto/opensslconf-amd64.h
  1.8     src/secure/lib/libcrypto/opensslconf-i386.h
  1.1205  src/sys/conf/files
  1.1     src/sys/crypto/camellia/camellia-api.c (new)
  1.1     src/sys/crypto/camellia/camellia.c (new)
  1.1     src/sys/crypto/camellia/camellia.h (new)
  1.6     src/sys/modules/crypto/Makefile
  1.15    src/sys/net/pfkeyv2.h
  1.1     src/sys/netinet6/esp_camellia.c (new)
  1.1     src/sys/netinet6/esp_camellia.h (new)
  1.25    src/sys/netinet6/esp_core.c
  1.19    src/sys/netipsec/xform_esp.c
  1.34    src/sys/opencrypto/cryptodev.c
  1.25    src/sys/opencrypto/cryptodev.h
  1.19    src/sys/opencrypto/cryptosoft.c
  1.9     src/sys/opencrypto/xform.c
  1.4     src/sys/opencrypto/xform.h

Approved by: re (kensmith)
Submitted by: Tomoyuki Okazaki <okazaki at kick dot gr dot jp>
2007-12-07 08:45:29 +00:00
jhb
73d00f9385 MFC: Properly sort 'sync' in the list of options passed to -o. 2007-12-06 08:08:47 +00:00
remko
1713053d3d MFC rev 1.29 atacontrol.8
Expand the EXAMPLES section for atacontrol.8

  PR:             docs/117310
  Submitted by:   Ted Mittelstaedt <tedm at ipinc dot net>
                  with minor modifications by me.

Approved by:    re (hrs)
2007-12-02 09:01:18 +00:00
remko
cb417f692d MFC rev 1.64 sysctl.8
Remove mentionings of kern.dumpdev which is no longer available.

  PR:             docs/113570
  Submitted by:   lawrance
  MFC After:      3 days (where applicable)

Approved by:    re (hrs)
2007-12-02 09:00:36 +00:00
remko
95275f9dce MFC rev 1.41, 1.42 mdconfig.8
Sync with md(4)'s information regarding the swap backend.

  PR:             docs/115721
  Submitted by:   Stefan Lambrev <stefan.lambrev@moneybookers.com>
  MFC After:      3 days

  Every newline should start on it's own line. I didn't do that in the
  previous commit, so make it happen now.

  Prodded by:     brueffer

Approved by:    re (hrs)
2007-12-02 08:58:46 +00:00
maxim
9b28b43090 MFC rev. 1.204: fix a typo in ipfw table usage example.
Approved by:	re (kensmith)
2007-11-29 18:37:01 +00:00
darrenr
66af1f729a Updates to build infrastructure for the MFC of IPFilter into RELENG_6 2007-11-19 00:48:39 +00:00
cvs2svn
95fd2db0f8 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-11-10 10:21:30 +00:00
jhb
4c72c10462 MFC: Don't look for GPT primary and secondary tables on a disk unless we
have a valid PMBR.
2007-11-09 02:48:03 +00:00
keramida
3ee3569b60 MFC: mdconfig.8 -r 1.37
% Add an example which shows how mdconfig(8) can be used
% to mount an ISO 9660 CD image file.
%
% PR:             112691
% Submitted by:   Warren Block, wblock at wonkity.com
2007-11-04 15:07:28 +00:00
emaste
99d3a7a44e MFC to RELENG_6 dhclient RFC3442 support (the classless static route
option)

dhclient.conf 1.2

  Add a $FreeBSD$ tag missing after the original import.  Note that this
  file isn't actually installed; the one in src/etc is.

clparse.c 1.3
dhclient-script 1.15
dhclient.c 1.21
dhclient.conf 1.3
dhcp.h 1.3
tables.c 1.4

  Implement RFC3442, the Classless Static Route option.

  The original DHCP specification includes a route option but it
  supports only class-based routes.  RFC3442 adds support for
  specifying the netmask width for each static route.  A variable
  length encoding is used to minimize the size of this option.

  PR:             bin/99534
  Submitted by:   Andrey V. Elsukov <bu7cher@yandex.ru>
  Reviewed by:    brooks

dhclient-script 1.16

  The minimum size of an RFC3442 destination descriptor is five bytes,
  so correct test to -ge 5.  Without this change an RFC3442 encoded
  default route would be ignored.
2007-10-31 14:30:20 +00:00
daichi
8c9762ee1d MFC:
Added whiteout behavior option. ``-o whiteout=always'' is default mode
(it is established practice) and ``-o whiteout=whenneeded'' is less
disk-space using mode especially for resource restricted environments
like embedded environments. (Contributed by Ed Schouten. Thanks)

Submitted by:   Masanori Ozawa <ozawa@ongs.co.jp> (unionfs developer)
Reviewed by:    jeff, kensmith
Approved by:    re (kensmith)
2007-10-23 03:37:10 +00:00
maxim
08383c0d27 MFC rev.1.108: fix the issue when "ipfw(8) show" produces "not" twice. 2007-10-14 08:58:01 +00:00
thompsa
0f871a6acb MFC r1.17
Use the -n flag on ifconfig so that dhclient does not cause the kernel module
  to be reloaded when the interface is torn down.
2007-10-11 20:23:33 +00:00
thompsa
b0693660ac MFC ifconfig.8 r1.138, ifconfig.c r1.131
Add the -n flag for disabling automatic module loading
2007-10-11 20:20:39 +00:00
ru
e8138dad13 MFC: 1.32: If not compiled for debugging, redirect std{in,out,err}
to /dev/null before becoming a daemon.
2007-10-02 05:44:53 +00:00
maxim
65313cbfc7 MFC revs. 1.38, 1.39: need to reboot the system after tuning
softupdates on the root file system.
2007-09-29 16:31:44 +00:00
gabor
86db7f68ec MFC rev1.9:
- Remove references to unexisting man pages
2007-09-28 11:09:11 +00:00
obrien
a0569a49ba MFC: consume kld_isloaded(3). 2007-09-21 17:25:03 +00:00
ken
b19aa20b61 MFC:
camcontrol/Makefile:	rev 1.17
camcontrol.8:		rev 1.44
camcontrol.c:		rev 1.58

Add SCSI READ CAPACITY support to camcontrol.  The new 'readcap' subcommand
will automatically issue the 16 byte verison of read capacity if the device
in question is larger than 2TB.

There are also a number of output options here (last block, number of
blocks, human readable) that should meet most needs, and also aid in
scripting.
2007-09-18 01:26:28 +00:00
julian
42892c3888 MFC in revs 192-194 of the man page.
The actual code has been in for a while. (Allow tablearg to be used with 'fwd'
and allow it to take an IP address as a value).
2007-09-17 23:59:54 +00:00
danger
ad7686616e MFC Revision 1.61:
- Sweep the boot(8) man page after addition of boot.config(5).
2007-09-16 10:53:04 +00:00
jhb
a432a3d68c MFC: Expand the data structure returned by the ATA RAID status ioctl to
include detailed status on each of the backing subdisks.  A binary compat
shim is provided for the original status ioctl.

Approved by:	sos
2007-08-24 18:43:00 +00:00
thompsa
603e3c8e54 MFC
Add a bridge interface flag called PRIVATE where any private port can not
   communicate with another private port.

  1.11  src/sbin/ifconfig/ifbridge.c
  1.142 src/sbin/ifconfig/ifconfig.8
  1.102 src/sys/net/if_bridge.c
  1.23  src/sys/net/if_bridgevar.h
2007-08-06 09:11:05 +00:00
thompsa
5df0ac3d5e Sync lagg to HEAD
- Implement the Marker Protocol for lacp
 - Export the actor and partner peer info and show in ifconfig verbose
 - Compare the partner system priority when choosing the aggregator.
 - Cleanup whitespace, variable names and gc unused defines
2007-07-12 20:40:25 +00:00
remko
66a32e6850 MFC rev 1.33 mdmfs.c
-n is used by newfs to tell "do not generate a .snap directory" instead of
 specifying rotational-positions, reflect that in the command arguments.

 PR: bin/110178
 Submitted by: Alex Kozlov <spam at rm-rf dot kiev dot ua>
 Approved by: imp (mentor)

Approved by:	imp (mentor, implicit)
2007-07-07 11:22:46 +00:00
maxim
2903a43579 MFC rev. 1.103: make ipfw(8) show rules with mac/mac-type options
correctly.
MFC rev. 1.105: teach get_mac_addr_mask() to not silently accept
incorrect MAC addresses.
2007-06-10 13:59:36 +00:00