summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove getobjformat() from libc's symbol map. It probably should have beenpeter2007-01-251-1/+0
| | | | in the private area anyway. Nothing in FreeBSD uses it any more anyway.
* Remove more a.out strays, as threatened in 2002.peter2007-01-251-39/+0
|
* Retire objformat(1) as threatened in 2002.peter2007-01-254-107/+0
| | | | Laughed-at-by: kris
* Retire more remnants of a.out support, as threatened in 2002.peter2007-01-253-182/+2
| | | | Laughed-at-by: kris
* - Create ng_ppp_bypass() function, that prepares a packetglebius2007-01-251-30/+66
| | | | | | | | | | | | | | with bypass header, to send it out to userland. - Use ng_ppp_bypass() in ng_ppp_proto_recv(). - Use ng_ppp_bypass() in ng_ppp_comp_recv() and in ng_ppp_crypt_recv() if compression or encryption is disabled, respectively. - Any LCP packet goes directly to ng_ppp_bypass(), instead of passing through PPP stack. - Any non-LCP packet on disabled link is discarded. This is behavior defined in RFC. Submitted by: Alexander Motin <mav alkar.net>
* Add "server mode" to rfcomm_sppd(1).emax2007-01-252-40/+153
| | | | | Submitted by: Dave Eckhardt, bms Tested by: Dave Eckhardt, Eric Anderson, bms
* MFp4: - When new object is created, it's group ID can be set to process'pjd2007-01-253-7/+39
| | | | | | effective group ID or to group ID of its parent directory. - Add some comments from POSIX. - Verify that after successful O_TRUNC open, size is equal to 0.
* MFp4: When user is not a member of the group which owns a file, even ifpjd2007-01-251-2/+2
| | | | | | he is the file's owner, he can't set set-gid bit. POSIX requires to return 0 and clear the bit, but FreeBSD returns EPERM for UFS in such case. For now do the same in ZFS.
* Bump .Dd.mpp2007-01-251-1/+1
|
* - Get rid of the unused DIDRUN flag. This was really only present tojeff2007-01-251-21/+28
| | | | | | | | | | | | support sched_4bsd. - Rename the KTR level for non schedgraph parsed events. They take event space from things we'd like to graph. - Reset our slice value after we sleep. The slice is simply there to prevent starvation among equal priorities. A thread which had almost exhausted it's slice and then slept doesn't need to be rescheduled a tick after it wakes up. - Set the maximum slice value to a more conservative 100ms now that it is more accurately enforced.
* Make it possible that carpdetach() unlocks on return. Then, inglebius2007-01-251-8/+7
| | | | | | | carp_clone_destroy() we are on a safe side, we don't need to unlock the cif, that can me already non-existent at this point. Reported by: Anton Yuzhaninov <citrin rambler-co.ru>
* Whoops- #ifdef problem caused uninitialized transport. Not horriblymjacob2007-01-251-1/+1
| | | | a problem, but caused annoying messages.
* Spacing.glebius2007-01-251-5/+5
|
* The TCP checksum offload handling in the 8111B/8168B and 8101E PCIe canwpaul2007-01-251-1/+6
| | | | | | | | | | | | | | | apparently be confused by short TCP segments that have been manually padded to the minimum ethernet frame size. The driver does short frame padding in software as a workaround for a bug in the 8169 PCI devices that causes short IP fragments to be corrupted due to an apparent conflict between the hardware autopadding and hardware IP checksumming. To fix this, we avoid software padding for short TCP segments, since the hardware seems to autopad and checksum these correctly (even the older 8169 NICs get these right). Short UDP packets appear to be handled correctly in all cases. This should work around the IP header checksum bug in the 8169 while not tripping the TCP checksum bug in the 8111B/8168B and 8101E.
* Rename some functions and variables from nfs_* to nfs4_* to avoidbde2007-01-251-13/+13
| | | | | | | | | | | | | collisions with nfsclient's names. Even static names should have a unique prefix so that they can be debugged easily. Hide the unused colliding variable nfsv3_commit_on_close in "#if 0" together with other unused sysctl variables. Duplicating the nfs sysctl under nfs4 is probably just a bug. Fix some nearby style bugs. Remove duplicate $FreeBSD$.
* Rename some functions and variables (mainly vfsops entry points) frombde2007-01-251-37/+32
| | | | | | | | | | | | | | | nfs_* to nfs4_* to avoid collisions with nfsclient's names. Even static names should have a unique prefix so that they can be debugged easily. Most of the renamed functions can probably be shared. nfs4_cmount() and nfs4_sync() are identical to the nfs_* versions, and all the others except nfs4_vfsops() seem to be idendentical except for style bugs, missing support for mountroot, and bugs. Fix some nearby style bugs. Remove duplicate $FreeBSD$.
* Unstaticize nfs_iosize() in nfsclient and use it in nfs4client insteadbde2007-01-253-25/+7
| | | | | | | | | | | of duplicating it except for larger style bugs in the copy. Fix some nearby style bugs (including a harmless type mismatch) in and near the remaining copy. This is part of fixing collisions of the 2 nfs*client's names. Even static names should have a unique prefixes so that they can be debugged easily.
* Add a BUGS section that shows that ids that appear to bempp2007-01-251-0/+12
| | | | | | | | negative are now ignored by the quota system and that extremely large ids may make quotacheck run for a very long time. Also mention that "options QUOTA" is required for the kernel to provide quota support.
* When the following conditions are meet:pjd2007-01-251-1/+13
| | | | | | | | | | | | | | | | - First configured key is based only on keyfile (no passphrase). - Device is attached. - User changes first key (setkey) from keyfile to passphrase and doesn't specify number of iterations (with -i option). ...geli(8) won't store calculated number of iterations in metadata. This result in device beeing unaccesable after detach. One can recover from this situation by guessing number of iterations generated, storing it in metadata and trying to attach device. Recovery procedure isn't nice, but one's data is not lost. Reported by: Thomas Nickl <T.Nickl@gmx.net> MFC after: 1 week
* Implement gctl_change_param() function, which changes value of existingpjd2007-01-252-0/+28
| | | | | | parameter. MFC after: 1 week
* Try to avoid a possible infinite loop when parsing an invalid kernel dump file.rodrigc2007-01-251-2/+7
| | | | | | | PR: 108229 Submitted by: Jessica Han <jessicah juniper net> Reviewed by: marcel MFC after: 1 week
* Fix for problems that occur when all mbuf clusters migrate to the mbuf packetmohans2007-01-254-2/+26
| | | | | | | | | zone. Cluster allocations fail when this happens. Also processes that may have blocked on cluster allocations will never be woken up. Thanks to rwatson for an overview of the issue and pointers to the mbuma paper and his tool to dump out UMA zones. Reviewed by: andre@
* Display the name of the quota data file in verbose mode.mpp2007-01-241-2/+2
|
* Fix for a bug where only one process (of multiple) blocked onmohans2007-01-241-2/+7
| | | | | | | | | | maxpages on a zone is woken up, with the rest never being woken up as a result of the ZFLAG_FULL flag being cleared. Wakeup all such blocked procsses instead. This change introduces a thundering herd, but since this should be relatively infrequent, optimizing this (by introducing a count of blocked processes, for example) may be premature. Reviewd by: ups@
* Update birth entry for Warren Zevon with his birthplace, and add andougb2007-01-241-1/+2
| | | | entry for his death. Both per Wikipedia.
* - Add a horrible bit of code to detect tsc differences between processors.jeff2007-01-241-28/+112
| | | | | | | | | | | | | | | | | | | This only works if there is no significant drift and all processors are running at the same frequency. Fortunately, schedgraph traces on MP machines tend to cover less than a second so drift shouldn't be an issue. - KTRFile::synchstamp() iterates once over the whole list to determine the lowest tsc value and syncs adjusts all other values to match. We assume that the first tick recorded on all cpus happened at the same instant to start with. - KTRFile::monostamp() iterates again over the whole file and checks for a cpu agnostic monotonically increasing clock. If the time ever goes backwards the cpu responsible is adjusted further to fit. This will make the possible incorrect delta between cpus as small as the shortest time between two events. This time can be fairly large due to sched_lock essentially protecting all events. - KTRFile::checkstamp() now returns an adjusted timestamp. - StateEvent::draw() detects states that occur out of order in time and draws them as 0 pixels after printing a warning.
* - With a sleep time over 2097 seconds hzticks and slptime could end upjeff2007-01-241-5/+6
| | | | | | negative. Use unsigned integers for sleep and run time so this doesn't disturb sched_interact_score(). This should fix the invalid interactive priority panics reported by several users.
* Fixes the MSG_PEEK for sctp_generic_recvmsg() the msg_flagsrrs2007-01-241-2/+10
| | | | | | were not being copied in properly so PEEK and any other msg_flags input operation were not being performed right. Approved by: gnn
* Bump .Dd for r1.313.ceri2007-01-241-1/+1
|
* Document LD_UTRACE.jhb2007-01-231-2/+7
| | | | MFC after: 3 days
* - Print clock information so we know if something is not reported correctlyjeff2007-01-231-7/+7
| | | | | | | | | | from the tsc. - Set skipnext = 1 for yielding and preempted events so we don't show the event that adds us back to the run queue. It used to be 2 so we would skip the ksegrp run queue addition and the system run queue addition but the ksegrp run queue has gone away. - Don't display down to nanosecond resolution for scheduling events right now. This can sometimes cause a division by zero.
* Document new quota knobs.mpp2007-01-231-3/+51
|
* o introduce a flags 'errata' for HW bugs onto the softc.bruno2007-01-231-42/+97
| | | | | | | | | | | | | o remove errata_a0 and introduce the corresponding flags into 'errata'. o introduce a new errata for K8, namely some platform might set the PENDING_BIT but aren't able to unset it, also don't loop forever waiting PENDING_BIT being cleared. o try to introduce a workaround for the PENDING_BIT stuck problem, o support now half multipliers for K8. Tested by: Abdullah Al-Marrie Approved by: njl
* Use the more specific 'EM732X' designation rather than * to disable syncimp2007-01-231-1/+1
| | | | cache commands, per request from njl@.
* Cylinder group bitmaps and blocks containing inode for a snapshotkib2007-01-2310-42/+189
| | | | | | | | | | | | | | | | | | | | | file are after snaplock, while other ffs device buffers are before snaplock in global lock order. By itself, this could cause deadlock when bdwrite() tries to flush dirty buffers on snapshotted ffs. If, during the flush, COW activity for snapshot needs to allocate block and ffs_alloccg() selects the cylinder group that is being written by bdwrite(), then kernel would panic due to recursive buffer lock acquision. Avoid dealing with buffers in bdwrite() that are from other side of snaplock divisor in the lock order then the buffer being written. Add new BOP, bop_bdwrite(), to do dirty buffer flushing for same vnode in the bdwrite(). Default implementation, bufbdflush(), refactors the code from bdwrite(). For ffs device buffers, specialized implementation is used. Reviewed by: tegge, jeff, Russell Cattelan (cattelan xfs org, xfs changes) Tested by: Peter Holm X-MFC after: 3 weeks (if ever: it changes ABI)
* Remove mount_nfs4 from SUBDIR list. The mount_nfs Makefilerodrigc2007-01-231-1/+0
| | | | links mount_nfs to mount_nfs4 now.
* Link mount_nfs -> mount_nfs4, and mount_nfs.8 -> mount_nfs4.8.rodrigc2007-01-231-0/+3
| | | | Suggested by: rees
* - Catch up to setrunqueue/choosethread/etc. api changes.jeff2007-01-231-39/+90
| | | | | | | | | | - Define our own maybe_preempt() as sched_preempt(). We want to be able to preempt idlethread in all cases. - Define our idlethread to require preemption to exit. - Get the cpu estimation tick from sched_tick() so we don't have to worry about errors from a sampling interval that differs from the time domain. This was the source of sched_priority prints/panics and inaccurate pctcpu display in top.
* Oops, pc98 is independent of i386 for clock.c and machdep.c but notbde2007-01-233-25/+24
| | | | | | | | | | | | | | | | | | | | | | | for clock.h, so changing th i386 clock.h broke it. MFi386 (not tested): Cleaned up declaration and initialization of clock_lock. It is only used by clock code, so don't export it to the world for machdep.c to initialize. There is a minor problem initializing it before it is used, since although clock initialization is split up so that parts of it can be done early, the first part was never done early enough to actually work. Split it up a bit more and do the first part as late as possible to document the necessary order. The functions that implement the split are still bogusly exported. Cleaned up initialization of the i8254 clock hardware using the new split. Actually initialize it early enough, and don't work around it not being initialized in DELAY() when DELAY() is called early for initialization of some console drivers. This unfortunately moves a little more code before the early debugger breakpoint so that it is harder to debug. The ordering of console and related initialization is delicate because we want to do as little as possible before the breakpoint, but must initialize a console.
* - Remove setrunqueue and replace it with direct calls to sched_add().jeff2007-01-2318-208/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | setrunqueue() was mostly empty. The few asserts and thread state setting were moved to the individual schedulers. sched_add() was chosen to displace it for naming consistency reasons. - Remove adjustrunqueue, it was 4 lines of code that was ifdef'd to be different on all three schedulers where it was only called in one place each. - Remove the long ifdef'd out remrunqueue code. - Remove the now redundant ts_state. Inspect the thread state directly. - Don't set TSF_* flags from kern_switch.c, we were only doing this to support a feature in one scheduler. - Change sched_choose() to return a thread rather than a td_sched. Also, rely on the schedulers to return the idlethread. This simplifies the logic in choosethread(). Aside from the run queue links kern_switch.c mostly does not care about the contents of td_sched. Discussed with: julian - Move the idle thread loop into the per scheduler area. ULE wants to do something different from the other schedulers. Suggested by: jhb Tested on: x86/amd64 sched_{4BSD, ULE, CORE}.
* - Allow the schedulers to IPI_PREEMPT idlethread. This puts the decisionjeff2007-01-232-18/+12
| | | | for this behavior on the initiator side.
* Cleaned up declaration and initialization of clock_lock. It is onlybde2007-01-237-43/+46
| | | | | | | | | | | | | | | | | | | | used by clock code, so don't export it to the world for machdep.c to initialize. There is a minor problem initializing it before it is used, since although clock initialization is split up so that parts of it can be done early, the first part was never done early enough to actually work. Split it up a bit more and do the first part as late as possible to document the necessary order. The functions that implement the split are still bogusly exported. Cleaned up initialization of the i8254 clock hardware using the new split. Actually initialize it early enough, and don't work around it not being initialized in DELAY() when DELAY() is called early for initialization of some console drivers. This unfortunately moves a little more code before the early debugger breakpoint so that it is harder to debug. The ordering of console and related initialization is delicate because we want to do as little as possible before the breakpoint, but must initialize a console.
* Add missing function trace for debug prints.njl2007-01-231-0/+2
|
* Merge mount_nfs4.c and mount_nfs.c into one program.rodrigc2007-01-232-7/+248
| | | | | | | | | | | If argv[0] == "mount_nfs4", then default to mounting NFSv4, otherwise if argv[0] == "mount_nfs", default to the old mount_nfs behavior. - Add a -4 option. - Add the University of Michigan copyright from mount_nfs4.c, for the code merged from mount_nfs4.c. Reviewed by: rees
* When exiting vfs_export(), delete the "export" option fromrodrigc2007-01-231-11/+31
| | | | | | | | | | | | | | | | | | the mount options list with vfs_deleteopt(). At this point, the export information is saved in mp->mnt_export, so we can delete the "export" mount option from mp->mnt_optnew and mp->mnt_opt. This fixes read-write/read-only update mounts (mount -u -o rw, mount -u -o ro) of NFS exported directories. For some reason, I could only reproduce the problem with a configuration supplied by Andre: - "options QUOTA" enabled in kernel config - "/ -maproot=root 10.0.1.105" in /etc/exports Reported by: kris, Andre Guibert de Bruet <andy siliconlandmark com>, Andrzej Tobola <ato iem pw edu pl> Tested by: Andre Guibert de Bruet
* Remove a PCI ID entry that conflicts with the AMR driver.scottl2007-01-231-1/+0
|
* Use fseeko to seek in the file, instead of fseek to prevent seekmpp2007-01-231-2/+2
| | | | errors for extremely large uids (e.g. in the billions range).
* Make sure that unknown uids/gids that now have non-zero usage andmpp2007-01-231-7/+24
| | | | | had a previously recorded usage of zero are correctly displayed in verbose mode. Generalize the print routine a little too.
* It seems that enabling Tx and Rx before setting descriptor DMAyongari2007-01-231-15/+17
| | | | | | | | | | | | | addresses shall access invalid descriptor DMA addresses on PCIe hardwares and then panicked the system. To fix it set descriptor DMA addresses before enabling Tx and Rx such that hardware can see valid descriptor DMA addresses. Also set RL_EARLY_TX_THRESH before starting Tx and Rx. Reported by: steve.tell AT crashmail DOT de Tested by: steve.tell AT crashmail DOT de Obtained from: NetBSD MFC after: 1 week
* Clean up some of the various platform and release specific dma tagmjacob2007-01-233-47/+36
| | | | | | | stuff so it is centralized in isp_freebsd.h. Take out PCI posting flushed in qla2100/2200 register reads except for 2100s.
OpenPOWER on IntegriCloud