]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agoLock the interface address list when searching for a matching interface
rwatson [Sun, 19 Apr 2009 22:34:35 +0000 (22:34 +0000)]
Lock the interface address list when searching for a matching interface
by address, or when implementing 'me' rules on IPv6.  Prefer the field
name if_addrhead to the macro if_addrlist.

MFC after: 2 weeks

15 years agoIn divert_packet(), lock the interface address list before iterating over
rwatson [Sun, 19 Apr 2009 22:29:16 +0000 (22:29 +0000)]
In divert_packet(), lock the interface address list before iterating over
it in search of an address.

MFC after: 2 weeks

15 years agoLock interface address lists in in_pcbladdr() when searching for a
rwatson [Sun, 19 Apr 2009 22:25:09 +0000 (22:25 +0000)]
Lock interface address lists in in_pcbladdr() when searching for a
source address for a connection and there's no route or now interface
for the route.

MFC after: 2 weeks

15 years agoProtect against some writer-writer races in in_control() by acquiring
rwatson [Sun, 19 Apr 2009 22:16:19 +0000 (22:16 +0000)]
Protect against some writer-writer races in in_control() by acquiring
the interface address list lock around interface address list
modifications.  More to do here.

MFC after: 2 weeks

15 years agoLock the interface address list while building replies to
rwatson [Sun, 19 Apr 2009 22:05:39 +0000 (22:05 +0000)]
Lock the interface address list while building replies to
NGM_CISCO_COOKIE messages in ng_iface.

MFC after: 2 weeks

15 years agoLock interface address list when building a reply to NGM_EIFACE_GET_IFADDRS
rwatson [Sun, 19 Apr 2009 22:04:29 +0000 (22:04 +0000)]
Lock interface address list when building a reply to NGM_EIFACE_GET_IFADDRS
messages in ng_eiface.

MFC after: 2 weeks

15 years agoLock interface address list lock around ifaddr inserts and deletes
rwatson [Sun, 19 Apr 2009 22:01:38 +0000 (22:01 +0000)]
Lock interface address list lock around ifaddr inserts and deletes
in at_control().  This locking is not yet complete but should prevent
some classes of race conditions.

MFC after: 2 weeks

15 years agoBuild sound modules on PowerPC.
nwhitehorn [Sun, 19 Apr 2009 21:37:45 +0000 (21:37 +0000)]
Build sound modules on PowerPC.

15 years agoLock the interface address list while iterating a network interface's
rwatson [Sun, 19 Apr 2009 21:36:18 +0000 (21:36 +0000)]
Lock the interface address list while iterating a network interface's
address list when searching for a link-layer address to use during uuid
generation.

MFC after: 2 weeks

15 years agoAdd description and cautionary note regarding CACHE_LINE_SIZE.
rwatson [Sun, 19 Apr 2009 21:26:36 +0000 (21:26 +0000)]
Add description and cautionary note regarding CACHE_LINE_SIZE.

MFC after: 2 weeks
Suggested by: alc

15 years agoIn both pageout oom handler and vm_daemon, acquire the reference to
kib [Sun, 19 Apr 2009 20:53:47 +0000 (20:53 +0000)]
In both pageout oom handler and vm_daemon, acquire the reference to
the vmspace of the examined process instead of directly accessing its
vmspace, that may change. Also, as an optimization, check for P_INEXEC
flag before examining the process.

Reported and tested by: pho (previous version)
Reviewed by: alc
MFC after: 3 week

15 years agoFor each architecture, define CACHE_LINE_SHIFT and a derived
rwatson [Sun, 19 Apr 2009 20:19:13 +0000 (20:19 +0000)]
For each architecture, define CACHE_LINE_SHIFT and a derived
CACHE_LINE_SIZE constant.  These constants are intended to
over-estimate the cache line size, and be used at compile-time
when a run-time tuning alternative isn't appropriate or
available.

Defaults for all architectures are 64 bytes, except powerpc
where it is 128 bytes (used on G5 systems).

MFC after: 2 weeks
Discussed on:   arch@

15 years agoA script for plucking packages and their runtime dependencies for
phk [Sun, 19 Apr 2009 18:23:23 +0000 (18:23 +0000)]
A script for plucking packages and their runtime dependencies for
nanobsd images.

15 years agoDon't try to setup interrupts for drivers that don't support them.
rnoland [Sun, 19 Apr 2009 16:54:33 +0000 (16:54 +0000)]
Don't try to setup interrupts for drivers that don't support them.

This causes sis and probably a couple of other driver to panic and fail.

Tested by: cpghost <cpghost@cordula.ws>
PR: 133554
MFC after: 3 days

15 years agoMerge OpenBSM 1.1 from OpenBSM vendor branch to head.
rwatson [Sun, 19 Apr 2009 16:17:13 +0000 (16:17 +0000)]
Merge OpenBSM 1.1 from OpenBSM vendor branch to head.

OpenBSM history for imported revision below for reference.

MFC after:      2 weeks
Sponsored by:   Apple, Inc.
Obtained from:  TrustedBSD Project

OpenBSM 1.1

- Change auditon(2) parameters and data structures to be 32/64-bit architecture
  independent.  Add more information to man page about auditon(2) parameters.
- Add wrapper functions for auditon(2) to use legacy commands when the new
  commands are not supported.
- Add default for 'expire-after' in audit_control to expire trail files when
  the audit directory is more than 10 megabytes ('10M').
- Interface to convert between local and BSM fcntl(2) command values has been
  added:  au_bsm_to_fcntl_cmd(3) and au_fcntl_cmd_to_bsm(3), along with
  definitions of constants in audit_fcntl.h.
- A bug, introduced in OpenBSM 1.1 alpha 4, in which AUT_RETURN32 tokens
  generated by audit_submit(3) were improperly encoded has been fixed.
- Fix example in audit_submit(3) man page.  Also, make it clear that we want
  the audit ID as the argument.
- A new audit event class 'aa', for post-login authentication and
  authorization events, has been added.

15 years agoVendor import of OpenBSM 1.1, which incorporates the following changes
rwatson [Sun, 19 Apr 2009 15:18:16 +0000 (15:18 +0000)]
Vendor import of OpenBSM 1.1, which incorporates the following changes
since the last imported OpenBSM release:

OpenBSM 1.1

- Change auditon(2) parameters and data structures to be 32/64-bit architecture
  independent.  Add more information to man page about auditon(2) parameters.
- Add wrapper functions for auditon(2) to use legacy commands when the new
  commands are not supported.
- Add default for 'expire-after' in audit_control to expire trail files when
  the audit directory is more than 10 megabytes ('10M').
- Interface to convert between local and BSM fcntl(2) command values has been
  added:  au_bsm_to_fcntl_cmd(3) and au_fcntl_cmd_to_bsm(3), along with
  definitions of constants in audit_fcntl.h.
- A bug, introduced in OpenBSM 1.1 alpha 4, in which AUT_RETURN32 tokens
  generated by audit_submit(3) were improperly encoded has been fixed.
- Fix example in audit_submit(3) man page.  Also, make it clear that we want
  the audit ID as the argument.
- A new audit event class 'aa', for post-login authentication and
  authorization events, has been added.

Obtained from: TrustedBSD Project
Sponsored by: Apple, Inc.

15 years agoMerge OpenBSM 1.1 changes to the FreeBSD 8.x kernel:
rwatson [Sun, 19 Apr 2009 14:53:17 +0000 (14:53 +0000)]
Merge OpenBSM 1.1 changes to the FreeBSD 8.x kernel:

- Add and use mapping of fcntl(2) commands to new BSM constant space.
- Adopt (int) rather than (long) arguments to a number of auditon(2)
  commands, as has happened in Solaris, and add compatibility code to
  handle the old comments.

Note that BSM_PF_IEEE80211 is partially but not fully removed, as the
userspace OpenBSM 1.1alpha5 code still depends on it.  Once userspace
is updated, I'll GCC the kernel constant.

MFC after: 2 weeks
Sponsored by: Apple, Inc.
Obtained from: TrustedBSD Project
Portions submitted by: sson

15 years agoRemove support for FUTEX_REQUEUE operation.
dchagin [Sun, 19 Apr 2009 13:48:42 +0000 (13:48 +0000)]
Remove support for FUTEX_REQUEUE operation.
Glibc does not use this operation since 2.3.3 version (Jun 2004),
as it is racy and replaced by FUTEX_CMP_REQUEUE operation.
Glibc versions prior to 2.3.3 fall back to FUTEX_WAKE when
FUTEX_REQUEUE returned EINVAL.

Any application directly using FUTEX_REQUEUE without return
value checking are definitely broken.

Limit quantity of messages per process about unsupported
operation.

Approved by: kib (mentor)
MFC after: 1 month

15 years agostruct malloc_type has had a 'magic' field statically initialized to
rwatson [Sun, 19 Apr 2009 12:41:37 +0000 (12:41 +0000)]
struct malloc_type has had a 'magic' field statically initialized to
M_MAGIC by MALLOC_DEFINE() for a long time; add assertions that
malloc_type's passed to malloc(), free(), etc have that magic set.

MFC after: 2 weeks

15 years agoGarbage collect now-unused struct malloc_type fields, bump __FreeBSD_version
rwatson [Sun, 19 Apr 2009 11:20:57 +0000 (11:20 +0000)]
Garbage collect now-unused struct malloc_type fields, bump __FreeBSD_version
as kernel modules will need to be rebuilt.  These fields existed to support
binary compatibility with kernel modules from before the introduction of
libmemstat(3) in FreeBSD 6.x, so they are no longer required.

15 years agoWhen allocating 'struct acl' instances, use malloc(9) instead of uma(9).
trasz [Sun, 19 Apr 2009 09:56:30 +0000 (09:56 +0000)]
When allocating 'struct acl' instances, use malloc(9) instead of uma(9).
This struct will get much bigger soon, and we don't want to waste too much
memory on UMA caches.

Reviewed by: rwatson

15 years agoAdd docs category.
blackend [Sun, 19 Apr 2009 08:31:55 +0000 (08:31 +0000)]
Add docs category.

MFC after: 3 days

15 years agoNow that IFF_NEEDSGIANT has been removed from the network
bms [Sun, 19 Apr 2009 08:14:21 +0000 (08:14 +0000)]
Now that IFF_NEEDSGIANT has been removed from the network
stack, catch up with this in IGMPv3 and remove dead code.
This has the side-effect of not being back-portable to RELENG_7
w/o further changes.

15 years agoCalling pmap_clear_modify() after calling pmap_remove_write() is pointless.
alc [Sun, 19 Apr 2009 07:18:08 +0000 (07:18 +0000)]
Calling pmap_clear_modify() after calling pmap_remove_write() is pointless.
The latter function already clears the modified status from each of the
page's mappings.

15 years agoWhen compiled for the release crunches, be a bit
kientzle [Sun, 19 Apr 2009 06:59:12 +0000 (06:59 +0000)]
When compiled for the release crunches, be a bit
more selective about what libarchive features we pull in:
 * No compression support
 * Only cpio and ustar writing
 * Only cpio and tar/pax readers
This reduces a statically linked, stripped binary from 900k to 680k
and completely eliminates the dependency on libcrypto.

15 years agoFix a typo in the SRR1 comparison for program exceptions. While here,
nwhitehorn [Sun, 19 Apr 2009 06:30:00 +0000 (06:30 +0000)]
Fix a typo in the SRR1 comparison for program exceptions. While here,
replace magic numbers with constants to keep this from happening again.

Without this fix, some programs would occasionally get SIGTRAP instead
of SIGILL on an illegal instruction. This affected Altivec detection
in pixman, and possibly other software.

Reported by: Andreas Tobler
MFC after: 1 week

15 years agoWhen verifying '..' after VFS_VGET() in ufs_lookup(), do not return
kib [Sun, 19 Apr 2009 05:34:07 +0000 (05:34 +0000)]
When verifying '..' after VFS_VGET() in ufs_lookup(), do not return
error if '..' is still there but changed between lookup and check.
Start relookup instead. Rename is supposed to change '..' reference
atomically, so transient failures introduced by r191137 are wrong.

While rearranging the code to allow lookup restart in ufs_lookup(),
remove the comment that only distracts the reader.

Noted and reviewed by: tegge
Also reported by: pho
MFC after: 1 month

15 years ago- Allocate a small flowtable in ip_input.c (changeable by tuneable)
kmacy [Sun, 19 Apr 2009 04:44:05 +0000 (04:44 +0000)]
- Allocate a small flowtable in ip_input.c (changeable by tuneable)
- Use for accelerating ip_output

15 years agoupdate TODO list
kmacy [Sun, 19 Apr 2009 04:39:42 +0000 (04:39 +0000)]
update TODO list

15 years ago- put larger flowtable members at the end
kmacy [Sun, 19 Apr 2009 04:24:56 +0000 (04:24 +0000)]
- put larger flowtable members at the end
- fix bug where tail pointer of the free list would not get advanced
- clear entry's next pointer when it is added to the freelist to avoid freeing
  an entry that it still points to

15 years agoAllow valid pages to be mapped for read access when they have a non-zero
alc [Sun, 19 Apr 2009 00:34:34 +0000 (00:34 +0000)]
Allow valid pages to be mapped for read access when they have a non-zero
busy count.  Only mappings that allow write access should be prevented by
a non-zero busy count.

(The prohibition on mapping pages for read access when they have a non-
zero busy count originated in revision 1.202 of i386/i386/pmap.c when
this code was a part of the pmap.)

Reviewed by: tegge

15 years ago- Import infrastructure for caching flows as a means of accelerating L3 and L2 lookups
kmacy [Sun, 19 Apr 2009 00:16:04 +0000 (00:16 +0000)]
- Import infrastructure for caching flows as a means of accelerating L3 and L2 lookups
  as well as providing stateful load balancing when used with RADIX_MPATH.
- Currently compiled in to i386 and amd64 but disabled by default, it can be enabled at
  runtime with 'sysctl net.inet.flowtable.enable=1'.

- Embedded users can remove it entirely from the kernel by adding 'nooption FLOWTABLE' to
  their kernel config files.

- A minimal hookup will be added to ip_output in a subsequent commit. I would like to see
  more review before bringing in changes that require more churn.

Supported by: Bitgravity Inc.

15 years agousbdevs(8) is not obsoleted, just temporarily disconnected from the build
antoine [Sat, 18 Apr 2009 22:16:46 +0000 (22:16 +0000)]
usbdevs(8) is not obsoleted, just temporarily disconnected from the build

Noticed by: ru@

15 years agoRemove IFF_NEEDSGIANT interface flag: we no longer provide ifnet-layer
rwatson [Sat, 18 Apr 2009 20:39:17 +0000 (20:39 +0000)]
Remove IFF_NEEDSGIANT interface flag: we no longer provide ifnet-layer
infrastructure to support non-MPSAFE network device drivers.

15 years agoifconfig(8) no longer needs to know how to print the IFF_NEEDSGIANT flag,
rwatson [Sat, 18 Apr 2009 20:10:39 +0000 (20:10 +0000)]
ifconfig(8) no longer needs to know how to print the IFF_NEEDSGIANT flag,
since it shortly won't be defined at all.

15 years agoGarbage collect man page reference to IFF_NEEDSGIANT.
rwatson [Sat, 18 Apr 2009 20:09:43 +0000 (20:09 +0000)]
Garbage collect man page reference to IFF_NEEDSGIANT.

15 years agoAdd more obsolete files, usb related.
antoine [Sat, 18 Apr 2009 18:21:42 +0000 (18:21 +0000)]
Add more obsolete files, usb related.

15 years agoUse acl_alloc() and acl_free() instead of using uma(9) directly.
trasz [Sat, 18 Apr 2009 16:47:33 +0000 (16:47 +0000)]
Use acl_alloc() and acl_free() instead of using uma(9) directly.
This will make switching to malloc(9) easier; also, it would be
neccessary to add these routines if/when we implement variable-size
ACLs.

15 years ago- Remove assertion of topology lock remaining from 7.x gvinum. It is not needed,
lulf [Sat, 18 Apr 2009 16:36:27 +0000 (16:36 +0000)]
- Remove assertion of topology lock remaining from 7.x gvinum. It is not needed,
  as the renaming only changes internal gvinum names and will not alter the geom
  topology.
- The topology lock was not held when calling g_wither_geom after renaming.

15 years agoCleanups to prepare this code for wider use (likely merged into hostapd):
sam [Sat, 18 Apr 2009 16:14:03 +0000 (16:14 +0000)]
Cleanups to prepare this code for wider use (likely merged into hostapd):
o add (required) cmd line args to specify the set of ifnet's to monitor
  for WDS discovery msgs; "any" is a wildcard
o change the default script run on wds vap create to the "null script"
o auto-daemonize; add -f option to force foreground operation
o add -P option for integration with rc.d (implementation missing, tba)
o use syslog; default to log up to LOG_INFO, -t (terse) gives you up to
  LOG_ERR, and -v (verbose) gives you up to LOG_DEBUG
o scan for existing vaps on startup to recover existing state
o correct some types

15 years agoallow NANO_CFGDIR to be overridden
sam [Sat, 18 Apr 2009 15:59:09 +0000 (15:59 +0000)]
allow NANO_CFGDIR to be overridden

15 years agoRemove unused SESUNIT() macro from ses(4).
ed [Sat, 18 Apr 2009 07:39:11 +0000 (07:39 +0000)]
Remove unused SESUNIT() macro from ses(4).

15 years agoConvert mlx(4) and mly(4) to si_drv1 instead of dev2unit().
ed [Sat, 18 Apr 2009 07:36:38 +0000 (07:36 +0000)]
Convert mlx(4) and mly(4) to si_drv1 instead of dev2unit().

15 years agoRely on OpenSSL bits only if we're building a system with OpenSSL.
kientzle [Sat, 18 Apr 2009 06:06:47 +0000 (06:06 +0000)]
Rely on OpenSSL bits only if we're building a system with OpenSSL.
Also, adjust the MD5 calls to rely on libmd instead of libcrypto,
so we keep MD5 support even in the !OpenSSL case.

15 years agoMake -lcrypto usage dependent on whether or not we're building with OpenSSL.
kientzle [Sat, 18 Apr 2009 06:03:09 +0000 (06:03 +0000)]
Make -lcrypto usage dependent on whether or not we're building with OpenSSL.

15 years agoLibarchive is sprouting dependencies on libmd and libcrypto.
kientzle [Sat, 18 Apr 2009 06:01:55 +0000 (06:01 +0000)]
Libarchive is sprouting dependencies on libmd and libcrypto.
Because crunchgen drops any repeated library (keeping only the
first), the -lcrypto reference must be moved to after -larchive,
not merely duplicated.

I'm considering changing crunchgen's handling of duplicate
libraries, but that's a rather more delicate issue.

15 years agoMake sure that the data in the ROM with a valid signature isn't all
imp [Sat, 18 Apr 2009 04:45:02 +0000 (04:45 +0000)]
Make sure that the data in the ROM with a valid signature isn't all
0's.  At least one PC Card ASIC does this...

15 years agoAdd GVP NIC 2000P and New Media Livewire. Also New Media LanSurfer
imp [Sat, 18 Apr 2009 04:37:53 +0000 (04:37 +0000)]
Add GVP NIC 2000P and New Media Livewire.  Also New Media LanSurfer
doesn't have a function type of network, so add a quirk for that...

15 years agoThis turns out to be wrong...
imp [Sat, 18 Apr 2009 04:21:04 +0000 (04:21 +0000)]
This turns out to be wrong...

15 years agoCorrect and update the manpage to include
kientzle [Sat, 18 Apr 2009 03:47:29 +0000 (03:47 +0000)]
Correct and update the manpage to include
more details about some of the formats and
to briefly describe the mtree writing capability.

15 years agoEstablish the interrupt handler AFTER we successfully attach. We need
imp [Sat, 18 Apr 2009 03:10:28 +0000 (03:10 +0000)]
Establish the interrupt handler AFTER we successfully attach.  We need
to do this in case we have a shared interrupt that fires during the
attach process....

15 years agoRemove debug write accidentally left in.
imp [Sat, 18 Apr 2009 03:02:44 +0000 (03:02 +0000)]
Remove debug write accidentally left in.

15 years agoFix bug in event timeout handling
emax [Fri, 17 Apr 2009 23:33:30 +0000 (23:33 +0000)]
Fix bug in event timeout handling

Submitted by: mav
MFC after: 3 days

15 years agominor cleanup
ticso [Fri, 17 Apr 2009 22:45:57 +0000 (22:45 +0000)]
minor cleanup

15 years ago*** empty log message ***
kientzle [Fri, 17 Apr 2009 22:20:44 +0000 (22:20 +0000)]
*** empty log message ***

15 years agoSwitch ubtbcmfw(4) to use si_drv1 instead of storing the unit number.
ed [Fri, 17 Apr 2009 22:13:41 +0000 (22:13 +0000)]
Switch ubtbcmfw(4) to use si_drv1 instead of storing the unit number.

The unit number is still used to store the type of the device node.

Approved by: emax

15 years ago- Add a few more register defintions for the PCI express capability
jhb [Fri, 17 Apr 2009 19:07:44 +0000 (19:07 +0000)]
- Add a few more register defintions for the PCI express capability
  registers.
- Cleanup PCI-X capability printf to not leave a dangling "supports" for
  some PCI-X bridges.
- Display additional PCI express details including the negotiated and max
  link width and the actual and maximum supported max payload.

MFC after: 1 month

15 years agoclarify state of llentry that is passed back
kmacy [Fri, 17 Apr 2009 18:48:50 +0000 (18:48 +0000)]
clarify state of llentry that is passed back

15 years agoUndo private changes that should never have been committed.
kan [Fri, 17 Apr 2009 18:34:11 +0000 (18:34 +0000)]
Undo private changes that should never have been committed.

15 years agoMore fallout from negative dotdot caching. Negative entries should
kan [Fri, 17 Apr 2009 18:11:11 +0000 (18:11 +0000)]
More fallout from negative dotdot caching. Negative entries should
be removed from and reinserted to proper ncneg list.

Reported by:  pho
Submitted by: kib

15 years agoThe vlan code has not required the miibus code since 6.0 when
jhb [Fri, 17 Apr 2009 17:40:47 +0000 (17:40 +0000)]
The vlan code has not required the miibus code since 6.0 when
if_link_state_change() was added and the vlan link-state hook was moved
out of miibus and into net/if.c.

MFC after: 1 month

15 years agoDrain the driver tasks on the same taskqueue in which they were enqueued.
thompsa [Fri, 17 Apr 2009 16:07:13 +0000 (16:07 +0000)]
Drain the driver tasks on the same taskqueue in which they were enqueued.

15 years agoThe sr(4) driver is removed.
nyan [Fri, 17 Apr 2009 15:54:41 +0000 (15:54 +0000)]
The sr(4) driver is removed.

15 years agoThe ar(4), ray(4) and sr(4) drivers are removed.
nyan [Fri, 17 Apr 2009 15:49:37 +0000 (15:49 +0000)]
The ar(4), ray(4) and sr(4) drivers are removed.

15 years agoRevert r190943, since the problem in ports seems to be fixed now.
das [Fri, 17 Apr 2009 14:19:18 +0000 (14:19 +0000)]
Revert r190943, since the problem in ports seems to be fixed now.
It's amazing how a well-placed eyesore generates more motivation in a
day than email generates in three weeks.

15 years agoRestore bus DMA bounce pages to an offset of 0 when they are released by
jhb [Fri, 17 Apr 2009 13:22:18 +0000 (13:22 +0000)]
Restore bus DMA bounce pages to an offset of 0 when they are released by
a tag that has BUS_DMA_KEEP_PG_OFFSET set.  Otherwise the page could be
reused with a non-zero offset by a tag that doesn't have
BUS_DMA_KEEP_PG_OFFSET leading to data corruption.

Sleuthing by: avg
Reviewed by: scottl

15 years agoAdd an entry for the French macbook keyboard layout.
roberto [Fri, 17 Apr 2009 11:30:32 +0000 (11:30 +0000)]
Add an entry for the French macbook keyboard layout.

15 years agoRemove kue_fw.h, missed in previous IFF_NEEDSGIANT USB driver garbage
rwatson [Fri, 17 Apr 2009 09:48:20 +0000 (09:48 +0000)]
Remove kue_fw.h, missed in previous IFF_NEEDSGIANT USB driver garbage
collection.

15 years agoRemove legacy versions of USB network interface drivers relying on
rwatson [Fri, 17 Apr 2009 09:42:26 +0000 (09:42 +0000)]
Remove legacy versions of USB network interface drivers relying on
IFF_NEEDSGIANT, as that is no longer supported.

15 years agoChange Taiwan, Province of China to Taiwan, Republic of China
kevlo [Fri, 17 Apr 2009 08:01:18 +0000 (08:01 +0000)]
Change Taiwan, Province of China to Taiwan, Republic of China

15 years agoDisabling the crypto bits should quiet tinderbox while I
kientzle [Fri, 17 Apr 2009 07:28:49 +0000 (07:28 +0000)]
Disabling the crypto bits should quiet tinderbox while I
track down the library dependencies that are screwing up the /rescue build.

15 years agoMerge from libarchive.googlecode.com:
kientzle [Fri, 17 Apr 2009 04:04:57 +0000 (04:04 +0000)]
Merge from libarchive.googlecode.com:
 * Lots of new tests.
 * New -n / --numeric-uid-gid option
 * More sanity-checking of arguments
 * Various Windows portability improvements
 * Sync up version number to 2.7.0

15 years agoMerge remaining changes from libarchive.googlecode.com:
kientzle [Fri, 17 Apr 2009 03:45:15 +0000 (03:45 +0000)]
Merge remaining changes from libarchive.googlecode.com:
 * Add xz and lzma compression options
 * Rename --format-options to simply --options
 * Add --same-owner for GNU tar compat
 * Add -lmd and -lcrypto to fix link
 * Documentation

15 years agoSet options before opening the archive.
kientzle [Fri, 17 Apr 2009 03:40:40 +0000 (03:40 +0000)]
Set options before opening the archive.
Catch and report close-time errors.

15 years agoMinor portability improvement in calls to ctype.h macros.
kientzle [Fri, 17 Apr 2009 03:37:09 +0000 (03:37 +0000)]
Minor portability improvement in calls to ctype.h macros.

15 years agoMerge from libarchive.googlecode.com: Numerous Windows-specific build tweaks.
kientzle [Fri, 17 Apr 2009 03:36:07 +0000 (03:36 +0000)]
Merge from libarchive.googlecode.com: Numerous Windows-specific build tweaks.

15 years agoPublicize a handful of new functions and bump the version number
kientzle [Fri, 17 Apr 2009 01:07:37 +0000 (01:07 +0000)]
Publicize a handful of new functions and bump the version number
to indicate that this is synchronized with the recent libarchive 2.7.0
release.

15 years agoMerge lots of test suite updates from libarchive.googlecode.com.
kientzle [Fri, 17 Apr 2009 01:06:31 +0000 (01:06 +0000)]
Merge lots of test suite updates from libarchive.googlecode.com.

15 years agoFreeBSD has a lot of crypto functions used by the recent mtree writer updates.
kientzle [Fri, 17 Apr 2009 01:04:23 +0000 (01:04 +0000)]
FreeBSD has a lot of crypto functions used by the recent mtree writer updates.

15 years agoEnsure that the option setters return OK (option used) even
kientzle [Fri, 17 Apr 2009 01:03:52 +0000 (01:03 +0000)]
Ensure that the option setters return OK (option used) even
for options that don't change the list of keywords.

15 years agoFix a memory leak: Release the current list of /set keywords
kientzle [Fri, 17 Apr 2009 01:02:56 +0000 (01:02 +0000)]
Fix a memory leak:  Release the current list of /set keywords
even when we exit on an error.

15 years agoDocument the new read options interface and the new read_header2() call.
kientzle [Fri, 17 Apr 2009 01:02:12 +0000 (01:02 +0000)]
Document the new read options interface and the new read_header2() call.

15 years agoDynamically size the buffer we pass to getgrgid_r() and getpwuid_r().
kientzle [Fri, 17 Apr 2009 01:01:15 +0000 (01:01 +0000)]
Dynamically size the buffer we pass to getgrgid_r() and getpwuid_r().
Keep the buffer in the cache object so we don't have to keep doing this.

15 years agoDon't match an empty file on a read error.
kientzle [Fri, 17 Apr 2009 01:00:11 +0000 (01:00 +0000)]
Don't match an empty file on a read error.

15 years agoWhen pulling metadata from disk, lookup the user and group name at the same time.
kientzle [Fri, 17 Apr 2009 00:59:34 +0000 (00:59 +0000)]
When pulling metadata from disk, lookup the user and group name at the same time.

15 years agoLZW bugfix: when we hit end-of-file, return an invalid code.
kientzle [Fri, 17 Apr 2009 00:58:44 +0000 (00:58 +0000)]
LZW bugfix:  when we hit end-of-file, return an invalid code.

15 years agoMinor fix: some platforms require both inttypes.h and stdint.h.
kientzle [Fri, 17 Apr 2009 00:57:11 +0000 (00:57 +0000)]
Minor fix: some platforms require both inttypes.h and stdint.h.

15 years agoImplement command-line fallbacks for gzip and bzip2 decompression as well.
kientzle [Fri, 17 Apr 2009 00:55:52 +0000 (00:55 +0000)]
Implement command-line fallbacks for gzip and bzip2 decompression as well.
Not an issue for FreeBSD, since the base system has the necessary libraries.
Since all decompressors are always available now, we can unconditionally
enable them in archive_read_support_compression_all().

15 years agoMerge new xz/lzma support from libarchive.googlecode.com.
kientzle [Fri, 17 Apr 2009 00:54:35 +0000 (00:54 +0000)]
Merge new xz/lzma support from libarchive.googlecode.com.
Since FreeBSD doesn't have liblzma in the base system, the
read side will always fall back to the unxz/unlzma commands for now.
(Which will in turn fail if those commands are not currently
installed.)  The write side does not yet have a fallback, so
that will just fail.

15 years agoDon't use the open callback, which is deprecated (because it's
kientzle [Fri, 17 Apr 2009 00:50:00 +0000 (00:50 +0000)]
Don't use the open callback, which is deprecated (because it's
never necessary).  Also, simplify just a tad by delegating
to read_open_fd() when we know the file descriptor, instead
of duplicating that logic.

15 years agoAccept empty options, add a new read_next_header2() which is more
kientzle [Fri, 17 Apr 2009 00:47:16 +0000 (00:47 +0000)]
Accept empty options, add a new read_next_header2() which is more
efficient for some uses.

15 years agoProperly clone and free the recently-added "sourcepath" field.
kientzle [Fri, 17 Apr 2009 00:45:47 +0000 (00:45 +0000)]
Properly clone and free the recently-added "sourcepath" field.

15 years agoUse thread-safe getgrnam_r() and getpwnam_r(); dynamically size
kientzle [Fri, 17 Apr 2009 00:44:47 +0000 (00:44 +0000)]
Use thread-safe getgrnam_r() and getpwnam_r(); dynamically size
the buffer used by this.

15 years agoFix a minor memory leak.
kientzle [Fri, 17 Apr 2009 00:44:03 +0000 (00:44 +0000)]
Fix a minor memory leak.

15 years agoMerge from libarchive.googlecode.com: Numerous fixes to the
kientzle [Fri, 17 Apr 2009 00:42:45 +0000 (00:42 +0000)]
Merge from libarchive.googlecode.com:  Numerous fixes to the
write options handling, including documentation.

15 years agoMerge from libarchive.googlecode.com: If we're
kientzle [Fri, 17 Apr 2009 00:39:35 +0000 (00:39 +0000)]
Merge from libarchive.googlecode.com:  If we're
given an empty filename, just invoke write_open_fd()
instead of re-implementing the code to use stdout.

15 years agoPrevent atkbd(4) interrupt handler from calling keyboard callback function
emax [Fri, 17 Apr 2009 00:30:56 +0000 (00:30 +0000)]
Prevent atkbd(4) interrupt handler from calling keyboard callback function
when polled mode is enabled. This should help with duplicated/missing
characters problem at mountroot, geli, etc. prompts on multi CPU systems
while kbdmux(4) is enabled.

Tested by: Tobias Grosser <grosser -at- fim -dot- uni-passau -dot- de>
Tested by: Fabian Keil <freebsd-listen -at- fabiankeil -dot- de>
MFC after: 3 days

15 years agoOnly call ieee80211_start_all() if its a 80211 device.
thompsa [Thu, 16 Apr 2009 23:42:00 +0000 (23:42 +0000)]
Only call ieee80211_start_all() if its a 80211 device.

Submitted by: Paul B. Mahol

15 years agocall base if_qflush routine to flush if_snd
kmacy [Thu, 16 Apr 2009 23:08:02 +0000 (23:08 +0000)]
call base if_qflush routine to flush if_snd

15 years agoexport if_qflush for use by driver if_qflush routines
kmacy [Thu, 16 Apr 2009 23:05:10 +0000 (23:05 +0000)]
export if_qflush for use by driver if_qflush routines
only set ifp->if_{transmit, qflush} if not already set
KASSERT that neither or both are set