aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* pkill(1) first appeared in /usr/bin, but later it was moved to /binYaroslav Tykhiy2008-08-316-7/+3
| | | | | | | | | | for the convenience of rc.d. Now it has happily lived there for quite a while. So move the pkill(1) source files from usr.bin to bin, too. Approved by: gad Notes: svn path=/head/; revision=182543
* Decontextualize vfs_busy(), vfs_unbusy() and vfs_mount_alloc() functions.Attilio Rao2008-08-3113-70/+59
| | | | | | | | | Manpages are updated accordingly. Tested by: Diego Sardina <siarodx at gmail dot com> Notes: svn path=/head/; revision=182542
* In UDPv6, reduce scope of global udbinfo lock during append to lastRobert Watson2008-08-311-3/+1
| | | | | | | | | | matching socket by dropping it before udp6_append(), and remove duplicate unlocks of udbinfo and inpcb in sysctl return path. MFC after: 3 days Notes: svn path=/head/; revision=182537
* Update README to reflect removal of netatm/harp test parts some time ago.Robert Watson2008-08-311-5/+2
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=182531
* Disable processing of output data after disabling scroll lock by force.Ed Schouten2008-08-311-0/+9
| | | | | | | | | | | | | | | | The syscons code disabled scroll lock inside sc_cnputs() if it's going to print a system message. The code currently wants to process any TTY output data as well, but we cannot do this, because the TTY lock is a sleep mutex, while cnputs() picks up a spin mutex. Disable the code for now. It solves a panic when a console message is printed while scroll lock is enabled. One solution would be to initialize a task structure here. Reported by: Paul B. Mahol <onemda gmail com> Notes: svn path=/head/; revision=182527
* - Fix comment.Stanislav Sedov2008-08-311-3/+3
| | | | | | | | | | | - Set U/L bit of generated ethernet address to 1 to not clash with Atmel assigned addresses. Suggested by: yar Approved by: kib (mentor) Notes: svn path=/head/; revision=182524
* Enable EFI target.Rui Paulo2008-08-311-1/+3
| | | | | | | While there, make use of the DEFAULT_VECTOR variable. Notes: svn path=/head/; revision=182523
* Add more obsolete files.Antoine Brodin2008-08-311-0/+18
| | | | Notes: svn path=/head/; revision=182518
* New mtree writer, thanks to Joerg Sonnenberger.Tim Kientzle2008-08-315-0/+263
| | | | | | | Obtained from: Joerg Sonnenberger Notes: svn path=/head/; revision=182517
* Joerg Sonnenberger's improvements to the shar writer.Tim Kientzle2008-08-311-190/+255
| | | | | | | Significant performance improvements, better quoting of file names, etc. Notes: svn path=/head/; revision=182516
* Make libarchive_test a little smarter about trying to findTim Kientzle2008-08-311-11/+52
| | | | | | | | | its reference files when you don't specify -r. It now checks a couple of likely nearby directories to see if any of them have a particular known file. Notes: svn path=/head/; revision=182515
* Make uipaq's ucom callbacks easier to read while I'm hear looking forWarner Losh2008-08-311-8/+1
| | | | | | | other why this seems to be broken with my phone... Notes: svn path=/head/; revision=182507
* All the other routines returned EIO from the param routine. Return itWarner Losh2008-08-312-2/+2
| | | | | | | | | | | | from umodem and ufoma. With these changes, umodem kinda works for me now. It certainly gets past the "tip" bug that I found earlier where 115200 wasn't a valid baud rate. This was "broken" in the mpsafetty commit, but in reality, umodem was always broken. Notes: svn path=/head/; revision=182506
* Ioctls that aren't handled by this layer need to return ENOIOCTL, notWarner Losh2008-08-311-9/+7
| | | | | | | | ENOTTY. Also, make the ucom callback structure easier to read while I'm here. Notes: svn path=/head/; revision=182505
* Kill dead code. This has been a 'todo' item for a long time and theWarner Losh2008-08-312-68/+2
| | | | | | | | skelton ioctl handler has decayed beyond usefulness in both of these drivers. Notes: svn path=/head/; revision=182504
* Remove restore_intr(). We have intr_restore()...Marcel Moolenaar2008-08-311-7/+0
| | | | Notes: svn path=/head/; revision=182503
* Document the ulimit -p option in the sh(1) manual page.Ed Schouten2008-08-301-1/+3
| | | | | | | | | | When I imported the MPSAFE TTY code, I added the -p flag to sh(1)'s ulimit, but I forgot to document it in the appropriate manual page. Requested by: stefanf Notes: svn path=/head/; revision=182489
* Improve the entropy of the source port randomization for network addressChristian S.J. Peron2008-08-301-6/+6
| | | | | | | | | | | | translation. It turns out this is useful for applications which require source port randomization for security (i.e. dns servers). Discussed with: secteam Requested by: mlaier MFC after: 2 weeks Notes: svn path=/head/; revision=182488
* In db_show_mdpcpu(), print MD fields.Marcel Moolenaar2008-08-301-0/+4
| | | | Notes: svn path=/head/; revision=182487
* Whitespace fixes.Marcel Moolenaar2008-08-301-12/+12
| | | | Notes: svn path=/head/; revision=182486
* Call powerpc_sync() instead of using an asm statement.Marcel Moolenaar2008-08-301-1/+1
| | | | Notes: svn path=/head/; revision=182485
* Add powerpc_sync() as an inline function.Marcel Moolenaar2008-08-301-0/+7
| | | | Notes: svn path=/head/; revision=182484
* Don't clear PSL_RI. Disabling external interruptsMarcel Moolenaar2008-08-301-1/+1
| | | | | | | doesn't make exceptions unrecoverable. Notes: svn path=/head/; revision=182483
* opt_bus.h isn't needed here anymore. It never was really needed,Warner Losh2008-08-301-1/+1
| | | | | | | since usb has no business including it like it did... Notes: svn path=/head/; revision=182481
* opt_bus.h isn't needed here. It is supposed to be for subr_bus.c only.Warner Losh2008-08-302-4/+0
| | | | Notes: svn path=/head/; revision=182480
* opt_bus.h is supposed to be for subr_bus.c only. There's no need forWarner Losh2008-08-301-2/+0
| | | | | | | it in the usb code. Notes: svn path=/head/; revision=182479
* - Read ASI_{D,I}TLB_DATA_ACCESS_REG twice in order to work aroundMarius Strobl2008-08-301-21/+60
| | | | | | | | | | | | | | | | | | errata of USIII and beyond (USIII erratum #19, USIII+ erratum #1, USIIIi erratum #1). - Use the cheetah PA mask in {d,i}tlb_va_to_pa_sun4u() for USIII and beyond. This is done so that these functions will still mask the debug bits of spitfire-class CPUs once we increase TD_PA_BITS to match the number of bits used for the PA by cheetah-class CPUs. - Change {d,i}tlb_enter_sun4u() to also set TLB_CTX_KERNEL as the context of the mappings entered. This is more or less cosmetic as TLB_CTX_KERNEL is 0. - Now that we have to distinguish between different sun4u CPUs in the loader anyway, no longer do trial and error when reading the portid property. Notes: svn path=/head/; revision=182478
* - Try to look for MAC address in all SA registers, not only in theStanislav Sedov2008-08-301-16/+37
| | | | | | | | | | | | | | first one. U-boot, for example, uses the second register to store MAC.[1] - Use random MAC address if none configured instead of failing. Submitted by: Bjorn Konig <bkoenig@alpha-tierchen.de> [1] Reviewed by: imp Approved by: kib (mentor) MFC after: 1 week Notes: svn path=/head/; revision=182477
* - Style fix.Stanislav Sedov2008-08-301-1/+1
| | | | | | | | Approved by: kib (mentor) MFC after: 1 week Notes: svn path=/head/; revision=182476
* Reflect recent changes to the sysctl debug.witness.watch moving into aAttilio Rao2008-08-301-3/+4
| | | | | | | tri-state variable. Notes: svn path=/head/; revision=182475
* - Improve some witness_watch operability in code which does perform bothAttilio Rao2008-08-301-35/+45
| | | | | | | | | | | lock tracking and checks, doing just the former ones. - Fix a bug where sysctl utility was printing crazy values when setting a new value for debug.witness.watch [0] [0] Reported by: yongari Notes: svn path=/head/; revision=182473
* Fix some edge cases in the TTY queues:Ed Schouten2008-08-304-106/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | - In the current design, when a TTY decreases its baud rate, it tries to shrink the queues. This may not always be possible, because it will not free any blocks that are still filled with data. Change the TTY queues to store a `quota' value as well, which means it will not free any blocks when changing the baud rate, but when placing blocks back into the queue. When the amount of blocks exceeds the quota, they get freed. It also fixes some edge cases, where TIOCSETA during read()/ write()-calls could actually make the queue a tiny bit bigger than in normal cases. - Don't leak blocks of memory when calling TIOCSETA when the device driver abandons the TTY while allocating memory. - Create ttyoutq_init() and ttyinq_init() to initialize the queues, instead of initializing them by hand. The new TTY snoop driver also creates an outq, so it's good to have a proper interface to do this. Obtained from: //depot/projects/mpsafetty/... Notes: svn path=/head/; revision=182471
* When atime wasn't specified, it should get set == mtime.Tim Kientzle2008-08-301-2/+2
| | | | | | | This is much stronger than just asserting that it's not zero. Notes: svn path=/head/; revision=182470
* Don't return EINVAL when trying to unlock.Robert Noland2008-08-301-1/+6
| | | | | | | | | | | anholt thinks that he added this check as part of some regression testing, but it is failing at least some of the time. I don't want to remove it just yet. I added a bit of debugging to help identify the issue. Approved by: kib Notes: svn path=/head/; revision=182469
* We need to lock around driver unload now.Robert Noland2008-08-301-1/+4
| | | | | | | | | | The i915 driver installs it's register map at load time now. We can't remove the map during unload without holding the lock. Approved by: kib Notes: svn path=/head/; revision=182468
* Free the device lock around the call to drm_drawable_free_all()Robert Noland2008-08-301-0/+2
| | | | | | | | | This function manipulates a spin lock and we can't hold a mutex over it. Approved by: kib Notes: svn path=/head/; revision=182467
* Connect a forgotten test case to Makefile.Jung-uk Kim2008-08-291-1/+1
| | | | Notes: svn path=/head/; revision=182464
* Fix a bug whereby multicast packets that are looped back locallyGeorge V. Neville-Neil2008-08-291-1/+5
| | | | | | | | | | | | wind up with the incorrect checksum on the wire when transmitted via devices that do checksum offloading. PR: kern/119635 Reviewed by: rwatson MFC after: 5 days Notes: svn path=/head/; revision=182463
* Make bpf_maxinsns visible from ng_bpf.c.Jung-uk Kim2008-08-291-1/+1
| | | | | | | Pass me the pointyhat, please. Notes: svn path=/head/; revision=182462
* For chips with a broken DC_ISR_RX_STATE which f.e. never signalsMarius Strobl2008-08-292-5/+11
| | | | | | | | | | | | | | | | | stopped nor the waiting state and also no other means to check whether the receiver is idle (see also r163774), we have no choice than to call mii_tick(9) unconditionally even in the case of the DC_REDUCED_MII_POLL handling as far as the RX side is concerned. This isn't necessarily worse than checking whether RX is idle though because unlike as with TX we're racing with the hardware, which might receive packets any time while we poll the MII, anyway. Reported and tested by: Jacob Owens Reviewed by: yongari MFC after: 3 days Notes: svn path=/head/; revision=182461
* Add the ability to run /usr/sbin/crashinfo on a new core dump automaticallyJohn Baldwin2008-08-292-0/+5
| | | | | | | | | | during boot. Right now this is disabled by default, but it can be enabled by setting 'crashinfo_enable=YES' in rc.conf. MFC after: 2 weeks Notes: svn path=/head/; revision=182460
* Do not pass validatation level since all issues are fixed now.Jung-uk Kim2008-08-291-1/+1
| | | | Notes: svn path=/head/; revision=182459
* Merge local copy of bpf_validate() with bpf_filter.c.Jung-uk Kim2008-08-291-11/+14
| | | | Notes: svn path=/head/; revision=182457
* Fix the last missing parentheses for a return statement in bpf_filter.c.Jung-uk Kim2008-08-291-1/+1
| | | | Notes: svn path=/head/; revision=182456
* More convergence towards style(9).Jung-uk Kim2008-08-291-32/+27
| | | | Notes: svn path=/head/; revision=182455
* - Directly match code wherever possible instead of using macros.Jung-uk Kim2008-08-291-11/+14
| | | | | | | | | | | | | - Macrofy bitmap table lookup. Constify the table while I am here. - Add missing continue statements in the for loop. Functionally it should be the last remaining fix from: PR: kern/89752 MFC after: 1 month Notes: svn path=/head/; revision=182454
* By default backup geli metadata to a file. It is quite critical 512 bytes,Pawel Jakub Dawidek2008-08-2917-34/+233
| | | | | | | | | | | | | | | | | | | | | | | | | | once it is lost, all data is gone. Option '-B none' can by used to prevent backup. Option '-B path' can be used to backup metadata to a different file than the default, which is /var/backups/<prov>.eli. The 'geli init' command also prints backup file location and gives short procedure how to restore metadata. The 'geli setkey' command now warns that even after passphrase change or keys update there could be version of the master key encrypted with old keys/passphrase in the backup file. Add regression tests to verify that new functionality works as expected. Update other regression tests so they don't create backup files. Reviewed by: keramida, rink Dedicated to: a friend who lost 400GB of his live by accidentally overwritting geli metadata MFC after: 2 weeks Notes: svn path=/head/; revision=182452
* - Give algorithms recommendation.Pawel Jakub Dawidek2008-08-291-13/+15
| | | | | | | - Keep options in alphabetical order. Notes: svn path=/head/; revision=182451
* Ensure that the padding calcualtion doesn't return a negative value.Scott Long2008-08-291-1/+2
| | | | | | | | Submitted by: kib Approved by: jb Notes: svn path=/head/; revision=182448
* Make sure BPF program is not bigger than set maximum (net.bpf.maxinsns).Jung-uk Kim2008-08-291-1/+5
| | | | Notes: svn path=/head/; revision=182447