aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix some wording and grammar in the BUGS section.Benedict Reuschling2011-06-161-8/+12
| | | | | | | | | | PR: docs/157901 Submitted by: Niclas Zeising (niclas dot zeising at gmail dot com) Reviewed by: mav MFC after: 3 days Notes: svn path=/head/; revision=223160
* Add "alignment" param to the request before calling gpart_autofill().Andrey V. Elsukov2011-06-161-0/+1
| | | | Notes: svn path=/head/; revision=223158
* Setting warnings without make universe considered harmful. Revert to WARNS=0Warner Losh2011-06-161-1/+1
| | | | | | | until such time that the warnings at =2 are fixed for all platforms. Notes: svn path=/head/; revision=223156
* Even if the loaded module has no symbols, we still need to notifyMarcel Moolenaar2011-06-161-1/+1
| | | | | | | MD code about it and update the link map for GDB's use. Notes: svn path=/head/; revision=223155
* Fix two typos and remove redundant code.Michael Tuexen2011-06-161-5/+2
| | | | | | | MFC after: 1 month. Notes: svn path=/head/; revision=223154
* Add Digitizer-related usage IDs from HUTRR30 and HUTRR34.Alexander Motin2011-06-161-0/+10
| | | | Notes: svn path=/head/; revision=223153
* * Fix the handling of addresses in sctp_sendv().Michael Tuexen2011-06-162-42/+84
| | | | | | | | | | * Add support for SCTP_SENDV_NOINFO. * Improve the error handling of sctp_sendv() and sctp_recv(). MFC after: 1 month Notes: svn path=/head/; revision=223152
* Using the correct format string(%zu) for size_t type. This should fix 64Tai-hwa Liang2011-06-161-1/+1
| | | | | | | | | bits builds. Submitted by: Garrett Cooper <yanegomi@gmail.com> Notes: svn path=/head/; revision=223151
* It's a bit odd, but "make update" in src/ can also update the ports/,Ruslan Ermilov2011-06-165-19/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | doc/, and now www/ trees, but only using the "cvsup" transport. When "make update" is run using a tree's makefile, it can also use "cvs" (except for www/) and "svn" (only src/). Clean up documentation and code regarding "make update": - Increase oddness by adding support for WWWSUPFILE and NO_WWWUPDATE to Makefile.inc1 (analogous to PORTSSUPFILE/NO_PORTSUPDATE and DOCSUPFILE/NO_DOCUPDATE; WWWSUPFILE already supported by www/Makefile). - Document all trees that support CVS_UPDATE. - Document all trees that support SUP_UPDATE. - Document SVN_UPDATE. - Document NO_WWWUPDATE. - make.conf(5) mistakenly said that *SUPFILE* had defaults. - Add an example entry for WWWSUPFILE. Notes: svn path=/head/; revision=223148
* Change i_len in ieee80211req to be unsigned and fix other signed/unsignedKevin Lo2011-06-163-8/+9
| | | | | | | | | | issues. Reviewed by: bschmidt Obtained from: NetBSD Notes: svn path=/head/; revision=223145
* Revert r222688.Maxim Sobolev2011-06-161-14/+2
| | | | | | | Requested by: Mikolaj Golub Notes: svn path=/head/; revision=223143
* Unbreaking build on sparc64.Tai-hwa Liang2011-06-161-3/+3
| | | | | | | Submitted by: Garrett Cooper <yanegomi@gmail.com> Notes: svn path=/head/; revision=223139
* Fixing compilation bustage by introducing another forward declaration.Tai-hwa Liang2011-06-161-0/+1
| | | | Notes: svn path=/head/; revision=223138
* Clarify that the TFTP blocksize (RFC2348) or non-standardCraig Rodrigues2011-06-162-4/+6
| | | | | | | TFTP rollover option can be used to transfer larger files. Notes: svn path=/head/; revision=223137
* Use size of int to fetch sysctl kern.sched.cpusetsize because it hadDavid Xu2011-06-161-3/+3
| | | | | | | | | switched from long to int type in kernel. Fixed by: pluknet Notes: svn path=/head/; revision=223136
* Specify correct RFC2347 for TFTP options in diagnostic message.Craig Rodrigues2011-06-161-2/+2
| | | | Notes: svn path=/head/; revision=223135
* Make the bootonly CD smaller by discarding static libraries that are notNathan Whitehorn2011-06-151-4/+4
| | | | | | | useful without a toolchain. Notes: svn path=/head/; revision=223133
* Add support for the newly added SCTP API.Michael Tuexen2011-06-1511-632/+1909
| | | | | | | | | | | | | | | | In particular add support for: * SCTP_SNDINFO, SCTP_PRINFO, SCTP_AUTHINFO, SCTP_DSTADDRV4, and SCTP_DSTADDRV6 cmsgs. * SCTP_NXTINFO and SCTP_RCVINFO cmgs. * SCTP_EVENT, SCTP_RECVRCVINFO, SCTP_RECVNXTINFO and SCTP_DEFAULT_SNDINFO socket option. * Special association ids (SCTP_FUTURE_ASSOC, ...) * sctp_recvv() and sctp_sendv() functions. MFC after: 1 month. Notes: svn path=/head/; revision=223132
* Do not install the rescue tools onto the install CD. Since it is readNathan Whitehorn2011-06-151-1/+2
| | | | | | | | only, they are very unlikely to be needed and take up a great deal of space. Notes: svn path=/head/; revision=223129
* Bring back following change which was undone in previous commit:Craig Rodrigues2011-06-151-4/+4
| | | | | | | | | | | | | | | | | | | | | | ------------------------------------------------------------------------ r172854 | marius | 2007-10-21 10:03:18 -0700 (Sun, 21 Oct 2007) | 16 lines Changed paths: M /head/lib/libstand/tftp.c - Given that we tell the compiler that struct ip is packed and 32-bit aligned, GCC 4.2.1 also generates code for sendudp() that assumes this alignment. GCC 4.2.1 however doesn't 32-bit align wbuf, causing the loader to crash due to an unaligned access of wbuf in sendudp() when netbooting sparc64. Solve this by specifying wbuf as packed and 32-bit aligned, too. As for lastdata and readudp() this currently is no issue when compiled with GCC 4.2.1, though give lastdata the same treatment as wbuf for consistency and possibility of being affected in the future. [1] - Sprinkle const on a lookup table. ------------------------------------------------------------------------ Notes: svn path=/head/; revision=223128
* Ensure that filesystem metadata contained within persistent snapshotsKirk McKusick2011-06-157-42/+74
| | | | | | | | | is always kept consistent. Suggested by: Jeff Roberson Notes: svn path=/head/; revision=223127
* Don't include curcpu in the mask which is used as the IPI cookie as weMarius Strobl2011-06-151-12/+16
| | | | | | | | | | have to ignore it when sending the IPI anyway. Actually I can't think of a good reason why this ever was done that way in the first place as it's not even usefull for debugging. While at it replace the use of pc_other_cpus as it's slated for deorbit. Notes: svn path=/head/; revision=223126
* Increase WARNS level to 2.Craig Rodrigues2011-06-151-1/+1
| | | | Notes: svn path=/head/; revision=223125
* (1) When sending the TFTP RRQ packet to read a file,Craig Rodrigues2011-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 Notes: svn path=/head/; revision=223124
* Currently tftp code in the loader retransmits the previous packet if it ↵Craig Rodrigues2011-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> Notes: svn path=/head/; revision=223123
* Added sendrecv_tftp function instead of sendrecv for use by tftp.Craig Rodrigues2011-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> Notes: svn path=/head/; revision=223122
* In sendrecv function, change the receive timeout value between retriesCraig Rodrigues2011-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> Notes: svn path=/head/; revision=223121
* sh: Add support for named character classes in bracket expressions.Jilles Tjoelker2011-06-153-2/+80
| | | | | | | | Example: case x in [[:alpha:]]) echo yes ;; esac Notes: svn path=/head/; revision=223120
* Hide driver revision behind bootverbose.Joel Dahl2011-06-151-1/+4
| | | | | | | Approved by: mav Notes: svn path=/head/; revision=223118
* Eliminate extraneous pipelines and tr calls.Josh Paetzel2011-06-151-1/+1
| | | | | | | | Approved by: kib (mentor) MFC after: 3 days Notes: svn path=/head/; revision=223117
* Add -ffreestanding to the command line, so taht inflate.c compiles and linkOlivier Houchard2011-06-151-1/+2
| | | | | | | | | | properly with llvm. PR: arm/156771 Submitted by: Damjan Marion <damjan dot marion at gmail DOT com> Notes: svn path=/head/; revision=223116
* Don't attempt to create the base directory when -d is specified.Xin LI2011-06-151-1/+1
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=223115
* With the restructuring of the block reclaimation code, the notificationKirk McKusick2011-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 Notes: svn path=/head/; revision=223114
* Revert changes to this file in r222417. This unconditionally enabled theNathan Whitehorn2011-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 Notes: svn path=/head/; revision=223109
* Missing cleanup case after completion of a snapshot vnode writeKirk McKusick2011-06-151-0/+4
| | | | | | | | | | claiming a released block. Submitted by: Jeff Roberson Tested by: Peter Holm Notes: svn path=/head/; revision=223105
* sys/kern/subr_kdb.c:Justin T. 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 Notes: svn path=/head/; revision=223099
* Enable USB 3.0 support by default in i386 and amd64 GENERIC kernels.Hans Petter Selasky2011-06-142-0/+2
| | | | | | | | Discussed with: joel @ and thompsa @ MFC after: 7 days Notes: svn path=/head/; revision=223098
* Skip BAR(5) usage for SATA registers access on ICH8M Apples, because forAlexander Motin2011-06-141-1/+3
| | | | | | | | | some reason it causes system lock up. Linux does the same. MFC after: 1 week Notes: svn path=/head/; revision=223097
* Add location and pnpinfo strings for puc device ports. The location isJohn Baldwin2011-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 Notes: svn path=/head/; revision=223091
* Reviewed by: gabor (mentor)Stephen Montgomery-Smith2011-06-141-0/+3
| | | | | | | Approved by: gabor (mentor) Notes: svn path=/head/; revision=223090
* Plumb device physical path reporting from CAM devices, through GEOM andJustin T. Gibbs2011-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 Notes: svn path=/head/; revision=223089
* We should not return ECHILD when debugging a child and the parent does aDavid E. O'Brien2011-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 Notes: svn path=/head/; revision=223088
* Add "gid" and "group" keywords to display the effective group IDEdward Tomasz Napierala2011-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> Notes: svn path=/head/; revision=223086
* sys/sys/conf.h:Justin T. 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 Notes: svn path=/head/; revision=223085
* sys/cam/scsi/scsi_da.c:Justin T. 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 Notes: svn path=/head/; revision=223084
* - Check on target wordsize instead of compile time define if we build onAndreas Tobler2011-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. Notes: svn path=/head/; revision=223082
* Lay groundwork in CAM for recording and reporting physical path andJustin T. Gibbs2011-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 Notes: svn path=/head/; revision=223081
* Implement "global" mode for ipfw nat. It is similar to natd(8)Andrey V. Elsukov2011-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 Notes: svn path=/head/; revision=223080
* Check nat id a bit more strictly.Andrey V. Elsukov2011-06-141-6/+7
| | | | Notes: svn path=/head/; revision=223079
* Grab one of the ifcap bits for netmap, and enable printing in ifconfig.Luigi Rizzo2011-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). Notes: svn path=/head/; revision=223078