summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Increase WARNS level to 2.rodrigc2011-06-151-1/+1
|
* (1) When sending the TFTP RRQ packet to read a file,rodrigc2011-06-151-35/+229
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | send along the "blksize" option specified in RFC2348, and the "tsize" option specified in RFC2349. Add code to parse the TFTP Option Acknowledgement (OACK) packet as specified in RFC2347. For TFTP servers which support the "blksize" option, we can specify a TFTP Data block size larger than the default 512 bytes specified in RFC1350. This offers greater read performance when downloading files. We request an initial size of 1428 bytes, which is less than the Ethernet MTU of 1500 bytes. If the TFTP server sends back an OACK packet, then use the block size specified in the OACK packet. Most times it is usually the same value as what we request. If the TFTP server supports RFC2348, we will see performance improvements by transferring files over TFTP with larger block sizes. If we do not get back an OACK packet, then we most likely we are interoperating with a legacy TFTP server that does not support TFTP extension options, so default to the block size of 512 bytes. (2) If the "tftp.blksize" environment variable is set, then take that value and use it when sending the TFTP RRQ packet, instead of 1428. This allows us to set different values of "tftp.blksize" in the loader, so that we can test out different TFTP block sizes at run time. Obtained from: Juniper Networks Fixed by: rodrigc
* Currently tftp code in the loader retransmits the previous packet if it ↵rodrigc2011-06-151-0/+4
| | | | | | | | | | receives any unwanted packet(non-tftp). Change this to retransmit the packet(request or ack) only after a timeout. Obtained from: Juniper Networks Fixed by: Santhanakrishnan Balraj <sbalraj at juniper dot net>
* Added sendrecv_tftp function instead of sendrecv for use by tftp.rodrigc2011-06-151-2/+55
| | | | | | | | | | | In sendrecv_tftp: * Upon receving an unexpected block of data or error, resend the ACK immediately instead of waiting till the expiry of receive data timeout to resend the ACK. * change the receive timeout value between retries to be 2xMINTMO. Obtained from: Juniper Networks Fixed by: Santhanakrishnan Balraj <sbalraj at juniper dot net>
* In sendrecv function, change the receive timeout value between retriesrodrigc2011-06-151-1/+1
| | | | | | | | to increase in steps of MINTMO, instead of doubling the timeout for every retry. Obtained from: Juniper Networks Fixed by: Santhanakrishnan Balraj <sbalraj at juniper dot net>
* sh: Add support for named character classes in bracket expressions.jilles2011-06-153-2/+80
| | | | | Example: case x in [[:alpha:]]) echo yes ;; esac
* Hide driver revision behind bootverbose.joel2011-06-151-1/+4
| | | | Approved by: mav
* Eliminate extraneous pipelines and tr calls.jpaetzel2011-06-151-1/+1
| | | | | Approved by: kib (mentor) MFC after: 3 days
* Add -ffreestanding to the command line, so taht inflate.c compiles and linkcognet2011-06-151-1/+2
| | | | | | | properly with llvm. PR: arm/156771 Submitted by: Damjan Marion <damjan dot marion at gmail DOT com>
* Don't attempt to create the base directory when -d is specified.delphij2011-06-151-1/+1
| | | | MFC after: 1 month
* With the restructuring of the block reclaimation code, the notificationmckusick2011-06-153-4/+28
| | | | | | | messages for a filesystem being out of space need to be moved so that they do not print out until after a failed cleanup attempt. Suggested by: Jeff Roberson
* Revert changes to this file in r222417. This unconditionally enabled thenwhitehorn2011-06-151-4/+1
| | | | | | | boot menu on all platforms, which breaks loader completely on at least powerpc for reasons that are not understood yet. Reviewed by: Devin Teske
* Missing cleanup case after completion of a snapshot vnode writemckusick2011-06-151-0/+4
| | | | | | | claiming a released block. Submitted by: Jeff Roberson Tested by: Peter Holm
* sys/kern/subr_kdb.c:gibbs2011-06-141-8/+23
| | | | | | | | | | | | | Modify the "alternate break sequence" detecting state machine so that only a contiguous invocation of the break sequence is accepted. The old implementation did not reset the state machine when detecting an unexpected character. While here, use an enum for the states of the machine instead of magic numbers.bmitted by: Sponsored by: Spectra Logic Corporation
* Enable USB 3.0 support by default in i386 and amd64 GENERIC kernels.hselasky2011-06-142-0/+2
| | | | | Discussed with: joel @ and thompsa @ MFC after: 7 days
* Skip BAR(5) usage for SATA registers access on ICH8M Apples, because formav2011-06-141-1/+3
| | | | | | some reason it causes system lock up. Linux does the same. MFC after: 1 week
* Add location and pnpinfo strings for puc device ports. The location isjhb2011-06-144-2/+47
| | | | | | | | announced during boot and contains the port number. The pnpinfo string lists the port type (PUC_TYPE_* constants). Tested by: Boris Samorodov bsam ipt ru MFC after: 1 week
* Reviewed by: gabor (mentor)stephen2011-06-141-0/+3
| | | | Approved by: gabor (mentor)
* Plumb device physical path reporting from CAM devices, through GEOM andgibbs2011-06-1411-26/+280
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DEVFS, and make it accessible via the diskinfo utility. Extend GEOM's generic attribute query mechanism into generic disk consumers. sys/geom/geom_disk.c: sys/geom/geom_disk.h: sys/cam/scsi/scsi_da.c: sys/cam/ata/ata_da.c: - Allow disk providers to implement a new method which can override the default BIO_GETATTR response, d_getattr(struct bio *). This function returns -1 if not handled, otherwise it returns 0 or an errno to be passed to g_io_deliver(). sys/cam/scsi/scsi_da.c: sys/cam/ata/ata_da.c: - Don't copy the serial number to dp->d_ident anymore, as the CAM XPT is now responsible for returning this information via d_getattr()->(a)dagetattr()->xpt_getatr(). sys/geom/geom_dev.c: - Implement a new ioctl, DIOCGPHYSPATH, which returns the GEOM attribute "GEOM::physpath", if possible. If the attribute request returns a zero-length string, ENOENT is returned. usr.sbin/diskinfo/diskinfo.c: - If the DIOCGPHYSPATH ioctl is successful, report physical path data when diskinfo is executed with the '-v' option. Submitted by: will Reviewed by: gibbs Sponsored by: Spectra Logic Corporation Add generic attribute change notification support to GEOM. sys/sys/geom/geom.h: Add a new attrchanged method field to both g_class and g_geom. sys/sys/geom/geom.h: sys/geom/geom_event.c: - Provide the g_attr_changed() function that providers can use to advertise attribute changes. - Perform delivery of attribute change notifications from a thread context via the standard GEOM event mechanism. sys/geom/geom_subr.c: Inherit the attrchanged method from class to geom (class instance). sys/geom/geom_disk.c: Provide disk_attr_changed() to provide g_attr_changed() access to consumers of the disk API. sys/cam/scsi/scsi_pass.c: sys/cam/scsi/scsi_da.c: sys/geom/geom_dev.c: sys/geom/geom_disk.c: Use attribute changed events to track updates to physical path information. sys/cam/scsi/scsi_da.c: Add AC_ADVINFO_CHANGED to the registered asynchronous CAM events for this driver. When this event occurs, and the updated buffer type references our physical path attribute, emit a GEOM attribute changed event via the disk_attr_changed() API. sys/cam/scsi/scsi_pass.c: Add AC_ADVINFO_CHANGED to the registered asynchronous CAM events for this driver. When this event occurs, update the physical patch devfs alias for this pass instance. Submitted by: gibbs Sponsored by: Spectra Logic Corporation
* We should not return ECHILD when debugging a child and the parent does aobrien2011-06-143-5/+16
| | | | | | | "wait4(-1, ..., WNOHANG, ...)". Instead wait(2) should behave as if the child does not wish to report status at this time. Reviewed by: jhb
* Add "gid" and "group" keywords to display the effective group IDtrasz2011-06-144-2/+34
| | | | | | | and effective group name. Also, add "egid", "egroup" and "euid" aliases. PR: bin/146331 Submitted by: Jeremie Le Hen <jeremie at le-hen dot org>
* sys/sys/conf.h:gibbs2011-06-142-0/+65
| | | | | | | | | | | | | | | | | | | | sys/kern/kern_conf.c: Add make_dev_physpath_alias(). This interface takes the parent cdev of the alias, an old alias cdev (if any) to replace with the newly created alias, and the physical path string. The alias is visiable as a symlink to the parent, with the same name as the parent, rooted at physpath in devfs. Note: make_dev_physpath_alias() has hard coded knowledge of the Solaris style prefix convention for physical path data, "id1,". In the future, I expect the convention to change to allow "physical path quality" to be reported in the prefix. For example, a physical path based on NewBus topology would be of "lower quality" than a physical path reported by a device enclosure. Sponsored by: Spectra Logic Corporation
* sys/cam/scsi/scsi_da.c:gibbs2011-06-141-13/+25
| | | | | | | | | | | | | - Only attempt the closing synchronize cache on a disk if it is still there. - When a device is lost, report the number of outstanding I/Os as they are drained. - When a device is lost, return any unprocessed bios with ENXIO instead of EIO. - Filter asynchronous events, but always allow cam_periph_async() to see them too. Sponsored by: Spectra Logic Corporation
* - Check on target wordsize instead of compile time define if we build onandreast2011-06-141-61/+319
| | | | | | | | | 64-bit PowerPC or 32-bit PowerPC. - Make gdb work on powerpc64, the code for this is obtained from ppc-linux-tdep.c. - Remove non-elf core read functionality. Implement core read functionality similar like other FreeBSD targets. - Set long double limitations.
* Lay groundwork in CAM for recording and reporting physical path andgibbs2011-06-1411-123/+475
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | other device attributes stored in the CAM Existing Device Table (EDT). This includes some infrastructure requried by the enclosure services driver to export physical path information. Make the CAM device advanced info interface accept store requests. sys/cam/scsi/scsi_all.c: sys/cam/scsi/scsi_all.h: - Replace scsi_get_sas_addr() with a scsi_get_devid() which takes a callback that decides whether to accept a particular descriptor. Provide callbacks for NAA IEEE Registered addresses and for SAS addresses, replacing the old function. This is needed because the old function doesn't work for an enclosure address for a SAS device, which is not flagged as a SAS address, but is NAA IEEE Registered. It may be worthwhile merging this interface with the devid match interface. - Add a few more defines for some device ID fields. sbin/camcontrol/camcontrol.c: - Update for the CCB_DEV_ADVINFO interface change. cam/cam_xpt_internal.h: - Add the new fields for the physical path string to the CAM EDT. cam/cam_ccb.h: - Rename CCB_GDEV_ADVINFO to simply CCB_DEV_ADVINFO, and the ccb structure to ccb_dev_advinfo. - Add a flag that changes this CCB's action to store, rather than the default, retrieve. - Add a new buffer type, CDAI_TYPE_PHYS_PATH, for the new CAM EDT physpath field. - Remove the never-implemented transport & proto flags. cam/cam_xpt.c: cam/cam_xpt.h: - Add xpt_getattr(), which provides a wrapper for fetching a device's attribute using the GEOM strings as key. This method currently supports "GEOM::ident" and "GEOM::physpath". Submitted by: will Reviewed by : gibbs Extend the XPT_DEV_MATCH api to allow a device search by device ID. As far as the API is concerned, device ID is a binary blob to be interpreted by the transport layer. The SCSI implementation assumes it is an array of VPD device ID descriptors. sys/cam/cam_ccb.h: Create a new structure, device_id_match_pattern, and update the XPT_DEV_MATCH datastructures and flags so that this pattern type can be used. sys/cam/cam_xpt.c: - A single pattern matching on both inquiry data and device ID is invalid. Report any violators. - Pass device ID match requests through to the new routine scsi_devid_match(). The direct call of a SCSI routine is a layering violation, but no worse than the one a few lines up that checks inquiry data. Defer cleaning this up until our future, larger, rototilling of CAM. - Zero out cam_ed and cam_et nodes on allocation. Prior to this change, device_id_len and device_id were not inialized, preventing proper detection of the presence of this information. sys/cam/scsi/scsi_all.c: sys/cam/scsi/scsi_all.h: Add the scsi_match_devid() routine. Add a helper function for extracting peripherial driver names sys/cam/cam_periph.c: sys/cam/cam_periph.h: Add the cam_periph_list() method which fills an sbuf with a comma delimited list of the peripheral instances associated with a given CAM path. Add a helper functions for SCSI commands used by the SES driver. sys/cam/scsi/scsi_all.c: sys/cam/scsi/scsi_all.h: Add structure definitions and csio filling functions for the receive diagnostic results and send diagnostic commands. Misc CAM XPT cleanups. sys/cam/cam_xpt.c: Broadcast AC_FOUND_DEVICE and AC_PATH_REGISTERED events at the time async event handlers are attached even when registering just for events on a partitular SIM. Previously, you had to register for these events on all SIMs in the system in order to get the initial broadcast even though subsequent device and path arrivals would be delivered. sys/cam/cam_xpt.c: Remove SIM mutex held asserts from path accessors. CAM paths are reference counted and it is this reference count, not the sim mutex, that garantees they are stable. Sponsored by: Spectra Logic Corporation
* Implement "global" mode for ipfw nat. It is similar to natd(8)ae2011-06-147-15/+99
| | | | | | | | | | | | | | | | "globalport" option for multiple NAT instances. If ipfw rule contains "global" keyword instead of nat_number, then for each outgoing packet ipfw_nat looks up translation state in all configured nat instances. If an entry is found, packet aliased according to that entry, otherwise packet is passed unchanged. User can specify "skip_global" option in NAT configuration to exclude an instance from the lookup in global mode. PR: kern/157867 Submitted by: Alexander V. Chernikov (previous version) Tested by: Eugene Grosbein
* Check nat id a bit more strictly.ae2011-06-141-6/+7
|
* Grab one of the ifcap bits for netmap, and enable printing in ifconfig.luigi2011-06-142-1/+11
| | | | | | | Document the fact that we might want an IFCAP_CANTCHANGE mask, even though the value is not yet used in sys/net/if.c (asked on -current a week ago, no feedback so i assume no objection).
* Sort alias mode flags in the increasing order.ae2011-06-141-11/+11
|
* Add IPv6 support to the ipfw uid/gid check. Pass an ip_fw_args structureae2011-06-141-37/+53
| | | | | | | | | | | | to the check_uidgid() function, since it contains all needed arguments and also pointer to mbuf and now it is possible use in_pcblookup_mbuf() function. Since i can not test it for the non-FreeBSD case, i keep this ifdef unchanged. Tested by: Alexander V. Chernikov MFC after: 3 weeks
* sendmail has been updated to 8.14.5gshapiro2011-06-141-1/+1
|
* Update notes regarding FreeBSD importgshapiro2011-06-141-2/+2
|
* Minor change to force commit this file so new freebsd*.cf files aregshapiro2011-06-141-1/+0
| | | | | | built to use the new sendmail-8.14.5/cf tree. MFC after: 4 days
* Update DNSBL information (MAPS has been acquired, used a generic example)gshapiro2011-06-141-5/+3
|
* Merge sendmail 8.14.5 to HEADgshapiro2011-06-1443-398/+880
|\ | | | | | | MFC after: 4 days
| * Import errata patch as published at ↵gshapiro2011-06-141-2/+4
| | | | | | | | http://www.sendmail.com/sm/open_source/download/8.14.5/
| * Import sendmail 8.14.5gshapiro2011-06-1456-4151/+4653
| |
| * Import sendmail 8.14.4gshapiro2010-01-2687-4428/+5457
| |
| * Bring in a change already in the sendmail repository thatgshapiro2008-11-151-1/+1
| | | | | | | | | | | | will allow sendmail to be built with the c99 compiler. Submitted by: rdivacky
| * Fix typo in last propset changegshapiro2008-08-280-0/+0
| |
| * Fix svn:mime-type property for jpg filesgshapiro2008-08-280-0/+0
| |
| * Import sendmail 8.14.3 and clean up svn properties as documented in:gshapiro2008-08-28214-145/+31386
| | | | | | | | http://wiki.freebsd.org/SubversionPrimer/VendorImports
| * Pass 2 of sendmail vendor work area flattening.peter2008-08-280-0/+0
| | | | | | | | (Catch some stragglers left over from a script error.)
| * Pass 2 of flattening sendmail vendor area.peter2008-08-28570-0/+0
| |
| * Stage 1 of sendmail dist tree flattening. contrib/sendmail/contribpeter2008-08-28570-0/+0
| | | | | | | | prevents doing this in one pass.
* | Instead of using an atomic operation to determine whether the devstat(9)ken2011-06-131-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | device node has been created, pass MAKEDEV_CHECKNAME in so that the devfs code will do the check. Use a regular static variable as before, that's good enough to keep us from calling into devfs most of the time. Suggested by: kib MFC after: 1 week Sponsored by: Spectra Logic Corporation
* | Fix a couple of race conditions in devstat(9) initialization.gibbs2011-06-131-9/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In devstat_new_entry(), there is no need to initialize the queue and the mutex in this function. There are ways to do static initialization on both, so use STAILQ_HEAD_INITIALIZER and MTX_SYSINIT to initialize the queue and the mutex. In devstat_alloc(), use an atomic test and set routine to guard making our entry in /dev. Using just a plain static variable creates a race condition on multiprocessor machines. If you attempt to create a second entry in devfs, the kernel will panic. Submitted by: kdm Reviewed by: gibbs Sponsored by: Spectra Logic Corporation MFC after: 1 week.
* | sh: Fix duplicate prototypes for builtins.jilles2011-06-1323-41/+14
| | | | | | | | | | | | Have mkbuiltins write the prototypes for the *cmd functions to builtins.h instead of builtins.c and include builtins.h in more .c files instead of duplicating prototypes for *cmd functions in other headers.
* | Several enhancements to the Xen block back driver.gibbs2011-06-131-529/+1451
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sys/dev/xen/blkback/blkback.c: o Implement front-end request coalescing. This greatly improves the performance of front-end clients that are unaware of the dynamic request-size/number of requests negotiation available in the FreeBSD backend driver. This required a large restructuring in how this driver records in-flight transactions and how those transactions are mapped into kernel KVA. For example, the driver now includes a mini "KVA manager" that allocates ranges of contiguous KVA to patches of requests that are physically contiguous in the backing store so that a single bio or UIO segment can be used to represent the I/O. o Refuse to open any backend files or devices if the system has yet to mount root. This avoids a panic. o Properly handle "onlined" devices. An "onlined" backend device stays attached to its backing store across front-end disconnections. This feature is intended to reduce latency when a front-end does a hand-off to another driver (e.g. PV aware bootloader to OS kernel) or during a VM reboot. o Harden the driver against a pathological/buggy front-end by carefully vetting front-end XenStore data such as the front-end state. o Add sysctls that report the negotiated number of segments per-request and the number of requests that can be concurrently in flight. Submitted by: kdm Reviewed by: gibbs Sponsored by: Spectra Logic Corporation MFC after: 1 week
* | Add bunch of Conexant codec IDs. For some of them add quirks to disablemav2011-06-131-0/+39
| | | | | | | | excessive signal paths to simplify tracer's life.
OpenPOWER on IntegriCloud