Scott Long
6eef46be3b
Whitespace fixes
2007-04-10 21:37:37 +00:00
Marius Strobl
5abeece6ab
Let brgphy(4) attach for the Broadcom BCM5755 ASIC based chipsets
...
as well.
Obtained from: OpenBSD
MFC after: 1 week
2007-04-10 20:43:23 +00:00
Marius Strobl
a404cff674
On i386 compile the back-end with EISA support as well as the EISA
...
front-end if the dpt(4) module is built along with a kernel that
includes eisa(4) or when compiling it stand-alone (logic based on
the corresponding ISA logic in sys/modules/sound/sound/Makefile).
As as side-effect this fixes the stand-alone build of the dpt(4)
module after dpt.h 1.17, dpt_eisa.c 1.22 and dpt_scsi.c 1.55.
Breakage reported by: n_hibma
2007-04-10 20:33:31 +00:00
Scott Long
715ab2120d
A fix for the SG_GET_TIMEOUT function slipped into a previous commit by
...
accident. Remove the text describing the problem as it is no longer
relevant. Also give real implementations for the GET and SET ioctls.
2007-04-10 20:03:42 +00:00
Pawel Jakub Dawidek
57bcf75fd2
Add UFS_GJOURNAL options to the GENERIC kernel.
...
Approved by: re (kensmith)
2007-04-10 16:49:41 +00:00
Robert Watson
e8c5c7a635
Update comment regarding how we check privilege on FreeBSD: we now use
...
priv_check().
2007-04-10 16:09:00 +00:00
Robert Watson
4b08405682
Allow PRIV_NETINET_REUSEPORT in jail.
2007-04-10 15:59:49 +00:00
Robert Watson
6493245ded
Add a new privilege, PRIV_NETINET_REUSEPORT, which will replace superuser
...
checks to see whether bind() can reuse a port/address combination while
it's already in use (for some definition of use).
2007-04-10 15:58:38 +00:00
Robert Watson
cc807dbd0a
Remove unnecessary suser() check in the sysctl to set up ath_hal
...
logging: the sysctl framework will already have checked for privilege
if a sysctl value is being set.
Discussed a long time ago with: sam
2007-04-10 15:48:45 +00:00
Robert Watson
9956b3f5e4
Do allow POSIX mqueue unlink privilege inside a jail, as we all all
...
other POSIX mqueue privileges inside a jail.
2007-04-10 15:40:27 +00:00
Pawel Jakub Dawidek
08be819487
Minor style cleanups (mostly removal of trailing whitespaces).
2007-04-10 15:29:37 +00:00
Pawel Jakub Dawidek
21ff8c6715
Correct typos.
2007-04-10 15:22:40 +00:00
Pawel Jakub Dawidek
1b6e2c02fe
MFp4: Allow to set zfs_recover via vfs.zfs.recover from /boot/loader.conf.
2007-04-10 12:54:19 +00:00
Pawel Jakub Dawidek
5b9528e2d4
MFp4: Hide under '#ifdef _KERNEL' only what's really needed.
2007-04-10 12:52:14 +00:00
Giorgos Keramidas
a52da38f26
Minor typo fix, noticed while I was going through *_pager.c files.
2007-04-10 12:34:51 +00:00
Konstantin Belousov
5b959aa44f
Fix the NAMEI zone leak when snapshot was successfully created.
...
Reported and tested by: Peter Holm
MFC after: 2 weeks
2007-04-10 09:31:42 +00:00
Konstantin Belousov
9724167c2a
Recalculate the NEWBLOCK flag for pagedep structure after the softdep
...
lock is dropped, since pagedep may be already processed and deallocated.
Found and tested by: kris
MFC after: 2 weeks
2007-04-10 09:30:41 +00:00
Konstantin Belousov
23743f6a11
When LK_NOWAIT is passed as argument to process_worklist_item(), this
...
does not prevent handle_workitem_remove() from recursing into a blocking
version. Add the dirrem to worklist instead of processing it now if this
is the case.
Reported and tested by: kris
Submitted by: tegge
MFC after: 2 weeks
2007-04-10 09:28:17 +00:00
Andrew Thompson
49fd43bdbc
Fix an uninitialized variable warning.
2007-04-10 08:02:33 +00:00
Andrew Thompson
40c97c2118
Fix build, trunk is a device not an option.
2007-04-10 03:09:38 +00:00
Pawel Jakub Dawidek
2d03e33170
Try to stabilize ZFS with regard to memory consumption:
...
- Allow to shrink ARC down to 16MB (instead of 64MB).
- Set arc_max to 1/2 of kmem_map by default.
- Start freeing things earlier when low memory situation is detected.
- Serialize execution of arc_lowmem().
I decided to setup minimum ZFS memory requirements to 512MB of RAM and 256MB of
kmem_map size. If there is less RAM or kmem_map, a warning will be printed.
World is cruel, be no better. In other words: modern file system requires
modern hardware:)
From ZFS administration guide:
"Currently the minimum amount of memory recommended to install a Solaris
system is 512 Mbytes. However, for good ZFS performance, at least one
Gbyte or more of memory is recommended."
2007-04-10 02:35:57 +00:00
Pawel Jakub Dawidek
52124c7f1c
Reduce diff against vendor - we have now stronger check for "mutex already
...
initialized", so we can go back to kmem_alloc().
2007-04-10 02:19:12 +00:00
Andrew Thompson
75efd6fd67
Add trunk(4) module.
2007-04-10 00:41:31 +00:00
Andrew Thompson
7b62d98bf8
Hook trunk(4) up to the build.
2007-04-10 00:35:31 +00:00
Andrew Thompson
b47888ceba
Add the trunk(4) driver for providing link aggregation, failover and fault
...
tolerance. This driver allows aggregation of multiple network interfaces as
one virtual interface using a number of different protocols/algorithms.
failover - Sends traffic through the secondary port if the master becomes
inactive.
fec - Supports Cisco Fast EtherChannel.
lacp - Supports the IEEE 802.3ad Link Aggregation Control Protocol
(LACP) and the Marker Protocol.
loadbalance - Static loadbalancing using an outgoing hash.
roundrobin - Distributes outgoing traffic using a round-robin scheduler
through all active ports.
This code was obtained from OpenBSD and this also includes 802.3ad LACP support
from agr(4) in NetBSD.
2007-04-10 00:27:25 +00:00
Pawel Jakub Dawidek
0404b7791b
Remove unused #define.
2007-04-09 23:30:28 +00:00
Andrew Thompson
6429a5cb9b
Fix a compiler warning so hash.h can be included in the kernel. This changes
...
the args for hash32_stre and hash32_strne but there are no consumers in the
base system and openbgpd does not use it which the initial import was for.
Silence on: hackers
2007-04-09 22:55:14 +00:00
Pawel Jakub Dawidek
6db107202a
Fix build breakage.
2007-04-09 22:29:13 +00:00
Pawel Jakub Dawidek
151db24af1
Add zfs_load here.
...
Reminded by: bmah
2007-04-09 22:09:09 +00:00
Nate Lawson
a363f67a81
Restore the locking for the sleep/wakeup to avoid waiting an extra 1 sec
...
if a race was lost. We're still single-threaded at this point, but just
be safe for the future.
2007-04-09 21:10:04 +00:00
Nate Lawson
6b1e469ea5
Clean up the root mount and mount wait code. No mutexes are needed here
...
since a spurious wakeup() is the only possible outcome and this is fine in
the BSD programming model.
2007-04-09 19:23:52 +00:00
Pawel Jakub Dawidek
82068fe7a9
Add kern.hostuuid sysctl, which will be used to keep host's UUID.
...
Reviewed by: mlaier, rink, brooks, rwatson
2007-04-09 19:18:09 +00:00
Paolo Pisati
d640d2e29d
The old PacketAlias* API is not exported when
...
libalias run in kernel land.
2007-04-09 17:08:27 +00:00
Kip Macy
a53b1c1753
throw sun4v into the check while we're at it
2007-04-09 17:05:54 +00:00
Kip Macy
3a0a4ac13d
busdma tags are opaque on all architectures except sparc64
...
for now simply don't compile/use on sparc64
2007-04-09 17:01:23 +00:00
Alexander Kabaev
74c7f74304
LINT on ia64 requires memset symbol too. Make fire it is present by adding
...
it to libkern on this architecture.
2007-04-09 14:02:18 +00:00
Andre Oppermann
cc9164e2e6
Sort sctp_*.c files.
2007-04-09 12:51:29 +00:00
Scott Long
4400b36d94
Make use of M_ZERO in various malloc calls.
2007-04-09 05:47:32 +00:00
Scott Long
472cdbef04
Fix a logic bug that slipped in at the last minute and apparently escaped
...
testing.
2007-04-09 05:43:02 +00:00
Pawel Jakub Dawidek
24bda1641f
Instead of detecting if lock is already initialized based on standard 1 bit
...
check, use more accurate 13 bits check. We had too many false-positives with
the standard check.
Reported by: mlaier
2007-04-09 01:05:31 +00:00
Pawel Jakub Dawidek
1868634782
Always try to load zpool.cache instead of trying to find good place to
...
document it. When there is no such file, it's invisible for the user.
2007-04-09 00:04:54 +00:00
Pawel Jakub Dawidek
33fc425c85
We don't have to wait for the root file system to be mounted anymore, now that
...
kobj KPI supports operating on files loaded by the loader.
2007-04-09 00:03:45 +00:00
Pawel Jakub Dawidek
5fc5d6ed61
Drop the Giant lock before calling zfs_domount(), which is held when
...
mounting root file system.
2007-04-09 00:02:11 +00:00
Pawel Jakub Dawidek
f92cb15e7b
Move zpool.cache from /etc/zfs/ to /boot/zfs/, so we can keep it on
...
dedicated /boot/ file system and use ZFS for the root file system.
2007-04-08 23:59:39 +00:00
Pawel Jakub Dawidek
bdebccf9b9
Extend kobj compatibility KPI to support operating on files before and
...
after the root file system is mounted.
This is one of the changes that will allow to put root file system on ZFS.
2007-04-08 23:57:08 +00:00
Pawel Jakub Dawidek
df3aed4f96
Use root_mounted().
2007-04-08 23:54:23 +00:00
Pawel Jakub Dawidek
2eb68d493f
Add root_mounted() function that returns true if the root file system is
...
already mounted.
2007-04-08 23:54:01 +00:00
Kip Macy
dc5a36e241
Add missing paren
2007-04-08 22:56:18 +00:00
Xin LI
9e3edba677
Bump __FreeBSDversion for CAM sg addition.
...
Requested by: bsam
2007-04-08 22:45:20 +00:00
Søren Schmidt
ae4ce3ceef
OK, this is not my day, fix the former fix :/
2007-04-08 21:53:52 +00:00