]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years ago[stage: 3.1/9]
ariff [Fri, 16 Mar 2007 17:14:19 +0000 (17:14 +0000)]
[stage: 3.1/9]

malloc()less feeder_volume. Informations can be retrieved dynamically
by doing table lookup on static data. Increase resolution from 6bit
to PCM_FXSHIFT (8bit) for better resolution and finer volume changes.

17 years ago[stage: 2/9]
ariff [Fri, 16 Mar 2007 17:13:44 +0000 (17:13 +0000)]
[stage: 2/9]

Use inlined min() rather than MIN() macross.

17 years ago[stage: 1/9]
ariff [Fri, 16 Mar 2007 17:13:12 +0000 (17:13 +0000)]
[stage: 1/9]

- Convert sx lock to plain mutex. Since the access of /dev/sndstat
  is pretty much exclusive and protected by toggling sndstat_isopen,
  plain mutex is more than enough.
- Enable SBUF_AUTOEXTEND to avoid buffer truncation.

17 years agoRemove an extra "The".
bmah [Fri, 16 Mar 2007 16:07:49 +0000 (16:07 +0000)]
Remove an extra "The".

MFC after: 3 days

17 years agoRemove unused and #if 0'd net.inet.tcp.tcp_rttdflt sysctl.
rwatson [Fri, 16 Mar 2007 13:42:26 +0000 (13:42 +0000)]
Remove unused and #if 0'd net.inet.tcp.tcp_rttdflt sysctl.

17 years agoMinor white space tweaks in comments.
rwatson [Fri, 16 Mar 2007 13:39:04 +0000 (13:39 +0000)]
Minor white space tweaks in comments.

17 years ago- Add cxgb(4) entry, remove stale wx(4) entry
brueffer [Fri, 16 Mar 2007 12:56:20 +0000 (12:56 +0000)]
- Add cxgb(4) entry, remove stale wx(4) entry
- (gigabit|fast) ethernet -> (Gigabit|Fast) Ethernet

Approved by: rwatson (mentor)
MFC after: 3 days

17 years agoImagine a situation where:
pjd [Fri, 16 Mar 2007 12:36:54 +0000 (12:36 +0000)]
Imagine a situation where:

# ls -ld /mnt/{foo,bar}
drwxr-xr-x  3 root  wheel  512 Mar 16 06:56 /mnt/bar
lrwxr-xr-x  1 root  wheel    3 Mar 16 12:10 /mnt/foo -> bar

# grep /mnt/foo /etc/fstab
/dev/da1 /mnt/foo ufs rw 0 0

Which means, we give symbolic link as a mount point to mount(8), but mount(8)
use realpath(3) before mounting the file systems, so we get:

# mount | grep /dev/da1
/dev/da1 on /mnt/bar (ufs, local)

Before the commit:

# snapinfo /mnt/foo
usage: snapinfo [-v] -a
       snapinfo [-v] mountpoint
# snapinfo /mnt/bar
/mnt/bar/snap

This commit makes snapinfo(8) to first realpath(3) the given mount point and
now we have:

# snapinfo /mnt/foo
/mnt/bar/snap
# snapinfo /mnt/bar
/mnt/bar/snap

17 years agoReplace xfer->act.hand with xfer->hand.
simokawa [Fri, 16 Mar 2007 05:39:33 +0000 (05:39 +0000)]
Replace xfer->act.hand with xfer->hand.

17 years agoRemove retry_count.
simokawa [Fri, 16 Mar 2007 05:17:23 +0000 (05:17 +0000)]
Remove retry_count.

17 years ago* Remove xfer->retry_req.
simokawa [Fri, 16 Mar 2007 05:11:42 +0000 (05:11 +0000)]
* Remove xfer->retry_req.
   It is unnecessary because retry is done by OHCI.
   Further retry should be done by applications.

17 years agoLess verbose debug messages.
simokawa [Fri, 16 Mar 2007 04:26:58 +0000 (04:26 +0000)]
Less verbose debug messages.

17 years agoDetect cycle lost.
simokawa [Fri, 16 Mar 2007 04:25:02 +0000 (04:25 +0000)]
Detect cycle lost.

17 years agoMention a limitation that was inherted from RFC1952, making
delphij [Fri, 16 Mar 2007 03:50:53 +0000 (03:50 +0000)]
Mention a limitation that was inherted from RFC1952, making
it impossible to obtain correct file size from a file that
is larger than 4GB before compression.

PR: bin/110329
MFC after: 1 week

17 years agoPass special device to the ufs_disk_fillout() function, instead of mount
pjd [Fri, 16 Mar 2007 03:23:32 +0000 (03:23 +0000)]
Pass special device to the ufs_disk_fillout() function, instead of mount
point path. This way we properly handle the case when file system listed
in /etc/fstab was unmounted and another file system was mounted on the
same mount point.

17 years agoThe ufs_disk_fillout(3) can take special device name (with or without /dev/
pjd [Fri, 16 Mar 2007 03:13:28 +0000 (03:13 +0000)]
The ufs_disk_fillout(3) can take special device name (with or without /dev/
prefix) as an argument and mount point path. At the end it has to find
device name file system is stored on, which means when mount point path is
given, it tries to look into /etc/fstab and find special device
corresponding to the given mount point. This is not perfect, because it
doesn't handle the case when file system is mounted by hand and mount point
is given as an argument.

I found this problem while trying to use snapinfo(8), which passes mount
points to the ufs_disk_fillout(3) function, but I had file system mounted
manually, so snapinfo(8) was exiting with the error below:

ufs_disk_fillout: No such file or directory

I modified libufs(3) to handle those arguments (the order is important):

1. special device with /dev/ prefix
2. special device without /dev/ prefix
3. mount point listed in /etc/fstab, directory exists
4. mount point listed in /etc/fstab, directory doesn't exist
5. mount point of a file system mounted by hand

17 years agoPrint warning for large DFLTPHYS.
simokawa [Fri, 16 Mar 2007 02:29:36 +0000 (02:29 +0000)]
Print warning for large DFLTPHYS.

17 years agoFix support for ASUS A7T ALC882 laptop (gpio0 quirk).
ariff [Fri, 16 Mar 2007 01:44:21 +0000 (01:44 +0000)]
Fix support for ASUS A7T ALC882 laptop (gpio0 quirk).

Reported/Tested by: cognet

17 years agoSupport MAXPHYS up to 512KB
simokawa [Fri, 16 Mar 2007 01:23:36 +0000 (01:23 +0000)]
Support MAXPHYS up to 512KB

- We need at least two OCBs with indirect pointers allocated in a 4KB page.
- SBP_MAXPHYS can increase to 1MB once we separate management OCB/ORB
  which usually does not need indirect pointers.
- We have to increase SBP_DMA_SIZE for MAXPHYS larger than 1MB.

MFC after: 3 days

17 years agoJust use 'fdrop()' instead of 'FILE_LOCK(); fdrop_locked()' in
jhb [Thu, 15 Mar 2007 21:19:21 +0000 (21:19 +0000)]
Just use 'fdrop()' instead of 'FILE_LOCK(); fdrop_locked()' in
dupfdopen().  While I'm at it, move the second fdrop() out from under the
filedesc lock.

17 years ago- Bring upgrade produce up-to-date for OpenSSL 0.9.8e.
simon [Thu, 15 Mar 2007 21:06:48 +0000 (21:06 +0000)]
- Bring upgrade produce up-to-date for OpenSSL 0.9.8e.
- Add reminder to bump version numer in Makefile.inc.

17 years agoThis commit was generated by cvs2svn to compensate for changes in r167617,
simon [Thu, 15 Mar 2007 20:26:26 +0000 (20:26 +0000)]
This commit was generated by cvs2svn to compensate for changes in r167617,
which included commits to RCS files with non-trunk default branches.

17 years agoImport fix from upstream OpenSSL_0_9_8-stable branch:
simon [Thu, 15 Mar 2007 20:26:26 +0000 (20:26 +0000)]
Import fix from upstream OpenSSL_0_9_8-stable branch:

EVP_CIPHER_CTX_key_length() should return the set key length
in the EVP_CIPHER_CTX structure which may not be the same as
the underlying cipher key length for variable length ciphers.

This fixes problems in OpenSSH using some ciphers, and possibly other
applications.

See also: http://bugzilla.mindrot.org/show_bug.cgi?id=1291

17 years agoUpgrade to OpenSSL 0.9.8e.
simon [Thu, 15 Mar 2007 20:15:15 +0000 (20:15 +0000)]
Upgrade to OpenSSL 0.9.8e.

17 years agoResolve conflicts after import of OpenSSL 0.9.8e.
simon [Thu, 15 Mar 2007 20:07:27 +0000 (20:07 +0000)]
Resolve conflicts after import of OpenSSL 0.9.8e.

17 years agoVendor import of OpenSSL 0.9.8e.
simon [Thu, 15 Mar 2007 20:03:30 +0000 (20:03 +0000)]
Vendor import of OpenSSL 0.9.8e.

17 years agoThis commit was generated by cvs2svn to compensate for changes in r167612,
simon [Thu, 15 Mar 2007 20:03:30 +0000 (20:03 +0000)]
This commit was generated by cvs2svn to compensate for changes in r167612,
which included commits to RCS files with non-trunk default branches.

17 years agoSpring cleanup on irrelevant NULL checking over M_WAITOK allocations.
ariff [Thu, 15 Mar 2007 18:19:01 +0000 (18:19 +0000)]
Spring cleanup on irrelevant NULL checking over M_WAITOK allocations.

17 years ago- Put some sanity break statement in few missing places.
ariff [Thu, 15 Mar 2007 17:35:04 +0000 (17:35 +0000)]
- Put some sanity break statement in few missing places.
- Remove NULL checking on snd_mtxcreate() (M_WAITOK) .

17 years agoNOOP (for now) for hdac_dma_nocache(). It is a wrong way to enforce
ariff [Thu, 15 Mar 2007 17:23:38 +0000 (17:23 +0000)]
NOOP (for now) for hdac_dma_nocache(). It is a wrong way to enforce
cache coherency, besides of causing train wreck in other places
(especially on amd64, possibly on i386).

Discussed with: kib@, rafan@
Tested by: rafan@

17 years agoFix severe out-of-bound mtx "type" pointer, causing WITNESS refcount
ariff [Thu, 15 Mar 2007 16:41:27 +0000 (16:41 +0000)]
Fix severe out-of-bound mtx "type" pointer, causing WITNESS refcount
confusions and panic provided that the following conditions are met:

  1) WITNESS is enabled (watch/trace).
  2) Using modules, instead of statically linked (Not a strict
     requirement, but easier to reproduce this way).
  3) 2 or more modules share the same mtx type ("sound softc").
     - They might share the same name (strcmp() == 0), but it always
       point to different address.
  4) Repetitive kldunload/load on any module that shares the same mtx
     type (Not a strict requirement, but easier to reproduce this way).

     Consider module A and module B:
     - From enroll() - subr_witness.c:
       * Load module A. Everything seems fine right now.
         wA-w_refcount == 1 ; wA-w_name = "sound softc"
       * Load module B.
       * w->w_name == description will always fail.
         ("sound softc" from A and B point to different address).
       * wA->w_refcount > 0 && strcmp(description, wA->w_name) == 0
       * enroll() will return wA instead of returning (possibly unique)
         wB.
         wA->w_refcount++ , == 2.
       * Unload module A, mtx_destroy(), wA->w_name become invalid,
         but wA->w_refcount-- become 1 instead of 0. wA will not be
         removed from witness list.
       * Some other places call mtx_init(), iterating witness list,
         found wA, failed on wA->w_name == description
       * wA->w_refcount > 0 && strcmp(description, wA->w_name)
       * Panic on strcmp() since wA->w_name no longer point to valid
         address.

Note that this could happened in other places as well, not just sound
(eg. consider lots of drivers that share simmilar MTX_NETWORK_LOCK).

Solutions (for sound case):
  1) Provide unique mtx type string for each mutex creation (chosen)
  or
  2) Put "sound softc" global variable somewhere and use it.

17 years agoAdd missing @
brueffer [Thu, 15 Mar 2007 16:12:08 +0000 (16:12 +0000)]
Add missing @

17 years agoConsolidate insertion of TCP options into a segment from within tcp_output()
andre [Thu, 15 Mar 2007 15:59:28 +0000 (15:59 +0000)]
Consolidate insertion of TCP options into a segment from within tcp_output()
and syncache_respond() into its own generic function tcp_addoptions().

tcp_addoptions() is alignment agnostic and does optimal packing in all cases.

In struct tcpopt rename to_requested_s_scale to just to_wscale.

Add a comment with quote from RFC1323: "The Window field in a SYN (i.e.,
a <SYN> or <SYN,ACK>) segment itself is never scaled."

Reviewed by: silby, mohans, julian
Sponsored by: TCP/IP Optimization Fundraise 2005

17 years agoRemove NULL allocation checking since malloc() is allow to wait.
ariff [Thu, 15 Mar 2007 15:06:54 +0000 (15:06 +0000)]
Remove NULL allocation checking since malloc() is allow to wait.
(I'll fix other places later..)

17 years agoNULL instead of 0 in mtx_init() .
ariff [Thu, 15 Mar 2007 14:57:54 +0000 (14:57 +0000)]
NULL instead of 0 in mtx_init() .

17 years agoAdd a description about hw.firewire.hold_count.
simokawa [Thu, 15 Mar 2007 14:44:03 +0000 (14:44 +0000)]
Add a description about hw.firewire.hold_count.

MFC: after 3 days
PR: kern/93083

17 years agoDon't mess with PCIM_CMD_SERRESPEN and PCIM_CMD_PERRESPEN.
simokawa [Thu, 15 Mar 2007 14:11:46 +0000 (14:11 +0000)]
Don't mess with PCIM_CMD_SERRESPEN and PCIM_CMD_PERRESPEN.
This will fix 'NMI RAM parity error' while booting on some machines.

PR: kern/95077
MFC after: 3 days

17 years agoRemove a spurious blank line at the start of vlan_growhash().
yar [Thu, 15 Mar 2007 14:10:51 +0000 (14:10 +0000)]
Remove a spurious blank line at the start of vlan_growhash().
Add a diagnostic message to the function about resizing vlan
hash table.

17 years agoMention the first RELENG_6 release to include this driver.
brueffer [Thu, 15 Mar 2007 13:08:50 +0000 (13:08 +0000)]
Mention the first RELENG_6 release to include this driver.

MFC after: 3 days

17 years ago- Sysctl's move to seperate file
rrs [Thu, 15 Mar 2007 11:27:14 +0000 (11:27 +0000)]
- Sysctl's move to seperate file
- moved away from ifn/ifa access to sctp_ifa/sctp_ifn
  built and managed by the add-ip code.
- cleaned up add-ip code to use the iterator
- made iterator be a thread, which enables auto-asconf now.
- rewrote and cleaned up source address selection (also
  made it use new structures).
- Fixed a couple of memory leaks.
- DACK now settable as to how many packets to delay as
  well as time.
- connectx() to latest socket API, new associd arg.
- Fixed issue with revoking and loosing potential to
  send when we inflate the flight size. We now inflate
  the cwnd too and deflate it later when the revoked
  chunk is sent or acked.
- Got rid of some temp debug code
- src addr selection moved to a common file (sctp_output.c)
- Support for simple VRF's (we have support for multi-vfr
  via compile switch that is scrubbed from BSD but we won't
  need multi-vrf until we first get VRF :-D)
- Rest of mib work for address information now done
- Limit number of addresses in INIT/INIT-ACK to
  a #def (30).

Reviewed by: gnn

17 years agoFix a comment in memstat.h: errors are associated with memory type lists,
rwatson [Thu, 15 Mar 2007 10:44:18 +0000 (10:44 +0000)]
Fix a comment in memstat.h: errors are associated with memory type lists,
not individual types.

Submitted by: Bryan Venteicher <bryanv at daemoninthecloset dot org>
MFC after: 3 days

17 years agoDon't consider an lstat(2) failure to be an error (in the sense of
cperciva [Thu, 15 Mar 2007 10:11:38 +0000 (10:11 +0000)]
Don't consider an lstat(2) failure to be an error (in the sense of
affecting the return value from bsdtar), since (a) it usually occurs
due to a perfectly innocent (and unavoidable) race condition where a
user deletes a file in the window between bsdtar reading a directory
and attempting to read the file; and (b) aside from printing a warning
message, bsdtar behaves exactly as if the file had been deleted prior
to bsdtar reading its parent directory.

Reviewed by: kientzle
MFC after: 6 days

17 years agoIn auth_script(), change the size of an array to match the number of
kevlo [Thu, 15 Mar 2007 09:16:54 +0000 (09:16 +0000)]
In auth_script(), change the size of an array to match the number of
arguments.

17 years agoDiff reduction with NetBSD; use IN_LOCAL_GROUP() to check if an address
bms [Thu, 15 Mar 2007 08:44:22 +0000 (08:44 +0000)]
Diff reduction with NetBSD; use IN_LOCAL_GROUP() to check if an address
is within the locally scoped multicast range 224.0.0.0/24.

17 years agoA silly buglet found by Coverity- check the return value from
mjacob [Thu, 15 Mar 2007 06:42:54 +0000 (06:42 +0000)]
A silly buglet found by Coverity- check the return value from
cam_periph_acquire.

17 years agofix include names
kmacy [Thu, 15 Mar 2007 04:09:40 +0000 (04:09 +0000)]
fix include names

17 years agoRemove vestiges of very specific fpga support for my company's board.
imp [Thu, 15 Mar 2007 03:31:49 +0000 (03:31 +0000)]
Remove vestiges of very specific fpga support for my company's board.
It isn't relevant to FreeBSD as a whole, breaks the build, and isn't
even needed for my company's boards anymore...

MFC After: 2 weeks

17 years agoAdd "force" to ext2_ops, to match what was in the old mount_ext2fs binary.
rodrigc [Thu, 15 Mar 2007 00:09:50 +0000 (00:09 +0000)]
Add "force" to ext2_ops, to match what was in the old mount_ext2fs binary.

Reported by: Ivan Voras <ivoras fer hr>

17 years agoDocument exact command preferred for sending ASL as part of bug reports.
njl [Wed, 14 Mar 2007 22:55:30 +0000 (22:55 +0000)]
Document exact command preferred for sending ASL as part of bug reports.

17 years agoCreate an identity mapping (V=P) super page for the low memory region on
njl [Wed, 14 Mar 2007 22:30:02 +0000 (22:30 +0000)]
Create an identity mapping (V=P) super page for the low memory region on
boot.  Then, just switch to the kernel pmap when suspending instead of
allocating/freeing our own mapping every time.  This should solve a panic
of pmap_remove() being called with interrupts disabled.  Thanks to Alan
Cox for developing this patch.

Note: this means that ACPI requires super page (PG_PS) support in the CPU.
This has been present since the Pentium and first documented in the
Pentium Pro.  However, it may need to be revisited later.

Submitted by: alc
MFC after: 1 month

17 years agoNew release notes: vge(4) altq support (+mfc), snd_hda(4) added
brueffer [Wed, 14 Mar 2007 22:28:41 +0000 (22:28 +0000)]
New release notes: vge(4) altq support (+mfc), snd_hda(4) added

Updated release notes: KDE updated to 3.5.6, GNOME updated to 2.16.3

Also moved cxgb(4) entry to the right place and fixed another entity.

17 years agoNew release notes: cxgb(4) added.
brueffer [Wed, 14 Mar 2007 21:31:53 +0000 (21:31 +0000)]
New release notes: cxgb(4) added.

While here, fix an entity.

17 years agoProperly move the setting of bstp_linkstate_p to the bridgestp module.
thompsa [Wed, 14 Mar 2007 20:55:51 +0000 (20:55 +0000)]
Properly move the setting of bstp_linkstate_p to the bridgestp module.

17 years agoFix markup and reword a sentence to actually make sense.
brueffer [Wed, 14 Mar 2007 20:09:23 +0000 (20:09 +0000)]
Fix markup and reword a sentence to actually make sense.

17 years agoOnly enter the debugger on a Fatal op if this is a debug build of the
njl [Wed, 14 Mar 2007 19:56:10 +0000 (19:56 +0000)]
Only enter the debugger on a Fatal op if this is a debug build of the
acpi module.  Also clean up print of args a little.

This was accidentally committed as 1.9.2.3 in the stable branch.  Since it
is harmless, I will let the "insta-MFC" stand unless there is a problem.

17 years agoUpdate a comment: Rather than suggesting suser(), suggest priv(9) for
rwatson [Wed, 14 Mar 2007 19:52:19 +0000 (19:52 +0000)]
Update a comment: Rather than suggesting suser(), suggest priv(9) for
checking privilege.

17 years agoMap the second CS of the compact flash too. This allow us access to
jhay [Wed, 14 Mar 2007 19:03:07 +0000 (19:03 +0000)]
Map the second CS of the compact flash too. This allow us access to
the alternate status and the control registers. Remove the local
version of ata_reset.

Add support for the ADI Pronghorn Metro boards. They use CS3 and CS4
instead of Avila's CS1 and CS2.

17 years agoRename sed.test to multitest.t to comply with the naming scheme of
dds [Wed, 14 Mar 2007 18:58:59 +0000 (18:58 +0000)]
Rename sed.test to multitest.t to comply with the naming scheme of
the regression suite.

17 years agoRepo-copy from sed.test to comply with the naming scheme of
dds [Wed, 14 Mar 2007 18:55:31 +0000 (18:55 +0000)]
Repo-copy from sed.test to comply with the naming scheme of
the regression suite.

Copied-by: simon@
17 years agoDisable linking in of firmware on ia64 to avoid build failures from a
kmacy [Wed, 14 Mar 2007 18:20:36 +0000 (18:20 +0000)]
Disable linking in of firmware on ia64 to avoid build failures from a
broken ld.

17 years agoMap the second CS of the compact flash too. This allow us access to
jhay [Wed, 14 Mar 2007 18:05:04 +0000 (18:05 +0000)]
Map the second CS of the compact flash too. This allow us access to
the alternate status and the control registers. Remove the local
version of ata_reset.

Add support for the ADI Pronghorn Metro boards. They use CS3 and CS4
instead of Avila's CS1 and CS2.

OKed by: sam, cognet

17 years agofix braino in markup.
julian [Wed, 14 Mar 2007 17:33:16 +0000 (17:33 +0000)]
fix braino in markup.

17 years ago#define L1_CACHE_BYTES for non-x86
kmacy [Wed, 14 Mar 2007 16:18:51 +0000 (16:18 +0000)]
#define L1_CACHE_BYTES for non-x86

17 years agodefine prefetch as a no-op macro for non-x86 arches
kmacy [Wed, 14 Mar 2007 16:05:39 +0000 (16:05 +0000)]
define prefetch as a no-op macro for non-x86 arches

17 years agoLet vlan_ioctl() pass some work on to ether_ioctl()
yar [Wed, 14 Mar 2007 14:38:04 +0000 (14:38 +0000)]
Let vlan_ioctl() pass some work on to ether_ioctl()
and so reduce code duplication a bit.

17 years agoTest files repo-copied into tools/regression/usr.bin/sed and integrated
dds [Wed, 14 Mar 2007 13:43:32 +0000 (13:43 +0000)]
Test files repo-copied into tools/regression/usr.bin/sed and integrated
into the regression testing framework.

17 years agoReinstate error-testing regression tests.
dds [Wed, 14 Mar 2007 13:38:23 +0000 (13:38 +0000)]
Reinstate error-testing regression tests.

17 years agoRemove obsolete polling members from documentation for struct ifnet.
bms [Wed, 14 Mar 2007 13:19:50 +0000 (13:19 +0000)]
Remove obsolete polling members from documentation for struct ifnet.

Submitted by: Aniruddha Bohra
MFC after: 5 days

17 years agoDon't deny mounting for jailed processes immediately, allow
pjd [Wed, 14 Mar 2007 13:09:59 +0000 (13:09 +0000)]
Don't deny mounting for jailed processes immediately, allow
prison_priv_check() to decide what to do.

This change is suppose not to change current (security) behaviour
in any way.

Reviewed by: rwatson

17 years agoIntegrate the tests I wrote in 1992 with our current regression
dds [Wed, 14 Mar 2007 13:05:45 +0000 (13:05 +0000)]
Integrate the tests I wrote in 1992 with our current regression
testing framework and protocol.

17 years agoWhite space nits.
pjd [Wed, 14 Mar 2007 12:54:10 +0000 (12:54 +0000)]
White space nits.

17 years agoReference results for sed.test (to be renamed into multitest.t).
dds [Wed, 14 Mar 2007 12:46:22 +0000 (12:46 +0000)]
Reference results for sed.test (to be renamed into multitest.t).
I have verified these with GNU sed 4.1.5 (and in some cases with Solaris
sed) and they are identical, with the following exceptions:
5.3: The result is unspecified and BSD sed behaves differently.
6.3: GNU sed gets it wrong
7.1: GNU sed gets it wrong
7.8: BSD sed gets it wrong

17 years ago- Uncomment tests that were commented out
dds [Wed, 14 Mar 2007 11:03:00 +0000 (11:03 +0000)]
- Uncomment tests that were commented out
- Update platform-conditional tests to reflect current reality
- Fix conditional for test 7.8: it is the fault of BSD sed

17 years agoAutogenerate the hardware list for cxgb(4).
brueffer [Wed, 14 Mar 2007 10:52:01 +0000 (10:52 +0000)]
Autogenerate the hardware list for cxgb(4).

17 years ago- It looks like BSD and GNU sed can nowadays pass two more tests.
dds [Wed, 14 Mar 2007 10:10:10 +0000 (10:10 +0000)]
- It looks like BSD and GNU sed can nowadays pass two more tests.
- Test 7.8 fails for GNU sed not BSD.

17 years agoUse another non-printing test; address 0 now has a special meaning in GNU sed.
dds [Wed, 14 Mar 2007 09:47:00 +0000 (09:47 +0000)]
Use another non-printing test; address 0 now has a special meaning in GNU sed.

17 years agoDocument a procedure for testing individual binaries under development.
dds [Wed, 14 Mar 2007 09:33:13 +0000 (09:33 +0000)]
Document a procedure for testing individual binaries under development.

17 years agoUpdate tests to reflect the state of the art of sed in HEAD and
dds [Wed, 14 Mar 2007 09:05:41 +0000 (09:05 +0000)]
Update tests to reflect the state of the art of sed in HEAD and
GNU sed 4.1.5.
Almost all of the tests that were skipped for BSD or GNU sed
now appear to work.

17 years agoImplement fine-grained locking for UFS quotas.
kib [Wed, 14 Mar 2007 08:54:08 +0000 (08:54 +0000)]
Implement fine-grained locking for UFS quotas.

Each struct dquot gets dq_lock mutex to protect dq_flags and to interlock
with DQ_LOCK. qhash, dqfreelist and dq.dq_cnt are protected by global
dqhlock mutex.

i_dquot array for inode is protected by lockmgr' vnode lock, corresponding
assert added to the dqget(). Access to struct ufsmount quota-related fields
(um_quotas and um_qflags) is protected by um_lock.

Tested by: Peter Holm
Reviewed by: tegge
Approved by: re (kensmith)

This work were not possible without enormous amount of help given by
Tor Egge and Peter Holm. Tor reviewed each version of patch, pointed out
numerous errors and provided invaluable suggestions. Peter did tireless
testing of the patch as it was developed.

17 years agoCall getinoquota() before allocating new block for the directory to properly
kib [Wed, 14 Mar 2007 08:50:27 +0000 (08:50 +0000)]
Call getinoquota() before allocating new block for the directory to properly
account for block allocation.

Tested by: Peter Holm
Reviewed by: tegge
Approved by: re (kensmith)

17 years agoRemove unneeded getinoquota() call in the ufs_access().
kib [Wed, 14 Mar 2007 08:48:57 +0000 (08:48 +0000)]
Remove unneeded getinoquota() call in the ufs_access().

Tested by: Peter Holm
Reviewed by: tegge
Approved by: re (kensmith)

17 years agoBusy filesystem around call of VFS_QUOTACTL() vfs op.
kib [Wed, 14 Mar 2007 08:45:55 +0000 (08:45 +0000)]
Busy filesystem around call of VFS_QUOTACTL() vfs op.

Tested by: Peter Holm
Reviewed by: tegge
Approved by: re (kensmith)

17 years agoAdd missing punctuation.
brueffer [Wed, 14 Mar 2007 08:03:20 +0000 (08:03 +0000)]
Add missing punctuation.

17 years agoplay it safe for now and go back to kicking off tx cleaning from the tx path
kmacy [Wed, 14 Mar 2007 07:57:59 +0000 (07:57 +0000)]
play it safe for now and go back to kicking off tx cleaning from the tx path

17 years agoAdd sed math regression test.
dds [Wed, 14 Mar 2007 07:55:05 +0000 (07:55 +0000)]
Add sed math regression test.

17 years agoAdd Towers of Hanoi regression test.
dds [Wed, 14 Mar 2007 07:52:38 +0000 (07:52 +0000)]
Add Towers of Hanoi regression test.

17 years agofix wording blunder
kmacy [Wed, 14 Mar 2007 07:49:45 +0000 (07:49 +0000)]
fix wording blunder

17 years agoVarious fixes, also the driver can be compiled into the kernel now.
brueffer [Wed, 14 Mar 2007 07:46:57 +0000 (07:46 +0000)]
Various fixes, also the driver can be compiled into the kernel now.

17 years agoRepo-copy from usr.bin/sed/TEST for integration with the regression suite.
dds [Wed, 14 Mar 2007 07:40:44 +0000 (07:40 +0000)]
Repo-copy from usr.bin/sed/TEST for integration with the regression suite.

Copied-by: simon@
17 years agoReduce the risk of inducing heart attacks, by printing the right path when
cperciva [Wed, 14 Mar 2007 07:30:51 +0000 (07:30 +0000)]
Reduce the risk of inducing heart attacks, by printing the right path when
complaining about lstat(2) failing.  It's a bit scary to find the message
  tar: /: Cannot stat: No such file or directory
printed while doing a backup.

MFC after: 1 week

17 years agoAdd missing newline to correct failure of the regression test.
dds [Wed, 14 Mar 2007 07:01:49 +0000 (07:01 +0000)]
Add missing newline to correct failure of the regression test.
According to IEEE Std 1003.1, 2004 "Whenever the pattern space is
written to standard output or a named file, sed shall immediately
follow it with a <newline>."

An attempt at the same correction might have been made with r1.3,
which is however identical with r1.2.

17 years agoAdd support for statically compiling cxgb into the kernel
kmacy [Wed, 14 Mar 2007 06:57:26 +0000 (06:57 +0000)]
Add support for statically compiling cxgb into the kernel

17 years agono-op cxgb_config.h for the module compilation case
kmacy [Wed, 14 Mar 2007 06:41:34 +0000 (06:41 +0000)]
no-op cxgb_config.h for the module compilation case

17 years ago#define memory barrier macros for the non-i386 && non-amd64 case
kmacy [Wed, 14 Mar 2007 06:40:46 +0000 (06:40 +0000)]
#define memory barrier macros for the non-i386 && non-amd64 case

17 years agoremove unused code for recycling descriptors
kmacy [Wed, 14 Mar 2007 06:36:58 +0000 (06:36 +0000)]
remove unused code for recycling descriptors
kick tx cleaner from credit update function

17 years agoadd cxgb_config.h to define values that are defined in the Makefile when compiled...
kmacy [Wed, 14 Mar 2007 06:35:38 +0000 (06:35 +0000)]
add cxgb_config.h to define values that are defined in the Makefile when compiled as a
module

move prefetch out of cxgb_sge.c into header under arch conditional compilation

17 years agomove taskqueue_enqueue of tx clean operation out of the start path
kmacy [Wed, 14 Mar 2007 06:34:10 +0000 (06:34 +0000)]
move taskqueue_enqueue of tx clean operation out of the start path

17 years agomake desc_reclaimable macro safe to arbitrary arguments
kmacy [Wed, 14 Mar 2007 06:33:28 +0000 (06:33 +0000)]
make desc_reclaimable macro safe to arbitrary arguments

17 years agoMore suggestions from pjd.
julian [Wed, 14 Mar 2007 06:27:02 +0000 (06:27 +0000)]
More suggestions from pjd.

17 years agoSome comments from pjd
julian [Wed, 14 Mar 2007 06:12:36 +0000 (06:12 +0000)]
Some comments from pjd