Sascha Wildner [Mon, 12 Nov 2007 19:07:40 +0000 (19:07 +0000)]
Fix function name.
Sascha Wildner [Mon, 12 Nov 2007 19:04:00 +0000 (19:04 +0000)]
Remove reference to non-existant uhub(4).
Sepherosa Ziehau [Mon, 12 Nov 2007 11:46:40 +0000 (11:46 +0000)]
Linksys WPC54GS ver.2 works well with bwi(4)
Hasso Tepper [Mon, 12 Nov 2007 11:17:59 +0000 (11:17 +0000)]
-x was removed long time ago.
Peter Avalos [Mon, 12 Nov 2007 07:27:50 +0000 (07:27 +0000)]
Build CAM as a module.
This should make it possible to compile a kernel without SCSI support and
load it when, for example, a USB floppy is connected.
Obtained-from: FreeBSD
Peter Avalos [Sun, 11 Nov 2007 23:59:14 +0000 (23:59 +0000)]
Warns cleanup.
Peter Avalos [Sun, 11 Nov 2007 23:56:40 +0000 (23:56 +0000)]
cdevsw -> dev_ops.
Sascha Wildner [Sun, 11 Nov 2007 22:15:30 +0000 (22:15 +0000)]
Sync with FreeBSD.
Peter Avalos [Sun, 11 Nov 2007 16:08:08 +0000 (16:08 +0000)]
Don't include <sys/buf.h> twice.
Sepherosa Ziehau [Sun, 11 Nov 2007 07:43:18 +0000 (07:43 +0000)]
Don't enable annoying -Wpointer-sign in -Wall
Sepherosa Ziehau [Sun, 11 Nov 2007 07:38:29 +0000 (07:38 +0000)]
Protect pollctx fields (noticably netmsg used to schedule netisr_poll),
which will be touched by systimer callback function by critical section.
Sascha Wildner [Sat, 10 Nov 2007 19:58:23 +0000 (19:58 +0000)]
The maximum AAC_DEBUG value is 4.
Sascha Wildner [Sat, 10 Nov 2007 19:50:29 +0000 (19:50 +0000)]
Revert part of my previous commit.
aac_printstate0() is supposed to be callable from ddb.
Sascha Wildner [Sat, 10 Nov 2007 19:02:04 +0000 (19:02 +0000)]
Some aac(4) cleanup:
* Activate aac_debug.c. Fix AAC_DEBUG and add it to LINT.
* Staticise stuff which is used only locally.
* Remove unused functions.
* Constify an argument of aac_print_fib().
Sascha Wildner [Sat, 10 Nov 2007 17:55:25 +0000 (17:55 +0000)]
Include <sys/socketvar2.h> for ssb_lock/unlock (fixes LINT build).
Hasso Tepper [Fri, 9 Nov 2007 19:38:50 +0000 (19:38 +0000)]
Remove 386 CPU support from the runtime linker.
Hasso Tepper [Fri, 9 Nov 2007 18:36:20 +0000 (18:36 +0000)]
Fix LINT build.
Reported-by: swildner
Sascha Wildner [Fri, 9 Nov 2007 10:20:30 +0000 (10:20 +0000)]
Initialize tupleid to stop gcc's whining.
Sascha Wildner [Wed, 7 Nov 2007 21:38:00 +0000 (21:38 +0000)]
Fix references.
Sascha Wildner [Wed, 7 Nov 2007 20:56:20 +0000 (20:56 +0000)]
Remove last I386_CPU remains.
Matthew Dillon [Wed, 7 Nov 2007 18:24:06 +0000 (18:24 +0000)]
Separate ssb_lock() and ssb_unlock() into its own header file and reimplement
the macro as an inline. Using the DragonFly '2' notation for header files
containing potentially complex inlines.
Correct an extremely old bug that caused ssb_lock() to always return success,
even when it failed. This could have been responsible for miscellanious
random network bug reports over the years.
Reported-by: Johannes Hofmann <Johannes.Hofmann@gmx.de>
Taken-from: FreeBSD using the inline suggested by OpenBSD
Matthew Dillon [Wed, 7 Nov 2007 17:42:51 +0000 (17:42 +0000)]
Remove i386 support.
Submitted-by: Hasso Tepper <hasso@estpak.ee>
Matthew Dillon [Wed, 7 Nov 2007 17:38:16 +0000 (17:38 +0000)]
Correct bug in last commit.
Reported-by: Cedric Berger <cedric@berger.to>
Sascha Wildner [Wed, 7 Nov 2007 16:10:43 +0000 (16:10 +0000)]
Remove usbdevs.h and usbdevs_data.h via 'make upgrade'.
Hasso Tepper [Wed, 7 Nov 2007 09:57:07 +0000 (09:57 +0000)]
Update the uftdi(4) manpage.
Hasso Tepper [Wed, 7 Nov 2007 09:19:58 +0000 (09:19 +0000)]
Add missing USB to serial drivers.
Hasso Tepper [Wed, 7 Nov 2007 09:07:44 +0000 (09:07 +0000)]
Add uchcom(4) - the driver for WinChipHead CH341/CH340 chips.
Obtained-from: NetBSD
Hasso Tepper [Wed, 7 Nov 2007 08:57:18 +0000 (08:57 +0000)]
Add moscom(4) - the driver for MosChip Semiconductor MCS7703 USB to
serial chips.
Obtained-from: OpenBSD
Hasso Tepper [Wed, 7 Nov 2007 08:31:08 +0000 (08:31 +0000)]
Add uticom(4) driver for Texas Instruments TUSB3410 USB to serial chips
written by Dmitry Komissaroff <dxi@mail.ru> and me.
Sepherosa Ziehau [Wed, 7 Nov 2007 06:23:37 +0000 (06:23 +0000)]
- Use LIST for flow queue hash table
- Add assertions to make sure that flow queue count in flow set is correct
Matthew Dillon [Wed, 7 Nov 2007 00:46:39 +0000 (00:46 +0000)]
Add bio_ops->io_checkread and io_checkwrite - a read and write pre-check
which gives HAMMER a chance to set B_LOCKED if the kernel wants to write out
a passively held buffer.
Change B_LOCKED semantics slightly. B_LOCKED buffers will not be written
until B_LOCKED is cleared. This allows HAMMER to hold off B_DELWRI writes
on passively held buffers.
Matthew Dillon [Wed, 7 Nov 2007 00:43:24 +0000 (00:43 +0000)]
HAMMER part 2/many.
* Implement most of the I/O infrastructure and internal HAMMER tracking
structures for volumes, super-clusters, clusters, and buffers.
* Flesh out the B-Tree code and add an iterator.
* Implement a good chunk of the vnops, but no modifying operations yet.
* Implement passive filesystem buffer tracking which allows a struct buf
to remain associated with internal HAMMER data structures and also
provides a reverse path whereby the filesystem buffer cache drives
garbage collection of internal HAMMER data structures. Use the augmented
bio_ops to facilitate this.
* Skeleton for transactions, spikes, and object allocation & management.
Sascha Wildner [Tue, 6 Nov 2007 22:06:33 +0000 (22:06 +0000)]
Add a line to the rc.conf example to not try to set the screensaver
timeout which leads to an error in the vkernel environment.
Submitted-by: Rumko <rumcic@gmail.com>
Hasso Tepper [Tue, 6 Nov 2007 20:25:26 +0000 (20:25 +0000)]
- Add support for 230400 baud rate.
- Add support for Track Systems Traqmate.
Obtained-from: OpenBSD
Matthew Dillon [Tue, 6 Nov 2007 20:21:06 +0000 (20:21 +0000)]
Silence an annoying compiler warning.
Matthew Dillon [Tue, 6 Nov 2007 20:06:26 +0000 (20:06 +0000)]
Add regetblk() - reacquire a buffer lock. The buffer must be B_LOCKED or
must be interlocked with bio_ops. Used by HAMMER.
Further changes to B_LOCKED buffers. A B_LOCKED|B_DELWRI buffer will be
placed on the dirty queue and then returned to the locked queue once the
I/O completes. That is, B_LOCKED does not interfere with B_DELWRI
operation.
Matthew Dillon [Tue, 6 Nov 2007 17:11:38 +0000 (17:11 +0000)]
When the quotacheck has not been run the quota code may have to
allocate blocks in the userquota file itself. This will deadlock the
quota system.
Disallow adjustments of quotas related to operations on the userquota file
itself, and generate a warning to the console.
Reported-by: David W <dpwalters@carolina.rr.com>
Sepherosa Ziehau [Tue, 6 Nov 2007 15:34:30 +0000 (15:34 +0000)]
Fix possible memory leakage under following conditions:
- a flow set is configured but not used.
- a flow set's parent pipe is gone.
Add comment about it.
Sepherosa Ziehau [Tue, 6 Nov 2007 14:42:52 +0000 (14:42 +0000)]
- Use hash table for pipes and flow set, which accelerates flow set looking up
in dummynet_io(). This should be fast enough so that we don't need to cache
the searching result in ipfw(4) pipe/queue rule's pipe_ptr field. This also
further decouples dummynet(4) and ipfw(4).
- Nuke flush_pipe_ptrs() after above change.
- Use queue(3) for linked list.
Hasso Tepper [Tue, 6 Nov 2007 07:37:02 +0000 (07:37 +0000)]
Kill devinfo handling in drivers, set device description in one place -
usbd_probe_and_attach() and let generic device code to output descriptions.
Obtained-from: FreeBSD with modifications
Jeffrey Hsu [Tue, 6 Nov 2007 05:50:23 +0000 (05:50 +0000)]
Add split on whitespace functionality.
Sepherosa Ziehau [Tue, 6 Nov 2007 04:09:45 +0000 (04:09 +0000)]
Use TAILQ for packet queue in flow queue and pipe
Matthew Dillon [Tue, 6 Nov 2007 03:50:02 +0000 (03:50 +0000)]
Convert the global 'bioops' into per-mount bio_ops. For now we also have
to have a per buffer b_ops as well since the controlling filesystem cannot
be located from information in struct buf (b_vp could be the backing store
so that can't be used). This change allows HAMMER to use bio_ops.
Change the ordering of the bio_ops.io_deallocate call so it occurs before
the buffer's B_LOCKED is checked. This allows the deallocate call to set
B_LOCKED to retain the buffer in situations where the target filesystem
is unable to immediately disassociate the buffer. Also keep VMIO intact
for B_LOCKED buffers (in addition to B_DELWRI buffers).
HAMMER will use this feature to keep buffers passively associated with
other filesystem structures and thus be able to avoid constantly brelse()ing
and getblk()ing them.
Hasso Tepper [Mon, 5 Nov 2007 19:09:44 +0000 (19:09 +0000)]
Nuke usbdevs and references to it.
Sepherosa Ziehau [Mon, 5 Nov 2007 15:16:46 +0000 (15:16 +0000)]
Yet another round of clean up
Sepherosa Ziehau [Mon, 5 Nov 2007 14:06:06 +0000 (14:06 +0000)]
- Move some macros from ip_dummynet.h to ip_dummynet.c; they are
implementation details
- Hide dn_heap and dn_heap_entry under _KERNEL
- Rearrange comment in ip_dummynet.h
- Indentation
Hasso Tepper [Mon, 5 Nov 2007 13:32:28 +0000 (13:32 +0000)]
Kill usage of USB_VENDOR_FOO and USB_PRODUCT_BAR defines mostly using two
methods:
- USB_DEVICE(vendor_id, product_id) macro.
- Using C99 structure initialisers.
While at it, kill all custom "vendor and product id pair" structures and
custom walkthrough methods for these structures.
Sepherosa Ziehau [Mon, 5 Nov 2007 13:26:08 +0000 (13:26 +0000)]
Replace debug printf macro
Sepherosa Ziehau [Mon, 5 Nov 2007 13:11:16 +0000 (13:11 +0000)]
Use POSIX int type
Hasso Tepper [Mon, 5 Nov 2007 11:17:15 +0000 (11:17 +0000)]
Sync with FreeBSD - add OpenBSD 4.2.
Hasso Tepper [Mon, 5 Nov 2007 10:16:51 +0000 (10:16 +0000)]
Update named.root to the version from 1 November 2007 from ftp.internic.net.
L.ROOT-SERVERS.NET changed the IP address:
http://blog.icann.org/?p=227
Sepherosa Ziehau [Mon, 5 Nov 2007 09:25:44 +0000 (09:25 +0000)]
In free_chain() if we are asked to "kill default":
- Set default rule pointer to NULL
- Free dynamic rules(states) hash table. This avoids memory leakage when
unloading ipfw(4) module, if dynamic rules(states) are created.
Sepherosa Ziehau [Mon, 5 Nov 2007 08:58:35 +0000 (08:58 +0000)]
- Create user land ipfw(4) rule/state/flow_id structures, so that we could
change kernel land structures without interfering user land programs
(mainly ipfw(8))
Approved-by: dillon@
- Add assertion to make sure that static rules size/count and dynamic rules
count are correct
Gregory Neil Shapiro [Mon, 5 Nov 2007 01:46:32 +0000 (01:46 +0000)]
sendmail 8.14.2 has been imported
Gregory Neil Shapiro [Mon, 5 Nov 2007 01:37:48 +0000 (01:37 +0000)]
Merge from vendor branch SENDMAIL:
Import sendmail 8.14.2
Gregory Neil Shapiro [Mon, 5 Nov 2007 01:37:48 +0000 (01:37 +0000)]
Import sendmail 8.14.2
Sascha Wildner [Sun, 4 Nov 2007 19:04:42 +0000 (19:04 +0000)]
Use .Dv for ioctls.
Sascha Wildner [Sun, 4 Nov 2007 16:34:55 +0000 (16:34 +0000)]
Remove reference to nonexistant section.
Sascha Wildner [Sun, 4 Nov 2007 16:33:19 +0000 (16:33 +0000)]
Fix section reference.
Sascha Wildner [Sun, 4 Nov 2007 16:23:23 +0000 (16:23 +0000)]
Fix broken section.
Sepherosa Ziehau [Sun, 4 Nov 2007 06:57:46 +0000 (06:57 +0000)]
Factor out ipfw_dec_static_count(); add assertion in it to make sure
that static_{count,len} are correct.
Sepherosa Ziehau [Sun, 4 Nov 2007 04:28:52 +0000 (04:28 +0000)]
- Add ipfw_init_default_rule() to perform default rule initialization
- In add_rule(), nuke special handling for default rule
- Factor out ipfw_inc_static_count()
These could ease upcoming user/kernel land ipfw structures splitting
Sascha Wildner [Sat, 3 Nov 2007 22:24:53 +0000 (22:24 +0000)]
Check bit D0 ("Mode supported by hardware configuration") in the
mode attributes field and reject video modes for which it isn't
set. I don't know why this was always commented out but X checks
it too so I guess it's safe.
The bit is unset e.g. for video modes which are not supported due
to not enough memory being assigned to an onboard graphics adapter
in the BIOS, or if a mode is supported by a laptop's graphics card
but not by its screen.
Reported-by: Joseph Garcia <bsd_usr@yahoo.com>
Peter Avalos [Sat, 3 Nov 2007 20:12:10 +0000 (20:12 +0000)]
Update for libarchive 2.4.0 import.
Peter Avalos [Sat, 3 Nov 2007 20:03:46 +0000 (20:03 +0000)]
Merge from vendor branch LIBARCHIVE:
Import libarchive 2.4.0 which brings some performance enhancements.
Peter Avalos [Sat, 3 Nov 2007 20:03:46 +0000 (20:03 +0000)]
Import libarchive 2.4.0 which brings some performance enhancements.
Sascha Wildner [Sat, 3 Nov 2007 18:37:42 +0000 (18:37 +0000)]
Sort references.
Sascha Wildner [Sat, 3 Nov 2007 17:43:39 +0000 (17:43 +0000)]
Remove unused tunables.
Sascha Wildner [Sat, 3 Nov 2007 17:06:46 +0000 (17:06 +0000)]
Add missing '.'
Sepherosa Ziehau [Sat, 3 Nov 2007 14:05:28 +0000 (14:05 +0000)]
Remove ipfw1 from system.
Sepherosa Ziehau [Sat, 3 Nov 2007 13:14:29 +0000 (13:14 +0000)]
Create user land dummynet(4) pipe/flow_set/flow_queue/flow_id structures,
so that we could change kernel land structures without interfering user
land programs (mainly ipfw(8)).
Approved-by: dillon@
Sascha Wildner [Sat, 3 Nov 2007 07:35:52 +0000 (07:35 +0000)]
Note that an interface doesn't have to be up when enabling polling.
Sascha Wildner [Sat, 3 Nov 2007 07:24:52 +0000 (07:24 +0000)]
Belated update of ktr(4) to reflect our current state of affairs.
Matthew Dillon [Fri, 2 Nov 2007 19:54:16 +0000 (19:54 +0000)]
Break-out the standard UNIX uid/gid tests for VOP_ACCESS into a helper file.
The code was basically taken from UFS and the helper file retains the
appropriate copyright. This way HAMMER can call the procedure without us
needing to add the University copyright to HAMMER sources.
Matthew Dillon [Fri, 2 Nov 2007 19:52:28 +0000 (19:52 +0000)]
Modify struct vattr:
Increase va_nlink, va_fileid (the inode number), and va_gen from
32 bit to 64 bit integers.
Add va_uid_uuid, va_gid_uuid, and va_fsid_uuid, and flags to
indicate that these fields are valid. The original va_uid and
va_gid are retained.
This change has no external visibility.
Modify struct statvfs:
Use spare fields to add f_fsid_uuid and f_uid_uuid to the
structure, and flags indicating that those fields are valid.
This change has minimal external visibility. The size of the
structure has not changed.
Modify struct stat:
Add a new file type S_IFDB. DB files are like regular files but
access data on a record by record basis. The seek position is a
64 bit record key and not a byte offset. Further work in this
area will be done later on to support related UIO operations.
This change has minimal external visibility. The size of the
structure has not changed.
Matthew Dillon [Fri, 2 Nov 2007 18:47:34 +0000 (18:47 +0000)]
Add a PHOLD/PRELE sequence around a sysctl_out to fix a race against
the reaper.
Submitted-by: "Nicolas Thery" <nthery@gmail.com>
Sepherosa Ziehau [Fri, 2 Nov 2007 14:01:17 +0000 (14:01 +0000)]
Since sys/net/dummynet/ip_dummynet.c rev 1.24, dummynet(4) callout frequency
is control by net.inet.ip.dummynet.hz
Sepherosa Ziehau [Fri, 2 Nov 2007 13:42:47 +0000 (13:42 +0000)]
Adjust DUMMYNET_CALLOUT_FREQ_MAX according to the comment in ip_dummynet.h
Sepherosa Ziehau [Fri, 2 Nov 2007 12:50:20 +0000 (12:50 +0000)]
'ipfw pipe X config bw iface' never works, so nuke the related user/kernel
land bits.
Sepherosa Ziehau [Fri, 2 Nov 2007 10:28:50 +0000 (10:28 +0000)]
Clean up
Sascha Wildner [Fri, 2 Nov 2007 08:15:14 +0000 (08:15 +0000)]
Sync zoneinfo database with tzdata2007i from elsie.
asia: 8.12 -> 8.13
northamerica: 8.18 -> 8.19
* Winter local time in Syria was observed at midnight of Thursday 1
November 2007.
* Cuba ended DST on the last Sunday of October.
Sepherosa Ziehau [Fri, 2 Nov 2007 07:10:14 +0000 (07:10 +0000)]
Clean up
Sepherosa Ziehau [Fri, 2 Nov 2007 06:27:24 +0000 (06:27 +0000)]
Clean up
Matthew Dillon [Fri, 2 Nov 2007 00:57:16 +0000 (00:57 +0000)]
HAMMER 2/many - core mount and unmount code now works, the B-Tree search
properly locates the root inode (though the root is a degenerate leaf in
a newly formatted filesystem so it isn't much of a test).
Properly implement special cases for hammer_btree_cmp() for the handling
of the creation and deletion transaction ids. In particular a create_tid
for key1 indicates 'the most recent version if not deleted' and a delete_tid
for key2 indicates a record which has not yet been deleted.
Matthew Dillon [Fri, 2 Nov 2007 00:54:26 +0000 (00:54 +0000)]
A delete_tid of 0 indicates a record which has not yet been deleted and
therefore is the 'highest' delete_tid possible, as a special case. The
right bound's delete_tid for the root cluster must be set to 0.
Matthew Dillon [Fri, 2 Nov 2007 00:38:36 +0000 (00:38 +0000)]
Properly set the buf_type in the volume, super-cluster, and cluster headers.
Fix a bug in getopt().
Matthew Dillon [Thu, 1 Nov 2007 22:48:16 +0000 (22:48 +0000)]
Correct a bug in the lockf code. F_NOEND was not being properly set.
Matthew Dillon [Thu, 1 Nov 2007 22:26:37 +0000 (22:26 +0000)]
Synchronize newfs_hammer with recent changes.
Matthew Dillon [Thu, 1 Nov 2007 22:05:23 +0000 (22:05 +0000)]
Add a HAMMER kernel build option, add a VFS type for HAMMER, add a file
type for key-access (database) files.
Matthew Dillon [Thu, 1 Nov 2007 20:53:05 +0000 (20:53 +0000)]
HAMMER part 1/many. This is a clear-my-plate commit.
* Skeleton VFS infrastructure. No VFS ops yet.
* Core B-Tree infrastructure - including the delete & rebalance code, but
not yet including the cluster extension code.
* Core in-memory structures and related locking and tracking primitives.
* Core A-List (allocator) and buffer management infrastructure.
Sepherosa Ziehau [Thu, 1 Nov 2007 15:48:26 +0000 (15:48 +0000)]
Use the orignal dummynet's indentation style
Sepherosa Ziehau [Thu, 1 Nov 2007 15:28:32 +0000 (15:28 +0000)]
- Yet another round of cleanup
- Protect the pipe/flow_set iteration in {config,delete}_pipe() with critical
section too
Sepherosa Ziehau [Thu, 1 Nov 2007 14:03:50 +0000 (14:03 +0000)]
- Use upper case for first letter in comment
- Move variable near its usage
Sepherosa Ziehau [Thu, 1 Nov 2007 13:43:31 +0000 (13:43 +0000)]
- Nuke no longer apply comment
- Head inclusion clean up
- Nuke unused functions
- Strip excessive white space
- Nuke FreeBSD compat code
Sepherosa Ziehau [Thu, 1 Nov 2007 12:10:58 +0000 (12:10 +0000)]
- Strip excessive white space
- Strip excessive parenthesis
- Add blank line between code blocks
- 'for (; cond;)' --> 'while (cond)'
- Minor style changes
Sepherosa Ziehau [Thu, 1 Nov 2007 06:54:17 +0000 (06:54 +0000)]
White space cleanup for heap functions
Thomas E. Spanjaard [Mon, 29 Oct 2007 12:56:45 +0000 (12:56 +0000)]
Remove fugly hack from the ATA channel interrupt handler. It never was really
correct, and it has long become redundant.
Justin C. Sherrill [Mon, 29 Oct 2007 12:51:21 +0000 (12:51 +0000)]
Making dntpd server list match the recommendations at:
http://www.pool.ntp.org/use.html
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue832
Sepherosa Ziehau [Mon, 29 Oct 2007 12:23:57 +0000 (12:23 +0000)]
realloc_dynamic_table() and add_dyn_rule() may be called from interrupt thread
and TCP/UDP thread, so instead of M_WAITOK, (M_INTWAIT | M_NULLOK) should be
used.
Sascha Wildner [Mon, 29 Oct 2007 10:31:27 +0000 (10:31 +0000)]
Comment out some "negative options" (options which make stuff not compile)
for more code coverage.