]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoAdd support for hw-assisted checksums on 6105M.
phk [Tue, 17 Apr 2007 22:59:54 +0000 (22:59 +0000)]
Add support for hw-assisted checksums on 6105M.

Sponsored by: Soekris Engineering

17 years agoSimplify.
pjd [Tue, 17 Apr 2007 21:58:34 +0000 (21:58 +0000)]
Simplify.

17 years agoFix build breakage. Most of ZFS code is also compiled in userland and I
pjd [Tue, 17 Apr 2007 21:38:15 +0000 (21:38 +0000)]
Fix build breakage. Most of ZFS code is also compiled in userland and I
should really stop forgetting about that.

17 years ago- Fix a leftover - vfs_mount_alloc() is now exported properly.
pjd [Tue, 17 Apr 2007 21:16:34 +0000 (21:16 +0000)]
- Fix a leftover - vfs_mount_alloc() is now exported properly.
  This fixes stange panics when listing .zfs/snapshot/ directory for me.
  Reported by: simokawa
  Reported by: Johan Hendriks <Johan@double-l.nl>
- Hide cache_purge() under FREEBSD_NAMECACHE like in other files.
- Protect mnt_flag with mount interlock.

17 years agoExport vfs_mount_alloc() as it is used in ZFS.
pjd [Tue, 17 Apr 2007 21:14:06 +0000 (21:14 +0000)]
Export vfs_mount_alloc() as it is used in ZFS.

17 years agoHonor the BUS_DMA_NOCACHE flag to bus_dmamem_alloc() on amd64 and i386 by
jhb [Tue, 17 Apr 2007 21:05:34 +0000 (21:05 +0000)]
Honor the BUS_DMA_NOCACHE flag to bus_dmamem_alloc() on amd64 and i386 by
mapping the pages as UC (uncacheable) using pmap_change_attr().

MFC after: 1 week
Requested by: ariff
Reviewed by: scottl

17 years agoIgnore hostid check for root-on-ZFS configurations. Making hostid available
pjd [Tue, 17 Apr 2007 17:57:34 +0000 (17:57 +0000)]
Ignore hostid check for root-on-ZFS configurations. Making hostid available
before the root is mounted is tricky and having it in /boot/ is not really
desire.

Reported by: Zephiris <zephiris@gmail.com>

17 years agoNo need to throw tag+handle around on the stack.
phk [Tue, 17 Apr 2007 17:32:39 +0000 (17:32 +0000)]
No need to throw tag+handle around on the stack.

17 years agoo Add missed w/space in the error message.
maxim [Tue, 17 Apr 2007 16:36:24 +0000 (16:36 +0000)]
o Add missed w/space in the error message.

Spotted by: Ivan Voras
MFC after: 1 week

17 years agoLink libzpool, ztest and zdb against libpthread.
pjd [Tue, 17 Apr 2007 15:52:37 +0000 (15:52 +0000)]
Link libzpool, ztest and zdb against libpthread.

Requested by: ru

17 years agoWhen we run into the syncache entry limits syncache_add() tries
andre [Tue, 17 Apr 2007 15:25:14 +0000 (15:25 +0000)]
When we run into the syncache entry limits syncache_add() tries
to free the oldest entry in the current bucket row.  The global
entry limit may be smaller than the bucket rows and their limit
combined however.  Thus only try to free a syncache entry if we
found one in this bucket row.

Reported by: kris

17 years agoWhen trying to allocate a PnP BIOS memory resource, the code loops trying
jhb [Tue, 17 Apr 2007 15:14:23 +0000 (15:14 +0000)]
When trying to allocate a PnP BIOS memory resource, the code loops trying
to move up the start address until the allocation succeeds.  If the
alignment of the resource was 0, then the code would keep trying the same
request in an infinite loop and hang.  Force the request to always move
start up by at least 1 byte each time through the loop.

17 years agoChange $P4$ ID strings to P4 ID strings so that they are not auto-expanded
rwatson [Tue, 17 Apr 2007 12:27:08 +0000 (12:27 +0000)]
Change $P4$ ID strings to P4 ID strings so that they are not auto-expanded
when integrated back into Perforce.  This avoids unnecessary conflicts
during the loopback of files maintained in Perforce.

17 years agoRemove $P4$ that snuck into CVS from Perforce.
rwatson [Tue, 17 Apr 2007 12:24:18 +0000 (12:24 +0000)]
Remove $P4$ that snuck into CVS from Perforce.

17 years agoImprove the if_vr driver ever so slightly.
phk [Tue, 17 Apr 2007 12:23:57 +0000 (12:23 +0000)]
Improve the if_vr driver ever so slightly.

The 6105M and 6102 does not have the DWORD alignment problem, so
don't m_defrag() every packet in the transmit path for those.

More stringent usage of tx-descriptor ring and its flags.

Tested on 6102 and 6105M, other chips may also be able to run
without the m_defrag() but I have neither hardware nor docs to
find out.

Sponsored by: Soekris Engineering

17 years agoShorten text string for ip_fw2 dynamic rules zone by removing the word
rwatson [Tue, 17 Apr 2007 09:28:36 +0000 (09:28 +0000)]
Shorten text string for ip_fw2 dynamic rules zone by removing the word
"zone", which is generally not present in zone names.  This reduces the
incidence of line-wrapping in "vmstat -z " using 80-column displays.

MFC after: 3 days

17 years agoBump date for the previous revision and the driver renaming.
brueffer [Tue, 17 Apr 2007 07:09:23 +0000 (07:09 +0000)]
Bump date for the previous revision and the driver renaming.

17 years agoTo avoid confusion, mention that the driver was originally called trunk
brueffer [Tue, 17 Apr 2007 07:08:18 +0000 (07:08 +0000)]
To avoid confusion, mention that the driver was originally called trunk
in OpenBSD.

17 years agotrunk(4) is now lagg(4).
brueffer [Tue, 17 Apr 2007 07:01:45 +0000 (07:01 +0000)]
trunk(4) is now lagg(4).

17 years agoBasic MPSAFE locking for the AHC and AHD drivers.
scottl [Tue, 17 Apr 2007 06:26:25 +0000 (06:26 +0000)]
Basic MPSAFE locking for the AHC and AHD drivers.

17 years agoDon't use spinlocks here. The iicbus transactions can take a long
imp [Tue, 17 Apr 2007 05:48:35 +0000 (05:48 +0000)]
Don't use spinlocks here.  The iicbus transactions can take a long
time, and this prevents interrupts (say for Hz/hardclock) from
happening.  Time stands still during the transfers...

17 years agoGNU readline was updated to patch 002 by ache@, note MFC by
delphij [Tue, 17 Apr 2007 03:39:54 +0000 (03:39 +0000)]
GNU readline was updated to patch 002 by ache@, note MFC by
rafan@ while I'm there.

17 years ago- Add a new 'j' switch and runtime option to toggle display jail id for
rafan [Tue, 17 Apr 2007 03:12:39 +0000 (03:12 +0000)]
- Add a new 'j' switch and runtime option to toggle display jail id for
  each process.
- While I'm here, keep help message sorted by keys

PR: 98489, 98975
Submitted by: clsung
Approved by: delphij (mentor)
MFC after: 2 weeks

17 years agoDon't delete the devalias, as per the man page.
scottl [Tue, 17 Apr 2007 01:12:35 +0000 (01:12 +0000)]
Don't delete the devalias, as per the man page.

Submitted by: jmg

17 years agoRemove net/if_trunk.h which is no longer used.
thompsa [Tue, 17 Apr 2007 01:02:55 +0000 (01:02 +0000)]
Remove net/if_trunk.h which is no longer used.

17 years agoLink trunk(4) to lagg(4)
thompsa [Tue, 17 Apr 2007 00:57:54 +0000 (00:57 +0000)]
Link trunk(4) to lagg(4)

17 years agoNote the renaming of trunk(4) to lagg(4).
thompsa [Tue, 17 Apr 2007 00:41:59 +0000 (00:41 +0000)]
Note the renaming of trunk(4) to lagg(4).

17 years agoRename the trunk(4) driver to lagg(4) as it is too similar to vlan trunking.
thompsa [Tue, 17 Apr 2007 00:35:11 +0000 (00:35 +0000)]
Rename the trunk(4) driver to lagg(4) as it is too similar to vlan trunking.

The name trunk is misused as the networking term trunk means carrying multiple
VLANs over a single connection. The IEEE standard for link aggregation (802.3
section 3) does not talk about 'trunk' at all while it is used throughout IEEE
802.1Q in describing vlans.

The lagg(4) driver provides link aggregation, failover and fault tolerance.

Discussed on: current@

17 years agoApply a set of style.Makefile(5) changes to src/cddl/ makefiles.
ru [Mon, 16 Apr 2007 21:20:26 +0000 (21:20 +0000)]
Apply a set of style.Makefile(5) changes to src/cddl/ makefiles.
There are some insignificant non-style changes as well.

Not fixed: makefiles use ${LIBTHR} that doesn't exist, thus
breaking "make checkdpadd" and not tracking dependencies
properly.

Approved by: pjd

17 years ago- Add a 'show rman <rm>' DDB command to dump the resources in a resource
jhb [Mon, 16 Apr 2007 21:09:03 +0000 (21:09 +0000)]
- Add a 'show rman <rm>' DDB command to dump the resources in a resource
  manager similar to 'devinfo -u'.
- Add a 'show allrman' DDB command that effectively does 'show rman' on all
  resource managers in the system.

17 years agoNew release notes: sx(9) lock improvements, T/TCP support in finger(1)
bmah [Mon, 16 Apr 2007 20:30:10 +0000 (20:30 +0000)]
New release notes:  sx(9) lock improvements, T/TCP support in finger(1)
gone, libarchive(3) ar file support, rpc.lockd(8)/rpc.statd(8) -P (+MFC),
top(1) -a.

17 years agoFor the XPT_SASYNC_CB operation, only decouple the broadcast to the bus
scottl [Mon, 16 Apr 2007 19:55:36 +0000 (19:55 +0000)]
For the XPT_SASYNC_CB operation, only decouple the broadcast to the bus
and device lists instead of decoupling the whole operation.  This avoids
problems with SIMs going away.

17 years agoDrop the topology lock before calling the periph oninvalidate and dtor
scottl [Mon, 16 Apr 2007 19:42:23 +0000 (19:42 +0000)]
Drop the topology lock before calling the periph oninvalidate and dtor
vectors.

17 years agoDrop the periph/sim lock when calling disk_destroy().
scottl [Mon, 16 Apr 2007 19:41:14 +0000 (19:41 +0000)]
Drop the periph/sim lock when calling disk_destroy().

17 years agoDestroy the devalias before destroying the dev.
scottl [Mon, 16 Apr 2007 19:40:13 +0000 (19:40 +0000)]
Destroy the devalias before destroying the dev.

17 years ago- Add another graph about the organization of the FreeBSD Project
gabor [Mon, 16 Apr 2007 19:04:18 +0000 (19:04 +0000)]
- Add another graph about the organization of the FreeBSD Project

17 years agoMerge OpenBSM 1.0 alpha 14 changes to src/sys/security/audit:
rwatson [Mon, 16 Apr 2007 16:20:45 +0000 (16:20 +0000)]
Merge OpenBSM 1.0 alpha 14 changes to src/sys/security/audit:

- au_to_attr64(), au_to_process64(), au_to_subject64(),
  au_to_subject64_ex(), au_to_zonename(), au_to_header64_tm().
- Extended address token fixes.

Obtained from: TrustedBSD Project

17 years agoUpdate src/sys/bsm for OpenBSM 1.0 alpha 14 import.
rwatson [Mon, 16 Apr 2007 16:13:10 +0000 (16:13 +0000)]
Update src/sys/bsm for OpenBSM 1.0 alpha 14 import.

Add new audit event types.

17 years agoRegenerate config.h from OpenBSM 1.0 alpha 14 import.
rwatson [Mon, 16 Apr 2007 15:49:15 +0000 (15:49 +0000)]
Regenerate config.h from OpenBSM 1.0 alpha 14 import.

17 years agoResolve conflicts from OpenBSM 1.0 alpha 14 import.
rwatson [Mon, 16 Apr 2007 15:41:56 +0000 (15:41 +0000)]
Resolve conflicts from OpenBSM 1.0 alpha 14 import.

17 years agoThis commit was generated by cvs2svn to compensate for changes in r168777,
rwatson [Mon, 16 Apr 2007 15:37:10 +0000 (15:37 +0000)]
This commit was generated by cvs2svn to compensate for changes in r168777,
which included commits to RCS files with non-trunk default branches.

17 years agoVendor import TrustedBSD OpenBSM 1.0 alpha 14, with the following change
rwatson [Mon, 16 Apr 2007 15:37:10 +0000 (15:37 +0000)]
Vendor import TrustedBSD OpenBSM 1.0 alpha 14, with the following change
history notes since the last import:

OpenBSM 1.0 alpha 14

- Fix endian issues when processing IPv6 addresses for extended subject
  and process tokens.
- gcc41 warnings clean.
- Teach audit_submit(3) about getaudit_addr(2).
- Add support for zonename tokens.

OpenBSM 1.0 alpha 13

- compat/clock_gettime.h now provides a compatibility implementation of
  clock_gettime(), which fixes building on Mac OS X.
- Countless man page improvements, markup fixes, content fixs, etc.
- XML printing support via "praudit -x".
- audit.log.5 expanded to include additional BSM token types.
- Added encoding and decoding routines for process64_ex, process32_ex,
  subject32_ex, header64, and attr64 tokens.
- Additional audit event identifiers for listen, mlockall/munlockall,
  getpath, POSIX message queues, and mandatory access control.

Approved by: re (bmah)
MFC after: 3 weeks
Obtained from: TrustedBSD Project

17 years agos/destory/destroy/ (except for the code in contrib/).
pjd [Mon, 16 Apr 2007 12:31:35 +0000 (12:31 +0000)]
s/destory/destroy/ (except for the code in contrib/).

17 years agoUncomment forgotten check. Without this check in-place, ZFS will panic on
pjd [Mon, 16 Apr 2007 10:23:24 +0000 (10:23 +0000)]
Uncomment forgotten check. Without this check in-place, ZFS will panic on
unload instead of returning EBUSY. This check tells if there are mounted
ZFS file systems or not. We can't unload if there are mounted file systems.

Reported by: Andrey V. Elsukov <bu7cher@yandex.ru>

17 years agoAdd a missing backslash and unbreak the build.
ru [Mon, 16 Apr 2007 09:54:59 +0000 (09:54 +0000)]
Add a missing backslash and unbreak the build.

17 years ago- Add missing man page links
rafan [Mon, 16 Apr 2007 09:11:24 +0000 (09:11 +0000)]
- Add missing man page links
- Remove link for define_key.3 which is a real man page
- Some whitespace nits

Approved by: delphij (mentor)

17 years agoIn libarchive: Downgrade ARCHIVE_FATAL and ARCHIVE_FAILED errors which
cperciva [Mon, 16 Apr 2007 04:04:50 +0000 (04:04 +0000)]
In libarchive: Downgrade ARCHIVE_FATAL and ARCHIVE_FAILED errors which
occur on the write side of extracting a file to ARCHIVE_WARN errors
when returning them from archive_read_extract.

In bsdtar: Use the return code from archive_read_data_into_fd and
archive_read_extract to determine whether we should continue trying to
extract an archive after one of the entries fails.

This commit makes extracting a truncated tarball complain once about
the archive being truncated, instead of complaining twice (once when
trying to extract an entry, and once when trying to seek to the next
entry).

Discussed with: kientzle

17 years agoPHYS_TO_VM_PAGE requires explicit vm_page.h include on sparc64
kmacy [Sun, 15 Apr 2007 22:17:10 +0000 (22:17 +0000)]
PHYS_TO_VM_PAGE requires explicit vm_page.h include on sparc64

17 years agoRemove unused variable tcbinfo_mtx.
rwatson [Sun, 15 Apr 2007 21:03:23 +0000 (21:03 +0000)]
Remove unused variable tcbinfo_mtx.

17 years agoAvoid "unused variable" warning when building without PSEUDOFS_TRACE.
des [Sun, 15 Apr 2007 20:35:18 +0000 (20:35 +0000)]
Avoid "unused variable" warning when building without PSEUDOFS_TRACE.

17 years agoUse %j and args cast to uintmax_t to print bus_addr_t && length args.
mjacob [Sun, 15 Apr 2007 19:03:45 +0000 (19:03 +0000)]
Use %j and args cast to uintmax_t to print bus_addr_t && length args.

17 years agoWhen org.freebsd:swap property is set to 'on' on a ZVOL, use is as a swap
pjd [Sun, 15 Apr 2007 18:07:14 +0000 (18:07 +0000)]
When org.freebsd:swap property is set to 'on' on a ZVOL, use is as a swap
device.

Discussed with: des

17 years agoAdd an entry for AUT_ZONENAME and the prototype for the au_to_zonename()
csjp [Sun, 15 Apr 2007 17:24:41 +0000 (17:24 +0000)]
Add an entry for AUT_ZONENAME and the prototype for the au_to_zonename()
function that will be implemented shortly. This is being done for the
openbsm import.

17 years agoMake pseudofs (and consequently procfs, linprocfs and linsysfs) MPSAFE.
des [Sun, 15 Apr 2007 17:10:01 +0000 (17:10 +0000)]
Make pseudofs (and consequently procfs, linprocfs and linsysfs) MPSAFE.

17 years agoInstead of stating GIANT_REQUIRED, just acquire and release Giant where
des [Sun, 15 Apr 2007 17:06:09 +0000 (17:06 +0000)]
Instead of stating GIANT_REQUIRED, just acquire and release Giant where
needed.  This does not make a difference now, but will when procfs is
marked MPSAFE.

17 years agoWhitespace cleanup.
des [Sun, 15 Apr 2007 17:02:03 +0000 (17:02 +0000)]
Whitespace cleanup.

17 years agoIn nfsrv_rcv(), don't reacquire the nfs server lock until after
rwatson [Sun, 15 Apr 2007 15:50:50 +0000 (15:50 +0000)]
In nfsrv_rcv(), don't reacquire the nfs server lock until after
nfs_realign() has been called, as it may sleep waiting on memory
allocation.

Reported by: simon

17 years agoAdd pmap includes needed by i386
kmacy [Sun, 15 Apr 2007 15:30:45 +0000 (15:30 +0000)]
Add pmap includes needed by i386

17 years agoFix the same bug as in procfs_doproc{,db}regs(): check that uio_offset is
des [Sun, 15 Apr 2007 13:29:36 +0000 (13:29 +0000)]
Fix the same bug as in procfs_doproc{,db}regs(): check that uio_offset is
0 upon entry, and don't reset it before returning.

MFC after: 3 weeks

17 years agoDon't reset uio_offset to 0 before returning. Instead, refuse to service
des [Sun, 15 Apr 2007 13:24:03 +0000 (13:24 +0000)]
Don't reset uio_offset to 0 before returning.  Instead, refuse to service
requests where uio_offset is not 0 to begin with.  This fixes a long-
standing bug where e.g. 'cat /proc/$$/regs' would loop forever.

MFC after: 3 weeks

17 years agoFix stupid syntax error - Pointy hat to me :-(
rrs [Sun, 15 Apr 2007 13:03:14 +0000 (13:03 +0000)]
Fix stupid syntax error - Pointy hat to me :-(

17 years agoAdd macros to assert that the process is / isn't held in memory.
des [Sun, 15 Apr 2007 12:59:49 +0000 (12:59 +0000)]
Add macros to assert that the process is / isn't held in memory.

MFC after: 3 weeks

17 years ago- Add more comments to sctps_stats struture in sctp_uio.h
rrs [Sun, 15 Apr 2007 11:58:26 +0000 (11:58 +0000)]
- Add more comments to sctps_stats struture in sctp_uio.h
- Fix bug that prevented EEOR mode from working
  and simplified the can_we_split code in the process.
- Reduce lock contention for the tcb_send_lock. I did
  this especially for EEOR mode, still need to look at
  why I need a lock when removing from the tailq and the
  ->next is NOT null. A lock fixes it but it implies a
  bug yet exists.
- Activated Andre's proposed changes to better use the mbuf
  infrastructure.
- Fixed places that were not using the aloc macro's to take
  advantage of the per assoc cache.
- Adds ifdef fix so any logging will enable stat_logging to
  get the right data structures in place (suggested by Max Laier).

17 years agoCommitting regression tests for all implemented nsswitch databases.
bushman [Sun, 15 Apr 2007 11:02:31 +0000 (11:02 +0000)]
Committing regression tests for all implemented nsswitch databases.
Detailed description and instructions are in the README file.
This work had been basically done during GSoC 2006.

Approved by: brooks (mentor)

17 years agoMFp4: Start DNLC after desiredvnodes variable is initialized.
pjd [Sun, 15 Apr 2007 09:10:17 +0000 (09:10 +0000)]
MFp4: Start DNLC after desiredvnodes variable is initialized.
      Before this change if zfs.ko was loaded by the loader, DNLC was
      automatically disabled.

Reported by: Zephiris <zephiris@gmail.com>

17 years agoRemove Giant from CAM. Drivers (SIMs) now register a mutex that CAM will
scottl [Sun, 15 Apr 2007 08:49:19 +0000 (08:49 +0000)]
Remove Giant from CAM.  Drivers (SIMs) now register a mutex that CAM will
use to synchornize and protect all data objects that are used for that
SIM.  Drivers that are not yet MPSAFE register Giant and operate as
usual.  RIght now, no drivers are MPSAFE, though a few will be changed
in the coming week as this work settles down.

The driver API has changed, so all CAM drivers will need to be recompiled.
The userland API has not changed, so tools like camcontrol do not need to
be recompiled.

17 years agoback out option to disable packet zone
kmacy [Sun, 15 Apr 2007 06:30:28 +0000 (06:30 +0000)]
back out option to disable packet zone

Requested by: sam

17 years agosuck in more of busdma to enable more efficient mappings
kmacy [Sun, 15 Apr 2007 05:46:34 +0000 (05:46 +0000)]
suck in more of busdma to enable more efficient mappings
kill redundant INVARIANTS check

17 years agoAdd sysctl for disabling/enabling mbuf chain collapsing
kmacy [Sun, 15 Apr 2007 05:45:10 +0000 (05:45 +0000)]
Add sysctl for disabling/enabling mbuf chain collapsing
remove map creation before calling bus_dmamap_load_mvec_sg

17 years agoImplement ZERO_COPY_SOCKETS check in a way that doesn't make LINT unhappy
kmacy [Sun, 15 Apr 2007 04:55:39 +0000 (04:55 +0000)]
Implement ZERO_COPY_SOCKETS check in a way that doesn't make LINT unhappy

17 years agoProperly cleanup the UID/GID lookup data.
kientzle [Sun, 15 Apr 2007 04:43:12 +0000 (04:43 +0000)]
Properly cleanup the UID/GID lookup data.

17 years agoDon't free a NULL pointer.
kientzle [Sun, 15 Apr 2007 04:42:52 +0000 (04:42 +0000)]
Don't free a NULL pointer.

17 years agoClean up a lot of memory leaks in the libarchive test harness.
kientzle [Sun, 15 Apr 2007 04:30:02 +0000 (04:30 +0000)]
Clean up a lot of memory leaks in the libarchive test harness.

17 years agoThanks to Colin for catching my mixup. The original problem wasn't
kientzle [Sun, 15 Apr 2007 01:01:20 +0000 (01:01 +0000)]
Thanks to Colin for catching my mixup.  The original problem wasn't
suppressing the second error, it was failing to address the first.

17 years agoConsolidate numeric limit macros in one place; include them
kientzle [Sun, 15 Apr 2007 00:53:38 +0000 (00:53 +0000)]
Consolidate numeric limit macros in one place; include them
only on platforms that need them.  FreeBSD doesn't.

17 years agoForce commit to actually document what was changed:
pjd [Sat, 14 Apr 2007 23:06:22 +0000 (23:06 +0000)]
Force commit to actually document what was changed:

At some point in ZFS porting cycle I wasn't able to open snapshot datasets
in DS_MODE_PRIMARY mode and I changed it to DS_MODE_STANDARD. It seems
that it works just fine with DS_MODE_PRIMARY mode now, but I don't really
know what have changed.

Requested by: scottl

17 years agoPass through error message if any operation fails, not just the last one.
kientzle [Sat, 14 Apr 2007 22:49:37 +0000 (22:49 +0000)]
Pass through error message if any operation fails, not just the last one.

17 years agoOverhaul of 'ar' support:
kientzle [Sat, 14 Apr 2007 22:34:10 +0000 (22:34 +0000)]
Overhaul of 'ar' support:
  * use "AR_GNU" as the format name instead of AR_SVR4 (it's what everyone is going to call it anyway)
  * Simplify numeric parsing to unsigned (none of the numeric values should ever be negative); don't run off end of numeric fields.
  * Finish parsing the common header fields before the next I/O request (which might dump the contents)
  * Be smarter about format guessing and trimming filenames.
  * Most of the magic values are only used in one place, so just inline them.
  * Many more comments.
  * Be smarter about handling damaged entries; return something reasonable.
  * Call it a "filename table" instead of a "string table"
  * Update tests.

Enable selection of 'ar', 'arbsd', and 'argnu' formats by name
(this allows bsdtar to create ar format archives).

The 'ar' writer still needs some work; it should reject
entries that aren't regular files and should probably also
strip leading paths from filenames.

17 years agoInvoke utime(2) properly. (It's only used on platforms
kientzle [Sat, 14 Apr 2007 22:20:31 +0000 (22:20 +0000)]
Invoke utime(2) properly.  (It's only used on platforms
that lack utimes(2).)

17 years agoFix RAID-Z resilvering.
pjd [Sat, 14 Apr 2007 20:50:14 +0000 (20:50 +0000)]
Fix RAID-Z resilvering.

Obtained from: OpenSolaris

17 years agoAdd support for mbuf iovec in the TX path
kmacy [Sat, 14 Apr 2007 20:40:22 +0000 (20:40 +0000)]
Add support for mbuf iovec in the TX path

17 years agoadd reference count pointer to mbuf iovec
kmacy [Sat, 14 Apr 2007 20:38:38 +0000 (20:38 +0000)]
add reference count pointer to mbuf iovec
implement robust version of m_collapse
add support for sf_buf
add fix for m_iovappend
add calls to m_sanity under INVARIANTS
fix m_freem_vec to correctly travese the mbuf iovec chain

17 years agohide static declaration
kmacy [Sat, 14 Apr 2007 20:31:05 +0000 (20:31 +0000)]
hide static declaration
remove extra white space

17 years agoremove now invalid check from m_sanity
kmacy [Sat, 14 Apr 2007 20:19:16 +0000 (20:19 +0000)]
remove now invalid check from m_sanity
panic on m_sanity check failure with INVARIANTS

17 years agoAdd option for disabling allocation from the packet zone
kmacy [Sat, 14 Apr 2007 20:16:03 +0000 (20:16 +0000)]
Add option for disabling allocation from the packet zone

17 years agopad out m_hdr to make pkthdr word-aligned
kmacy [Sat, 14 Apr 2007 19:42:20 +0000 (19:42 +0000)]
pad out m_hdr to make pkthdr word-aligned
shuffle pkthdr.len so that pkthdr.header is aligned without compiler added padding

Reviewed by: rwatson, andre, sam

17 years agoFix a typeo - unbreak the build.
mlaier [Sat, 14 Apr 2007 18:27:34 +0000 (18:27 +0000)]
Fix a typeo - unbreak the build.

17 years agoFix the build by temporarily disabling 'ar' support until
kientzle [Sat, 14 Apr 2007 18:24:42 +0000 (18:24 +0000)]
Fix the build by temporarily disabling 'ar' support until
I can clean it up.

17 years agoo Add bsm and security to a list of cscope dirs.
maxim [Sat, 14 Apr 2007 16:29:15 +0000 (16:29 +0000)]
o Add bsm and security to a list of cscope dirs.

17 years agoInclude a note about recompiling ports which use the base libmilter.
gshapiro [Sat, 14 Apr 2007 16:26:01 +0000 (16:26 +0000)]
Include a note about recompiling ports which use the base libmilter.

Submitted by: Matthew Seaman

17 years agoo IFNAMSIZ includes a terminating null byte.
maxim [Sat, 14 Apr 2007 16:09:23 +0000 (16:09 +0000)]
o IFNAMSIZ includes a terminating null byte.

Submitted by: rdivacky
MFC after: 1 week

17 years agoNew (but slightly overdue) release notes: snd_envy24ht(4),
bmah [Sat, 14 Apr 2007 15:53:37 +0000 (15:53 +0000)]
New (but slightly overdue) release notes:  snd_envy24ht(4),
snd_spicds(4).

17 years agoMFp4: Hmm, it seems to work now.
pjd [Sat, 14 Apr 2007 15:01:50 +0000 (15:01 +0000)]
MFp4: Hmm, it seems to work now.

17 years agoIn FreeBSD,
simokawa [Sat, 14 Apr 2007 14:39:38 +0000 (14:39 +0000)]
In FreeBSD,
- cv_timedwait() takes delta instead of absolute time,
- we need ioctl() for mediasize.

Reviewed by: pjd

17 years agoUse proper type cast for ctype macro
ache [Sat, 14 Apr 2007 14:32:48 +0000 (14:32 +0000)]
Use proper type cast for ctype macro

17 years agoFurther pseudofs improvements:
des [Sat, 14 Apr 2007 14:08:30 +0000 (14:08 +0000)]
Further pseudofs improvements:

The pfs_info mutex is only needed to lock pi_unrhdr.  Everything else
in struct pfs_info is modified only while Giant is held (during
vfs_init() / vfs_uninit()); add assertions to that effect.

Simplify pfs_destroy somewhat.

Remove superfluous arguments from pfs_fileno_{alloc,free}(), and the
assertions which were added in the previous commit to ensure they were
consistent.

Assert that Giant is held while the vnode cache is initialized and
destroyed.  Also assert that the cache is empty when it is destroyed.

Rename the vnode cache mutex for consistency.

Fix a long-standing bug in pfs_getattr(): it would uncritically return
the node's pn_fileno as st_ino.  This would result in st_ino being 0
if the node had not previously been visited by readdir(), and also in
an incorrect st_ino for process directories and any files contained
therein.  Correct this by abstracting the fileno manipulations
previously done in pfs_readdir() into a new function, pfs_fileno(),
which is used by both pfs_getattr() and pfs_readdir().

17 years agoElexol USB MOD1 is supported by the uftdi driver.
blackend [Sat, 14 Apr 2007 13:51:51 +0000 (13:51 +0000)]
Elexol USB MOD1 is supported by the uftdi driver.

17 years agoCleanup sysconf(3) a bit. sysconf(3) assumes in some places it operates
pjd [Sat, 14 Apr 2007 13:06:57 +0000 (13:06 +0000)]
Cleanup sysconf(3) a bit. sysconf(3) assumes in some places it operates
on int, but in fact it should operate on long.
- Introduce 'lvalue' variable, which is long.
- Fix _SC_XOPEN_SHM for 64bit archs.
- Fix _SC_PHYS_PAGES for 64bit archs.
  Reported by: simokawa
- Use lvalue for pathconf(3), as it returns long.
- Cast value explicitly to long on return.

17 years agoAdd ports-net-im, ports-net-p2p and ports-ports-mgmt collections.
ru [Sat, 14 Apr 2007 12:54:38 +0000 (12:54 +0000)]
Add ports-net-im, ports-net-p2p and ports-ports-mgmt collections.

17 years agoAdd src-cddl and src-rescue.
ru [Sat, 14 Apr 2007 12:53:37 +0000 (12:53 +0000)]
Add src-cddl and src-rescue.