summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* This corrects a bug that manifested itself as identifying the lastmckusick2010-01-071-1/+1
| | | | | | | | | | cylinder group of a UFS1 filesystem as bad. The error was in the check and not in the cylinder group itself. So even though fsck fixed the cylinder group correctly, it was still endlessly reported as bad. PR: 141992 MFC after: 2 weeks Reported by: Dan Strick
* Space cleanup for revision 201689 committed separately for easier review.delphij2010-01-061-35/+35
| | | | | | | | This commit is purely space changes. Submitted by: Matt Reimer Sponsored by: VPOP Technologies, Inc. MFC after: 2 weeks
* Instead of assuming all vdevs are healthy, check the newest vdev labeldelphij2010-01-062-23/+78
| | | | | | | | | for each vdev's status. Booting from a degraded vdev should now be more robust. Submitted by: Matt Reimer <mattjreimer at gmail.com> Sponsored by: VPOP Technologies, Inc. MFC after: 2 weeks
* Correct a typo.bz2010-01-061-1/+1
| | | | | Submitted by: sn_ (sn_ gmx.net) on hackers@ MFC after: 3 days
* Teach the (gpt)zfsboot and zfsloader raidz code to use its bufferspjd2010-01-061-21/+29
| | | | | | | | | | | more efficiently. Before this patch, in the worst case memory use would increase exponentially on the number of drives in the raidz vdev. Submitted by: Matt Reimer <mattjreimer@gmail.com> Sponsored by: VPOP Technologies, Inc. Silence from: dfr
* Improve u3g device ejecting by providing additional methods for the ejectthompsa2010-01-064-221/+283
| | | | | | | command in the usb_msctest routines, as well as a general tidyup. This now properly ejects the ZTE MF636, Option Gi0322 and Novatel MC950D devices I have on my desk.
* scratch_size was incorrectly passed as language ID when retrieving the languagethompsa2010-01-061-2/+1
| | | | | | | ID table, this broke string retrieval on some devices. Submitted by: Hans Petter Selasky Reported by: Renato Botelho
* Use _pthread_once() rather than _once() for localtime() and gmtime(). Thesejhb2010-01-061-2/+2
| | | | | | | methods are only invoked when __isthreaded is true at which point it is safe to use _pthread_once() directly. MFC after: 1 week
* Increase default block size from 4K to 64K. It was reduces 6 yeard ago,mav2010-01-061-1/+1
| | | | | | | | | | when trees were big and FAST mode was enabled by default. So small block size doesn't benefits linear I/O operations in FAST and significantly slowdowns in ECONOMIC (default) mode. For single stream random I/Os so small block doesn't give much benefits, as access time is usually bigger then transfer time there. Same time it requires all heads to seek together for every single request, reducing performance on parallel load.
* Print leading zeros in the UFS2 FSID.gavin2010-01-061-1/+1
| | | | | | | PR: bin/142155 Submitted by: Efstratios Karatzas gpf.kira gmail.com Approved by: ed (mentor) MFC after: 2 weeks
* Change the way in which zero stripesize is handled. Instead of reportingmav2010-01-063-13/+10
| | | | | | | | | zero stripeoffset in such case (as if device has no stripes), report offset from the beginning of the media (as if device has single infinite stripe). This gives partitioning tools information, required to guess better partition alignment, in case if hardware doesn't report it's stripe size. For example, it should give disklabel info about odd offset made by fdisk.
* len must be int, not size_trpaulo2010-01-061-1/+1
| | | | Submitted by: novel
* When restoring files, use the mode for the mode.kientzle2010-01-061-2/+2
| | | | Thanks to: Jun Kuriyama for pointing this out
* Fix build: getopt() returns int so use an integer to get the value.delphij2010-01-061-2/+2
|
* - Move potentially offensive quotes I committed recently to fortunes-o.stas2010-01-052-14/+15
| | | | | | | - Reference date. - Be more clear on context. Suggested by: dougb
* Add net80211 media status reporting.rpaulo2010-01-051-8/+19
| | | | | PR: 142197 Submitted by: Paul <onemda at gmail.com>
* Be able to specify a certain date and/or time for which to calculateedwin2010-01-052-15/+90
| | | | | the phase of the moon. While not worlds best improvements, it will help calendar(1) later on.
* 1) Mark usage as dead2.dwmalone2010-01-051-17/+10
| | | | | | | | | 2) Deregister. 3) New style function definitions. Some WARNS still remain here - some printf format warning on some arches and the compiler can't see that a variable should always be initialised.
* Shuffle parens to avoid type-punning warning.dwmalone2010-01-051-1/+1
|
* 1) Make usage() as dead2 - it helps the compiler know that some varsdwmalone2010-01-051-7/+8
| | | | | | | are not used uninitialised. 2) Fix some constness problems. 3) Avoid a signedness problem by casting to size_t. If bn != stuff, than stuff-1-bn should be > 0.
* Move the PCI-specific logic of removing a cardbus device into ajhb2010-01-053-30/+42
| | | | | | | | | pci_delete_child() function called by the cardbus driver. The new function uses resource_list_unreserve() to release the BARs decoded by the device being removed. Reviewed by: imp Tested by: brooks
* New style function definitions.dwmalone2010-01-051-8/+11
| | | | | Fix constness problem - don't know that pstatus won't change a string with no whitespace.
* Change a char that is used as an index into an array into an unisgned char.dwmalone2010-01-052-2/+2
| | | | Add a missing new style function definition.
* Update acpi_ibm syctl nodes on resume.iwasaki2010-01-051-0/+30
| | | | | | | | This should fix some Thinkpad specific problems such as connecting to a headphone jack is not functional on X41. Reviewed by: takawata MFC after: 1 week
* Do not rely on behaviour undefined by ANSI C, use thunks to adaptkib2010-01-052-4/+33
| | | | | | | | | | | alphasort-like interface to the comparision function required by qsort() and qsort_r(). For opendir() thunk and alphasort(), comment on why we deviated from POSIX by using strcmp() instead of strcoll(). Requested and reviewed by: bde MFC after: 2 weeks
* Fix a double free().brueffer2010-01-051-1/+1
| | | | | | PR: 142339 Submitted by: Henning Petersen <henning.petersen@t-online.de> MFC after: 2 weeks
* Move scandir(3) and alphasort(3) into XSI namespace.kib2010-01-051-2/+4
| | | | | Noted and reviewed by: bde MFC after: 2 weeks
* Remove more duplicatesdougb2010-01-051-219/+14
| | | | Minor reformatting on a few
* For completeness, add -s argument, manually specifying array block size.mav2010-01-052-3/+13
|
* Add test code for POSIX semaphore implementation.davidxu2010-01-052-0/+110
|
* this file does not require ip_dummynet.hluigi2010-01-051-1/+0
|
* Move wakeup() out of mutex to reduce contention.mav2010-01-051-3/+3
|
* Move wakeup() out of mutex to reduce contention.mav2010-01-051-4/+4
|
* remove file thr_sem_new.c.davidxu2010-01-051-1/+0
|
* More cleanup, remove _libc prefix because libthr no longer has stubsdavidxu2010-01-052-39/+21
| | | | referencing them.
* Remove extra new semaphore stubs, because libc already has them, anddavidxu2010-01-052-110/+0
| | | | | | ld can find the newest version which is default. Poked by: kan@
* forgot to remove SYM_FBP10. ;-)davidxu2010-01-051-1/+0
|
* Remove unused macros.davidxu2010-01-051-5/+0
|
* Don't check has_waiters twice, inline some small functions.davidxu2010-01-051-8/+5
| | | | | | performance result on my machine: mutex Elapsed: 902115 us; per iteration: 90 ns. semaphore Elapsed: 958780 us; per iteration: 95 ns.
* Use umtx to implement process sharable semaphore, to make this work,davidxu2010-01-0518-402/+924
| | | | | | | | | | | | | | | | | | | | | | now type sema_t is a structure which can be put in a shared memory area, and multiple processes can operate it concurrently. User can either use mmap(MAP_SHARED) + sem_init(pshared=1) or use sem_open() to initialize a shared semaphore. Named semaphore uses file system and is located in /tmp directory, and its file name is prefixed with 'SEMD', so now it is chroot or jail friendly. In simplist cases, both for named and un-named semaphore, userland code does not have to enter kernel to reduce/increase semaphore's count. The semaphore is designed to be crash-safe, it means even if an application is crashed in the middle of operating semaphore, the semaphore state is still safely recovered by later use, there is no waiter counter maintained by userland code. The main semaphore code is in libc and libthr only has some necessary stubs, this makes it possible that a non-threaded application can use semaphore without linking to thread library. Old semaphore implementation is kept libc to maintain binary compatibility. The kernel ksem API is no longer used in the new implemenation. Discussed on: threads@
* Slightly optimize XOR calculation.mav2010-01-051-24/+31
|
* An existing incomplete ARP entry would expire a subsequentqingli2010-01-051-10/+16
| | | | | | | | | | | statically configured entry of the same host. This bug was due to the expiration timer was not cancelled when installing the static entry. Since there exist a potential race condition with respect to timer cancellation, simply check for the LLE_STATIC bit inside the expiration function instead of cancelling the active timer. MFC after: 5 days
* The IFA_RTSELF address flag marks a loopback route has been installedqingli2010-01-041-1/+1
| | | | | | | | | | | | for the interface address. This marker is necessary to properly support PPP types of links where multiple links can have the same local end IP address. The IFA_RTSELF flag bit maps to the RTF_HOST value, which was combined into the route flag bits during prefix installation in IPv6. This inclusion causing the prefix route to be unusable. This patch fixes this bug by excluding the IFA_RTSELF flag during route installation. MFC after: 5 days
* Add a missing word.brueffer2010-01-041-1/+1
| | | | | | PR: 140989 Submitted by: Lachlan Kang MFC after: 1 week
* Catch up with the VFS_VPTOFH(9) -> VOP_VPTOFH(9) repocopy that happenedbrueffer2010-01-043-6/+6
| | | | | | | | almost three years ago in r166794. PR: 140989 Submitted by: Lachlan Kang MFC after: 1 week
* Revert 200594. This file isn't intended for these sorts of things.imp2010-01-049-63/+0
|
* Make TIOCSTI work again.ed2010-01-044-13/+26
| | | | | | | | It looks like I didn't implement this when I imported MPSAFE TTY. Applications like mail(1) still use this. I think it's conceptually bad. Tested by: Pete French <petefrench ticketswitch com> MFC after: 2 weeks
* Various cleanup done in ipfw3-head branch including:luigi2010-01-0414-372/+260
| | | | | | | | | | | | | | | | | | | | | | | | | - use a uniform mtag format for all packets that exit and re-enter the firewall in the middle of a rulechain. On reentry, all tags containing reinject info are renamed to MTAG_IPFW_RULE so the processing is simpler. - make ipfw and dummynet use ip_len and ip_off in network format everywhere. Conversion is done only once instead of tracking the format in every place. - use a macro FREE_PKT to dispose of mbufs. This eases portability. On passing i also removed a few typos, staticise or localise variables, remove useless declarations and other minor things. Overall the code shrinks a bit and is hopefully more readable. I have tested functionality for all but ng_ipfw and if_bridge/if_ethersubr. For ng_ipfw i am actually waiting for feedback from glebius@ because we might have some small changes to make. For if_bridge and if_ethersubr feedback would be welcome (there are still some redundant parts in these two modules that I would like to remove, but first i need to check functionality).
* Add ability to search up the directory hierarchy for the system directory.obrien2010-01-0423-11/+246
| | | | | | | Do by specifying ".../" with '-m' or MAKESYSPATH (new) environment variable. Reviewed by: <sjg@NetBSD.org> Obtained from: NetBSD (+ embellishment by me, sent back to NetBSD)
* This should read #if __BSD_VISIBLE instead of #ifdef __BSD_VISIBLE.ed2010-01-041-1/+1
|
OpenPOWER on IntegriCloud