aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | Close a race with caching of -ve name lookups in the NFS client.John Baldwin2009-10-161-6/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specifically, clients only trust -ve cache entries while the directory remains unchanged and discard any -ve cache entries for a directory when they notice that the modification time of a directory entry changes. The race involves two concurrent lookups as follows: - Thread A does a lookup for file 'foo' which sends a lookup RPC to the server. The lookup fails and the server replies. - The 'foo' file is created (either by the same client or a different client) updating the modification time on the parent directory of 'foo'. - Thread B does a lookup for a different file 'bar' which updates the cached attributes of the parent directory of 'foo' to reflect the new modification time after 'foo' was created. - Thread A finally resumes execution to parse the reply from the NFS server. It adds a -ve cache entry and sets the cached value of the directory's modification time that is used for invalidating -ve cached lookups to the new modification time set by thread B. At this point, future lookups of 'foo' will honor the -ve cached entry until the cached entry is pushed out of the name cache's LRU or the modification time of the parent directory is changed again by some other change. The fix is to read the directory's modification time before sending the lookup RPC and use that cached modification time when setting the directory's cached modification time. Also, we do not add a -ve cache entry if another thread has added -ve cache entry that set the directory's cached modification time to a newer value than the value we read before sending the lookup RPC. Reviewed by: rmacklem MFC after: 1 week Notes: svn path=/head/; revision=198174
* | sh: Show more information about syntax errors in command substitution:Jilles Tjoelker2009-10-161-0/+5
| | | | | | | | | | | | | | | | | | | | the line number where the command substitution started. This applies to both the $() and `` forms but is most useful for `` because the other line number is relative to the enclosed text there. (For older versions, -v can be used as a workaround.) Notes: svn path=/head/; revision=198173
* | Sort SEE ALSO.Christian Brueffer2009-10-161-3/+3
| | | | | | | | Notes: svn path=/head/; revision=198171
* | Move intr_describe() out of #ifdef SMP; the function is always required.Konstantin Belousov2009-10-162-34/+34
| | | | | | | | | | | | | | Reviewed by: jhb Notes: svn path=/head/; revision=198170
* | Allow $name_program to override $command in a more robust way thatDoug Barton2009-10-151-1/+1
| | | | | | | | | | | | | | will not cause the value to be null if $command is not set. Notes: svn path=/head/; revision=198162
* | Correct offset calcluation for the NCM implementation.Andrew Thompson2009-10-151-18/+17
| | | | | | | | | | | | | | Submitted by: HPS Notes: svn path=/head/; revision=198153
* | Only poll ukbd if KDB is active.Andrew Thompson2009-10-151-0/+4
| | | | | | | | | | | | | | Submitted by: HPS Notes: svn path=/head/; revision=198152
* | Workaround buggy BIOS code in USB regard. By doing the BIOS to OS handover forAndrew Thompson2009-10-1516-282/+535
| | | | | | | | | | | | | | | | | | | | | | | | all host controllers at the same time, we avoid problems where the BIOS will actually write to the USB registers of all the USB host controllers every time we handover one of them, and consequently reset the OS programmed values. Submitted by: avg Reviewed by: jhb Notes: svn path=/head/; revision=198151
* | Use language more closely resembling English in a panic message.John Baldwin2009-10-151-1/+1
| | | | | | | | | | | | | | | | Pointy hat to: jhb Submitted by: pluknet Notes: svn path=/head/; revision=198149
* | Removed redundant WARNS setting.Ruslan Ermilov2009-10-152-2/+0
| | | | | | | | | | | | | | Submitted by: Ulrich Spörlein Notes: svn path=/head/; revision=198148
* | Support the specification of a range of destination ports e.g.Luigi Rizzo2009-10-151-51/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | netsend 127.0.0.1 6666-7777 [payloadsize] [packet_rate] [duration] This is useful to test the behaviour of systems that do some kind of flow classifications and so exhibit different behaviour depending on the number of flows that hit them. I plan to add a similar extension to sweep on a range of IP addresses, so we can issue a single command to flood (obviously, for testing purposes!) a number of different destinations. When there is only one destination, we do a preliminary connect() of the socket so we can use send() instead of sendto(). When we have multiple ports, the socket is not connect()'ed and we do a sendto() instead. There is a performance hit in this case, as the throughput on the loopback interface (with a firewall rule that blocks the transmission) goes down from 900kpps to 490kpps on my test machine. If the number of different destinations is limited, one option to explore is to have multiple connect()ed sockets. MFC after: 1 month Notes: svn path=/head/; revision=198136
* | Style fixes to the function prototypes for bus_alloc_resources() andJohn Baldwin2009-10-151-2/+4
| | | | | | | | | | | | | | bus_release_resources(). Notes: svn path=/head/; revision=198135
* | Add a facility for associating optional descriptions with active interruptJohn Baldwin2009-10-1513-4/+290
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | handlers. This is primarily intended as a way to allow devices that use multiple interrupts (e.g. MSI) to meaningfully distinguish the various interrupt handlers. - Add a new BUS_DESCRIBE_INTR() method to the bus interface to associate a description with an active interrupt handler setup by BUS_SETUP_INTR. It has a default method (bus_generic_describe_intr()) which simply passes the request up to the parent device. - Add a bus_describe_intr() wrapper around BUS_DESCRIBE_INTR() that supports printf(9) style formatting using var args. - Reserve MAXCOMLEN bytes in the intr_handler structure to hold the name of an interrupt handler and copy the name passed to intr_event_add_handler() into that buffer instead of just saving the pointer to the name. - Add a new intr_event_describe_handler() which appends a description string to an interrupt handler's name. - Implement support for interrupt descriptions on amd64 and i386 by having the nexus(4) driver supply a custom bus_describe_intr method that invokes a new intr_describe() MD routine which in turn looks up the associated interrupt event and invokes intr_event_describe_handler(). Requested by: many Reviewed by: scottl MFC after: 2 weeks Notes: svn path=/head/; revision=198134
* | A small change to avoid calling gettimeofday() too oftenLuigi Rizzo2009-10-151-4/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (hardwired to once every 20us at most). I found out that on many machines round here, i could only get 300-400kpps with netsend even on loopback and a 'deny' rule in the firewall, while reducing the number of calls to gettimeofday() brings the value to 900kpps and more. This code is just a quick fix for the problem. Of course it could be done better, with proper getopt() parsing and the like, but since this applies to the entire program i'll postpone that to when i have more time. Reviewed by: rwatson MFC after: 1 month Notes: svn path=/head/; revision=198132
* | Fix a sign bug in the handling of nice priorities when computing theJohn Baldwin2009-10-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | interactive score for a thread. Submitted by: Taku YAMAMOTO taku of tackymt.homeip.net Reviewed by: jeff MFC after: 3 days Notes: svn path=/head/; revision=198126
* | Use our standard section 4 SYNOPSIS.Christian Brueffer2009-10-152-7/+20
| | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=198125
* | Print routing statistics as unsigned short rather than unsigned int,Robert Watson2009-10-151-5/+5
| | | | | | | | | | | | | | | | | | | | | | otherwise sign extension leads to unlikely values when in the negative range of the signed short structure fields that hold the statistics. The type used to hold routing statistics is arguably also incorrect. MFC after: 3 days Notes: svn path=/head/; revision=198118
* | Bump version numbers and update descriptions for the 9-CURRENTHiroki Sato2009-10-155-71/+12
| | | | | | | | | | | | | | | | world. The %[no]include.historic knobs are removed because they are not used for a long time. Notes: svn path=/head/; revision=198114
* | This patch fixes the following issues in the ARP operation:Qing Li2009-10-152-10/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. There is a regression issue in the ARP code. The incomplete ARP entry was timing out too quickly (1 second timeout), as such, a new entry is created each time arpresolve() is called. Therefore the maximum attempts made is always 1. Consequently the error code returned to the application is always 0. 2. Set the expiration of each incomplete entry to a 20-second lifetime. 3. Return "incomplete" entries to the application. Reviewed by: kmacy MFC after: 3 days Notes: svn path=/head/; revision=198111
* | fixes a TX hang that could be possible to happen when the trasfers areWeongyo Jeong2009-10-145-2/+23
| | | | | | | | | | | | | | | | | | | | in the high speed that some drivers don't call if_start callback after marking ~IFF_DRV_OACTIVE. MFC after: 3 days Notes: svn path=/head/; revision=198099
* | fixes a TX hang bug that it could happen when if_start callback didn'tWeongyo Jeong2009-10-141-2/+8
| | | | | | | | | | | | | | | | | | | | be restarted by full of the output queue. MFC after: 3 days Tested by: bsduser <bsd at acd.homelinux.org> Notes: svn path=/head/; revision=198098
* | Set the active flag in the PMBR when we install bootcode on a GPTRobert Noland2009-10-141-0/+3
| | | | | | | | | | | | | | | | | | | | | | partitioned disk. Some BIOS require this to be set before they will boot the device. Approved by: marcel MFC after: 2 weeks Notes: svn path=/head/; revision=198097
* | Oops, add a return values section to note that these routines return an errorJohn Baldwin2009-10-141-0/+2
| | | | | | | | | | | | | | on failure or zero on success. Notes: svn path=/head/; revision=198086
* | Add a manual page for BUS_BIND_INTR() and bus_bind_intr().John Baldwin2009-10-142-0/+98
| | | | | | | | | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=198085
* | Use zfs_read() instead of xfsread() to read /boot.config. xfsread() failsJohn Baldwin2009-10-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | short read requests, so the result was that a /boot.config smaller than 512 bytes was ignored. boot2 uses fsread() instead of xfsread() to read /boot.config already, so this makes zfsboot more like boot2. Submitted by: Johny Mattsson johny-freebsd of earthmagic org Reviewed by: dfr MFC after: 3 days Notes: svn path=/head/; revision=198079
* | Explicitly compare to a return code.Bjoern A. Zeeb2009-10-141-1/+1
| | | | | | | | | | | | | | | | Discussed with: philip (after we both misread the logic there the 1st time) MFC after: 6 weeks Notes: svn path=/head/; revision=198076
* | Unbreak the VIMAGE build with IPSEC, broken with r197952 byBjoern A. Zeeb2009-10-141-4/+4
| | | | | | | | | | | | | | | | | | | | | | virtualizing the pfil hooks. For consistency add the V_ to virtualize the pfil hooks in here as well. MFC after: 55 days X-MFC after: julian MFCed r197952. Notes: svn path=/head/; revision=198075
* | ls: Make -p not inhibit following symlinks.Jilles Tjoelker2009-10-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | According to the man page, when neither -H/-L nor -F/-d/-l are given, -H is implied. This agrees with POSIX, GNU ls and Solaris ls. This means that -p, although it is very similar to -F, does not prevent the implicit following of symlinks. PR: standards/128546 Notes: svn path=/head/; revision=198056
* | Make getcwd(3) faster, simpler and more compliant using *at syscalls.Jilles Tjoelker2009-10-131-45/+18
| | | | | | | | | | | | | | | | It is no longer necessary to construct long paths consisting of repeated "../" which may be slow to process and may exceed PATH_MAX. Notes: svn path=/head/; revision=198053
* | Compare pointer to NULL rather than 0.Bjoern A. Zeeb2009-10-131-1/+1
| | | | | | | | | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=198050
* | Immediately after clearing a pending callout that didn't make it dueBjoern A. Zeeb2009-10-131-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to the lock we hold, disable interrupts, and announce to the firmware that we are shutting down. Especially do this before disabling blocks. This makes some types of machines with asf enabled no longer hang upon boot, when we start configuring the interface. PR: i386/96382, kern/100410, kern/122252, kern/116328 Reported by: erwin Hardware provided by: TDC A/S Reviewed by: stas Tested by: stas Notes: svn path=/head/; revision=198049
* | Sync with other GENERIC kernel configs:John Baldwin2009-10-132-23/+31
| | | | | | | | | | | | | | | | | | | | | | - Move USB serial drivers earlier to match their placement in other kernel configs. - Add descriptions to various USB drivers. - Move the USB wireless drivers into a new section. - Add ulscom to the list of USB serial drivers. Notes: svn path=/head/; revision=198044
* | Move the USB wireless drivers down into their own section next to the USBJohn Baldwin2009-10-134-16/+20
| | | | | | | | | | | | | | | | | | | | ethernet drivers. Submitted by: Glen Barber glen.j.barber @ gmail MFC after: 1 month Notes: svn path=/head/; revision=198043
* | Fix this module so it at least builds. Note that it isn't hooked up toJohn Baldwin2009-10-131-2/+2
| | | | | | | | | | | | | | | | the build however, and ubser(4) is also not present in any kernel configs (including NOTES). Notes: svn path=/head/; revision=198041
* | Add C message catalogue entries for newer errnos: EBADMSG, EMULTIHOP,Robert Watson2009-10-131-0/+10
| | | | | | | | | | | | | | | | | | | | ENOLINK, EPROTO, ENOTCAPABLE. Submitted by: Alan R. S. Bueno <alan.bsd at gmail.com> MFC after: 3 days (most) Notes: svn path=/head/; revision=198040
* | Correct typo: thetime -> the timeEd Maste2009-10-131-1/+1
| | | | | | | | | | | | | | | | PR: docs/139447 Submitted by: Guido Falsi mad at madpilot dot net Notes: svn path=/head/; revision=198029
* | Correct a copy/paste bug in a comment. lptclose() checks once a second toJohn Baldwin2009-10-131-1/+1
| | | | | | | | | | | | | | see if the ppc hardware has gone idle rather than four times a second. Notes: svn path=/head/; revision=198028
* | Properly initialize the mesh conf capabilities byte.Rui Paulo2009-10-131-0/+1
| | | | | | | | | | | | | | MFC after: 2 days Notes: svn path=/head/; revision=198027
* | EXPORT_SYMS is not, in fact, required, for a dependent module to accessRobert Watson2009-10-131-10/+0
| | | | | | | | | | | | | | | | | | | | non-static symbols in a module they depend on, so remove dtrace symbols from nfsclient's EXPORT_SYMS again. Suggested by: jhb Notes: svn path=/head/; revision=198024
* | Make number(6) build with WARNS=6.Ed Schouten2009-10-132-4/+4
| | | | | | | | Notes: svn path=/head/; revision=198021
* | Chase dependency changes in libgssapi_krb5 module introruced byAlexander Nedotsukov2009-10-131-1/+1
| | | | | | | | | | | | | | revision r197995. Notes: svn path=/head/; revision=198020
* | Use printb() to display the "nd6 options=" line.Hiroki Sato2009-10-121-29/+7
| | | | | | | | Notes: svn path=/head/; revision=198006
* | We haven't installed usbdevs for many moons now, and it doesn't work anyMark Murray2009-10-121-0/+2
| | | | | | | | | | | | | | more anyway. Add it to the "obsolete" list. Notes: svn path=/head/; revision=198005
* | Fix the 106/109 USB Japanese keyboard "underscore" issue.Hiroki Sato2009-10-121-12/+51
| | | | | | | | | | | | | | | | | | | | | | | | Sun Type 6 USB keyboard support added in rev 1.46 conflicted with some scan codes used in Japanese keyboards because the scan code conversion routine was ambiguous for the overlapped codes. PR: ports/134005 Submitted by: YAMASHIRO Jun Notes: svn path=/head/; revision=197999
* | Export DTrace symbols from nfsclient so that dtnfsclient can get to them.Robert Watson2009-10-121-0/+10
| | | | | | | | | | | | | | | | | | | | This fixes DTrace with nfsclient built as a module. MFC after: 3 days Reported by: markm Notes: svn path=/head/; revision=197998
* | Add a MODULE_DEPEND() on the NFS client from dtnfsclient so that dtnfsclientRobert Watson2009-10-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | can access NFS client symbols. MFC after: 3 days Discussed with: kib Reported by: markm Notes: svn path=/head/; revision=197997
* | - Do not assign a link-local address when ND6_IFF_IFDISABLED.Hiroki Sato2009-10-121-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | Adding a tentative address is useless. - Comment out a confused warning message when in6_ifattach_linklocal() fails. This can occur when the interface does not support ioctl(SIOCAIFADDR) (interfaces associated with 802.11 wireless network device drivers, for example). Notes: svn path=/head/; revision=197996
* | Link GSS mechanics modules against libgssapi so they will not fail dueAlexander Nedotsukov2009-10-122-4/+4
| | | | | | | | | | | | | | | | | | | | | | unresolved symbol errors when in turn libgssapi was loaded with RTLD_LOCAL flag set (which is the default). Reviewed by: dfr, jhb MFC after: 3 days Notes: svn path=/head/; revision=197995
* | Improve the description of sysctl "kern.sugid_coredump".Joseph Koshy2009-10-121-1/+1
| | | | | | | | | | | | | | | | Submitted by: Mel Flynn <mel.flynn+fbsd.hackers at mailing.thruhere.net> on -hackers Notes: svn path=/head/; revision=197983
* | Update for latest 802.11s changes in meshconf format.Rui Paulo2009-10-121-15/+21
| | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=197980