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.
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
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.
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
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]
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)
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
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>
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.
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)
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)
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)
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)
% 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
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.
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)
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.
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
- 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
-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)