summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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).
* Committing regression tests for all implemented nsswitch databases.bushman2007-04-1520-0/+5390
| | | | | | | Detailed description and instructions are in the README file. This work had been basically done during GSoC 2006. Approved by: brooks (mentor)
* 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
|
* Properly cleanup the UID/GID lookup data.kientzle2007-04-151-0/+4
|
* Don't free a NULL pointer.kientzle2007-04-151-1/+2
|
* Clean up a lot of memory leaks in the libarchive test harness.kientzle2007-04-1512-0/+29
|
* Thanks to Colin for catching my mixup. The original problem wasn'tkientzle2007-04-151-3/+8
| | | | suppressing the second error, it was failing to address the first.
* Consolidate numeric limit macros in one place; include themkientzle2007-04-156-49/+44
| | | | only on platforms that need them. FreeBSD doesn't.
* Force commit to actually document what was changed:pjd2007-04-140-0/+0
| | | | | | | | | 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
* Pass through error message if any operation fails, not just the last one.kientzle2007-04-141-1/+1
|
* Overhaul of 'ar' support:kientzle2007-04-147-228/+235
| | | | | | | | | | | | | | | | | | | * 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.
* Invoke utime(2) properly. (It's only used on platformskientzle2007-04-141-2/+2
| | | | that lack utimes(2).)
* 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
|
* Fix the build by temporarily disabling 'ar' support untilkientzle2007-04-141-1/+0
| | | | I can clean it up.
* o Add bsm and security to a list of cscope dirs.maxim2007-04-141-3/+3
|
* Include a note about recompiling ports which use the base libmilter.gshapiro2007-04-141-0/+5
| | | | Submitted by: Matthew Seaman
* o IFNAMSIZ includes a terminating null byte.maxim2007-04-141-1/+1
| | | | | Submitted by: rdivacky MFC after: 1 week
* New (but slightly overdue) release notes: snd_envy24ht(4),bmah2007-04-141-0/+6
| | | | snd_spicds(4).
* MFp4: Hmm, it seems to work now.pjd2007-04-142-16/+2
|
* In FreeBSD,simokawa2007-04-144-4/+12
| | | | | | | - cv_timedwait() takes delta instead of absolute time, - we need ioctl() for mediasize. Reviewed by: pjd
* Use proper type cast for ctype macroache2007-04-141-1/+1
|
* 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().
* Elexol USB MOD1 is supported by the uftdi driver.blackend2007-04-141-0/+2
|
* Cleanup sysconf(3) a bit. sysconf(3) assumes in some places it operatespjd2007-04-141-21/+18
| | | | | | | | | | 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.
* Add ports-net-im, ports-net-p2p and ports-ports-mgmt collections.ru2007-04-141-0/+3
|
* Add src-cddl and src-rescue.ru2007-04-143-0/+6
|
* 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
* - Add new 'a' switch and runtime option that allows 'top' to display processstas2007-04-144-9/+98
| | | | | | | | | 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
* - 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
* Fix the build.kientzle2007-04-142-2/+2
| | | | | | 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.
* Fixes from Joerg Sonnenberger, reviewed by Kai Wang.kientzle2007-04-141-49/+81
|
OpenPOWER on IntegriCloud