summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* - Add a 'show rman <rm>' DDB command to dump the resources in a resourcejhb2007-04-161-0/+50
| | | | | | manager similar to 'devinfo -u'. - Add a 'show allrman' DDB command that effectively does 'show rman' on all resource managers in the system.
* For the XPT_SASYNC_CB operation, only decouple the broadcast to the busscottl2007-04-161-86/+67
| | | | | and device lists instead of decoupling the whole operation. This avoids problems with SIMs going away.
* Drop the topology lock before calling the periph oninvalidate and dtorscottl2007-04-161-7/+5
| | | | vectors.
* Drop the periph/sim lock when calling disk_destroy().scottl2007-04-162-5/+3
|
* Destroy the devalias before destroying the dev.scottl2007-04-161-1/+1
|
* Merge OpenBSM 1.0 alpha 14 changes to src/sys/security/audit:rwatson2007-04-161-13/+184
| | | | | | | | - 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
* Update src/sys/bsm for OpenBSM 1.0 alpha 14 import.rwatson2007-04-164-7/+28
| | | | Add new audit event types.
* s/destory/destroy/ (except for the code in contrib/).pjd2007-04-163-3/+3
|
* Uncomment forgotten check. Without this check in-place, ZFS will panic onpjd2007-04-162-2/+2
| | | | | | | 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>
* PHYS_TO_VM_PAGE requires explicit vm_page.h include on sparc64kmacy2007-04-151-0/+1
|
* Remove unused variable tcbinfo_mtx.rwatson2007-04-152-2/+0
|
* Avoid "unused variable" warning when building without PSEUDOFS_TRACE.des2007-04-151-0/+1
|
* Use %j and args cast to uintmax_t to print bus_addr_t && length args.mjacob2007-04-151-2/+2
|
* Add an entry for AUT_ZONENAME and the prototype for the au_to_zonename()csjp2007-04-151-0/+2
| | | | | function that will be implemented shortly. This is being done for the openbsm import.
* Make pseudofs (and consequently procfs, linprocfs and linsysfs) MPSAFE.des2007-04-156-340/+553
|
* Instead of stating GIANT_REQUIRED, just acquire and release Giant wheredes2007-04-151-2/+5
| | | | | needed. This does not make a difference now, but will when procfs is marked MPSAFE.
* Whitespace cleanup.des2007-04-151-16/+18
|
* In nfsrv_rcv(), don't reacquire the nfs server lock until afterrwatson2007-04-151-1/+1
| | | | | | | nfs_realign() has been called, as it may sleep waiting on memory allocation. Reported by: simon
* Add pmap includes needed by i386kmacy2007-04-151-0/+3
|
* Fix the same bug as in procfs_doproc{,db}regs(): check that uio_offset isdes2007-04-151-1/+3
| | | | | | 0 upon entry, and don't reset it before returning. MFC after: 3 weeks
* Don't reset uio_offset to 0 before returning. Instead, refuse to servicedes2007-04-152-3/+7
| | | | | | | 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
* Fix stupid syntax error - Pointy hat to me :-(rrs2007-04-151-7/+7
|
* Add macros to assert that the process is / isn't held in memory.des2007-04-151-0/+6
| | | | MFC after: 3 weeks
* - Add more comments to sctps_stats struture in sctp_uio.hrrs2007-04-155-266/+293
| | | | | | | | | | | | | | | | - 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).
* MFp4: Start DNLC after desiredvnodes variable is initialized.pjd2007-04-152-4/+4
| | | | | | | Before this change if zfs.ko was loaded by the loader, DNLC was automatically disabled. Reported by: Zephiris <zephiris@gmail.com>
* Remove Giant from CAM. Drivers (SIMs) now register a mutex that CAM willscottl2007-04-1551-995/+1275
| | | | | | | | | | | 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.
* back out option to disable packet zonekmacy2007-04-151-6/+0
| | | | Requested by: sam
* suck in more of busdma to enable more efficient mappingskmacy2007-04-151-58/+164
| | | | kill redundant INVARIANTS check
* Add sysctl for disabling/enabling mbuf chain collapsingkmacy2007-04-152-11/+8
| | | | remove map creation before calling bus_dmamap_load_mvec_sg
* Implement ZERO_COPY_SOCKETS check in a way that doesn't make LINT unhappykmacy2007-04-151-5/+6
|
* Fix RAID-Z resilvering.pjd2007-04-142-4/+32
| | | | Obtained from: OpenSolaris
* Add support for mbuf iovec in the TX pathkmacy2007-04-142-40/+87
|
* add reference count pointer to mbuf ioveckmacy2007-04-142-161/+381
| | | | | | | | 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
* hide static declarationkmacy2007-04-141-2/+4
| | | | remove extra white space
* remove now invalid check from m_sanitykmacy2007-04-141-10/+5
| | | | panic on m_sanity check failure with INVARIANTS
* Add option for disabling allocation from the packet zonekmacy2007-04-142-0/+5
|
* pad out m_hdr to make pkthdr word-alignedkmacy2007-04-141-1/+8
| | | | | | shuffle pkthdr.len so that pkthdr.header is aligned without compiler added padding Reviewed by: rwatson, andre, sam
* Fix a typeo - unbreak the build.mlaier2007-04-141-1/+1
|
* o Add bsm and security to a list of cscope dirs.maxim2007-04-141-3/+3
|
* MFp4: Hmm, it seems to work now.pjd2007-04-142-16/+2
|
* Further pseudofs improvements:des2007-04-146-62/+59
| | | | | | | | | | | | | | | | | | | | | | | | | 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().
* MFp4: Use max_ncpus, which is used in other places in the code.pjd2007-04-142-2/+2
|
* MFp4: Add more debug, so we can see if zpool.cache was loaded or why itpjd2007-04-142-6/+22
| | | | wasn't loaded.
* MFp4: Allow to tune vfs.zfs.debug from loader.conf.pjd2007-04-142-0/+2
|
* MFp4: - Allow to tune number of spa_zio_* threads.pjd2007-04-142-14/+34
| | | | | | | - 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.
* Some Linux applications (ping) pass a non-NULL msg_control argument torwatson2007-04-141-0/+10
| | | | | | | | 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
* - fix source address selection when picking an acceptable addressrrs2007-04-1413-432/+511
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* In member interface detach event handler, do not attempt to free statebms2007-04-141-1/+9
| | | | | | | | 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
* Fix jails and jail-friendly file systems handling:pjd2007-04-133-5/+25
| | | | | | | | - 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
* Fix overflow, which was causing endless loops when 32bit machine had morepjd2007-04-134-6/+6
| | | | | | | | | | 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.
OpenPOWER on IntegriCloud