]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
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.

17 years agoMFp4: Use max_ncpus, which is used in other places in the code.
pjd [Sat, 14 Apr 2007 12:33:47 +0000 (12:33 +0000)]
MFp4: Use max_ncpus, which is used in other places in the code.

17 years agoMFp4: Add more debug, so we can see if zpool.cache was loaded or why it
pjd [Sat, 14 Apr 2007 12:23:03 +0000 (12:23 +0000)]
MFp4: Add more debug, so we can see if zpool.cache was loaded or why it
      wasn't loaded.

17 years agoMFp4: Allow to tune vfs.zfs.debug from loader.conf.
pjd [Sat, 14 Apr 2007 12:21:06 +0000 (12:21 +0000)]
MFp4: Allow to tune vfs.zfs.debug from loader.conf.

17 years agoMFp4: - Allow to tune number of spa_zio_* threads.
pjd [Sat, 14 Apr 2007 12:20:06 +0000 (12:20 +0000)]
MFp4: - Allow to tune number of spa_zio_* threads.
- Reduce default number of spa_zio_* threads to N*spa_zio_issue
  plus N*spa_zio_intr threads per ZIO type, where N is the number
  of CPUs.
- Put ZIO type number in thread's name.

17 years agoSome Linux applications (ping) pass a non-NULL msg_control argument to
rwatson [Sat, 14 Apr 2007 10:35:09 +0000 (10:35 +0000)]
Some Linux applications (ping) pass a non-NULL msg_control argument to
sendmsg() while using a 0-length msg_controllen.  This isn't allowed in
the FreeBSD system call ABI, so detect this case and set msg_control to
NULL.  This allows Linux ping to work.

Submitted by: rdivacky

17 years ago- Add new 'a' switch and runtime option that allows 'top' to display process
stas [Sat, 14 Apr 2007 10:16:52 +0000 (10:16 +0000)]
- Add new 'a' switch and runtime option that allows 'top' to display process
  titles extracted from argv vector instead of the real executable names.
  This is useful when you want to watch applications that set their status
  information via setproctitle(3).

Approved by: alfred
MFC after: 2 weeks

17 years ago- fix source address selection when picking an acceptable address
rrs [Sat, 14 Apr 2007 09:44:09 +0000 (09:44 +0000)]
- fix source address selection when picking an acceptable address
- name change of prefered -> preferred
- CMT fast recover code added.
- Comment fixes in CMT.
- We were not giving a reason of cant_start_asoc per socket api
  if we failed to get init/or/cookie to bring up an assoc. Change
  so we don't just give a generic "comm lost" but look at actual
  states of dying assoc.
- change "crc32" arguments to "crc32c" to silence strict/noisy
  compiler warnings when crc32() is also declared
- A few minor tweaks to get the portable stuff truely portable
  for sctp6_usrreq.c :-D
- one-2-one style vrf match problem.
- window recovery would leave chks marked for retran
  during window probes on the sent queue. This would then
  cause an out-of-order problem and assure that the flight
  size "problem" would occur.
- Solves a flight size logging issue that caused rwnd
  overruns, flight size off as well as false retransmissions.g
- Macroize the up and down of flight size.
- Fix a ECNE bug in its counting.
- The strict_sacks options was causing aborts when window probing
  was active, fix to make strict sacks a bit smarter about what
  the next unsent TSN is.
- Fixes a one-2-one wakeup bug found by Martin Kulas.
- If-defed out form, Andre's copy routines pending his
  commit of at least m_last().. need to adjust for 6.2 as
  well.. since m_last won't exist.
Reviewed by: gnn

17 years agoFix the build.
kientzle [Sat, 14 Apr 2007 08:42:50 +0000 (08:42 +0000)]
Fix the build.
N.B. 'ar' format support is broken right now, it's not
passing tests.  If I can't find the problem soon, I'll
back out the last commit.

17 years agoFixes from Joerg Sonnenberger, reviewed by Kai Wang.
kientzle [Sat, 14 Apr 2007 08:30:21 +0000 (08:30 +0000)]
Fixes from Joerg Sonnenberger, reviewed by Kai Wang.

17 years agoConventionally, tar archives have always included a trailing '/'
kientzle [Sat, 14 Apr 2007 08:20:31 +0000 (08:20 +0000)]
Conventionally, tar archives have always included a trailing '/'
for directories.  bsdtar used to add this, but that recently got
lost somehow.  So now I'm adding it back in libarchive.
The only odd part of doing this in libarchive:  Adding a directory to
a tar archive and then reading it back again can yield a different name.

Add a test case to exercise some boundary conditions with
tar filenames and ensure that trailing slashes are added to
dir names only as necessary.

Thanks to: Oliver Lehmann for bringing this regression to my attention.

17 years agoPortability: Don't use mkdtemp() when mkdir() will suffice.
kientzle [Sat, 14 Apr 2007 05:17:06 +0000 (05:17 +0000)]
Portability: Don't use mkdtemp() when mkdir() will suffice.
If we can't create the dir, just give up.

17 years agoMore portability improvements from Martin Koeppe:
kientzle [Sat, 14 Apr 2007 02:37:22 +0000 (02:37 +0000)]
More portability improvements from Martin Koeppe:
conditionally use utime() when utimes() is not available;
allow the most common wide-char functions to be replaced
when local alternatives are lacking.

17 years agoIn member interface detach event handler, do not attempt to free state
bms [Sat, 14 Apr 2007 01:01:46 +0000 (01:01 +0000)]
In member interface detach event handler, do not attempt to free state
which has already been freed by in_ifdetach(). With this cumulative change,
the removal of a member interface will not cause a panic in pfsync(4).

Requested by: yar
PR: 86848

17 years agoFix jails and jail-friendly file systems handling:
pjd [Fri, 13 Apr 2007 23:54:22 +0000 (23:54 +0000)]
Fix jails and jail-friendly file systems handling:
- We need to allow for PRIV_VFS_MOUNT_OWNER inside a jail.
- Move security checks to vfs_suser() and deny unmounting and updating
  for jailed root from different jails, etc.

OK'ed by: rwatson

17 years agoAlign -p output in TAB built columns suitable for /etc/fstab.
phk [Fri, 13 Apr 2007 21:30:47 +0000 (21:30 +0000)]
Align -p output in TAB built columns suitable for /etc/fstab.

17 years agoFix overflow, which was causing endless loops when 32bit machine had more
pjd [Fri, 13 Apr 2007 18:50:03 +0000 (18:50 +0000)]
Fix overflow, which was causing endless loops when 32bit machine had more
than 2GB of RAM. This was because our physmem is long and 'physmem*PAGESIZE'
can be negative for more than 2GB of memory.

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

It is not yet tested by Andrey, so there can be other problems, but this
was definiately a bug, so I'm committing a fix now.

17 years agoRemove the shutdown keyword. It just adds noise to the shutdown process.
des [Fri, 13 Apr 2007 18:46:35 +0000 (18:46 +0000)]
Remove the shutdown keyword.  It just adds noise to the shutdown process.

17 years agoo Extend the list of supported CDMA-2000 terminals.
maxim [Fri, 13 Apr 2007 18:15:07 +0000 (18:15 +0000)]
o Extend the list of supported CDMA-2000 terminals.

Submitted by: R.Mahmatkhanov
MFC after: 10 days

17 years agoPortability.
kientzle [Fri, 13 Apr 2007 16:08:23 +0000 (16:08 +0000)]
Portability.
Thanks to: Martin Koeppe for testing on Interix

17 years agoEliminate the misuse of PG_FRAME to truncate a virtual address to a virtual
alc [Fri, 13 Apr 2007 16:07:29 +0000 (16:07 +0000)]
Eliminate the misuse of PG_FRAME to truncate a virtual address to a virtual
page boundary.

Reviewed by: ru@

17 years agoPortability.
kientzle [Fri, 13 Apr 2007 16:07:25 +0000 (16:07 +0000)]
Portability.

17 years agoThe minimum size of an RFC3442 destination descriptor is five bytes, so
emaste [Fri, 13 Apr 2007 15:07:10 +0000 (15:07 +0000)]
The minimum size of an RFC3442 destination descriptor is five bytes, so
correct test to -ge 5.  Without this change an RFC3442 encoded default
route would be ignored.

Reported by: Cedric Jonas <cedric at decemplex dot net>

17 years agoFix the handling of IPv6 addresses for subject and process BSM audit
csjp [Fri, 13 Apr 2007 14:55:19 +0000 (14:55 +0000)]
Fix the handling of IPv6 addresses for subject and process BSM audit
tokens. Currently, we do not support the set{get}audit_addr(2) system
calls which allows processes like sshd to set extended or ip6
information for subject tokens.

The approach that was taken was to change the process audit state
slightly to use an extended terminal ID in the kernel. This allows
us to store both IPv4 IPv6 addresses. In the case that an IPv4 address
is in use, we convert the terminal ID from an struct auditinfo_addr to
a struct auditinfo.

If getaudit(2) is called when the subject is bound to an ip6 address,
we return E2BIG.

- Change the internal audit record to store an extended terminal ID
- Introduce ARG_TERMID_ADDR
- Change the kaudit <-> BSM conversion process so that we are using
  the appropriate subject token. If the address associated with the
  subject is IPv4, we use the standard subject32 token. If the subject
  has an IPv6 address associated with them, we use an extended subject32
  token.
- Fix a couple of endian issues where we do a couple of byte swaps when
  we shouldn't be. IP addresses are already in the correct byte order,
  so reading the ip6 address 4 bytes at a time and swapping them results
  in in-correct address data. It should be noted that the same issue was
  found in the openbsm library and it has been changed there too on the
  vendor branch
- Change A_GETPINFO to use the appropriate structures
- Implement A_GETPINFO_ADDR which basically does what A_GETPINFO does,
  but can also handle ip6 addresses
- Adjust get{set}audit(2) syscalls to convert the data
  auditinfo <-> auditinfo_addr
- Fully implement set{get}audit_addr(2)

NOTE: This adds the ability for processes to correctly set extended subject
information. The appropriate userspace utilities still need to be updated.

MFC after: 1 month
Reviewed by: rwatson
Obtained from: TrustedBSD

17 years agoPav and marcus co-mentored me for a few weeks while adamw was busy in school
ahze [Fri, 13 Apr 2007 14:29:38 +0000 (14:29 +0000)]
Pav and marcus co-mentored me for a few weeks while adamw was busy in school

17 years ago- Create an empty /etc/zfs/exports file when zfs_enable="YES" and we don't
pjd [Fri, 13 Apr 2007 11:02:06 +0000 (11:02 +0000)]
- Create an empty /etc/zfs/exports file when zfs_enable="YES" and we don't
  NFS-share anything. This way we can safely start mountd with
  /etc/zfs/exports and mountd won't complain.

  Pointed out by: ceri

- Move 'zfs volinit' before 'zfs mount -a' and 'zfs volfini' after
  'zfs unmount -a'.

17 years agomountd(8) was changed to only abort when all given exports files cannot be
pjd [Fri, 13 Apr 2007 10:29:25 +0000 (10:29 +0000)]
mountd(8) was changed to only abort when all given exports files cannot be
open, so we not longer has to check if /etc/zfs/exports exists.

17 years agoFatal error is only when cannot open any of the given exports files.
pjd [Fri, 13 Apr 2007 10:25:49 +0000 (10:25 +0000)]
Fatal error is only when cannot open any of the given exports files.

17 years agoFix vnodes starvation caused by DNLC (ZFS name cache):
pjd [Fri, 13 Apr 2007 08:42:01 +0000 (08:42 +0000)]
Fix vnodes starvation caused by DNLC (ZFS name cache):
- Tune number of namecache entires better (based on desiredvnodes).
- Handle vfs_lowvnodes event by releasing requested number of name cache
  entries, but no less than 5%.

Reported by: simokawa

17 years agoWhen we are running low on vnodes, there is currently no way to ask other
pjd [Fri, 13 Apr 2007 08:38:48 +0000 (08:38 +0000)]
When we are running low on vnodes, there is currently no way to ask other
subsystems to release some vnodes. Implement backpressure based on
vfs_lowvnodes event (similar to vm_lowmem for memory).

17 years agoo Look for a zfs(1) exports file only if it exists and is readable. If
mtm [Fri, 13 Apr 2007 06:42:25 +0000 (06:42 +0000)]
o Look for a zfs(1) exports file only if it exists and is readable. If
  we don't do this and the file doesn't exist mountd(8) will abort.
o The mountd(8) daemon creates a pidfile, so use it.

17 years agoInstall only types.h from sys/rpc/.
pjd [Fri, 13 Apr 2007 01:39:33 +0000 (01:39 +0000)]
Install only types.h from sys/rpc/.

Requested by: ache
Explained how by: ru

17 years agoMFp4: Synchronize with vendor (mostly 'zfs rename -r').
pjd [Thu, 12 Apr 2007 23:16:02 +0000 (23:16 +0000)]
MFp4: Synchronize with vendor (mostly 'zfs rename -r').

17 years agoMFp4: Bring back comments.
pjd [Thu, 12 Apr 2007 23:14:25 +0000 (23:14 +0000)]
MFp4: Bring back comments.

Requested by: jhb

17 years agoFound the right date for davidxu
julian [Thu, 12 Apr 2007 20:43:57 +0000 (20:43 +0000)]
Found the right date for davidxu

17 years agoAdd myself and some others according to my dusty memory.
julian [Thu, 12 Apr 2007 20:39:55 +0000 (20:39 +0000)]
Add myself and some others according to my dusty memory.
I may have other mentees that I have forgotten...

17 years agoAdd myself and glebius.
mav [Thu, 12 Apr 2007 19:14:09 +0000 (19:14 +0000)]
Add myself and glebius.

Approved by: glebius (mentor)

17 years agoIn .error and .warning, prefer command-line variables
ru [Thu, 12 Apr 2007 18:14:00 +0000 (18:14 +0000)]
In .error and .warning, prefer command-line variables
to globals, as per documentation.

Nudged by: Jeremie Le Hen

17 years ago-) Correct sdcount for a plex when removing or adding subdisks.
le [Thu, 12 Apr 2007 17:54:35 +0000 (17:54 +0000)]
-) Correct sdcount for a plex when removing or adding subdisks.
-) Set correct sizes for plexes and volumes a subdisk has been removed.

Submitted by:   Ulf Lilleengen <lulf_AT_freebsd.org>

17 years agoAvoid infinite loop if the device string given for a drive
le [Thu, 12 Apr 2007 17:40:44 +0000 (17:40 +0000)]
Avoid infinite loop if the device string given for a drive
only consists of "/".

Submitted by:  Ulf Lilleengen <lulf_AT_freebsd.org>

17 years agoMFamd64
alc [Thu, 12 Apr 2007 17:00:56 +0000 (17:00 +0000)]
MFamd64
 Define PGEX_RSV.

17 years agoAdd myself and my mentor, arved.
stefan [Thu, 12 Apr 2007 15:45:30 +0000 (15:45 +0000)]
Add myself and my mentor, arved.

17 years agoMerge
ache [Thu, 12 Apr 2007 14:45:25 +0000 (14:45 +0000)]
Merge