summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* getopt(3): clarify GNU instead of NetBSD.pfg2014-07-041-1/+1
| | | | | | | | The manpage and the code for r267745 came from NetBSD but the option is inspired on GNU. Reported by: Ben Kaduk MFC after: 3 days
* Separate concepts of frontend and port.mav2014-07-049-412/+438
| | | | | | | Before iSCSI implementation CTL had no knowledge about frontend drivers, it had only frontends, which really were ports (alike to LUNs, if comparing to backends). But iSCSI added there ioctl() method, which does not belong to frontend as a port, but belongs to a frontend driver.
* Remove targ_enable()/targ_disable() frontend methods.mav2014-07-046-130/+0
| | | | | Those methods were never implemented, and I believe that their concept is wrong, since single frontend (SCSI port) can not handle several targets.
* Document the -y option as a unit test option.marcel2014-07-042-2/+15
| | | | | | Add missing -v (and -y) to the usage message. Requested by: eadler@
* After EFI support was added to the installer, it needed to allow bootnwhitehorn2014-07-048-9/+49
| | | | | | | | | | | | | partitions of types other than "freebsd-boot" (in particular, "efi"). This allows the removal of some nasty hacks for supporting PowerPC systems, in particular aliasing freebsd-boot to apple-boot on APM and an IBM-specific code on MBR. This changes the installer to use the correct names, which also breaks a degeneracy in the meaning of "freebsd-boot" that allows the addition of support for some newer IBM systems that can boot from GPT in addition to MBR. Since I have no idea how to detect which those systems are, leave the default on IBM PPC systems as MBR for now.
* add a hit that you can enable this by default if you want... necessaryjmg2014-07-041-0/+1
| | | | | | if you want the keyboard break to work early in boot.. MFC after: 1 week
* BREAK_TO_DEBUGGER is not just serial console anymore, it controls alljmg2014-07-041-1/+1
| | | | | | | | | console's ability to enter the debugger.... rwatson forgot to document this when he changed it back in 2011... There is more docs to write about this, but at least fix this for now... Reviewed by: emaste MFC after: 1 week
* Adopt to current and other changes:mr2014-07-047-14/+77
| | | | | | use dedicated kernel files with some local settings use mkimg for ISO building put images into separate directory and rename them for better consistency
* look: implement long optionseadler2014-07-042-5/+16
| | | | | | | | | | gentoo has "util-linux 2.24.1" with long options. Other distributions have similar. usage() is intentionally unchanged to keep it short and sweet Reviewed by: jmg Discussed with: adrian, jilles
* Fix a typo.hiren2014-07-031-1/+1
|
* Add persistent reservation support to camcontrol(8).ken2014-07-037-43/+2684
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | camcontrol(8) now supports a new 'persist' subcommand that allows users to issue SCSI PERSISTENT RESERVE IN / OUT commands. sbin/camcontrol/Makefile: Add persist.c. sbin/camcontrol/persist.c: New persistent reservation support for camcontrol(8). We have support for all known operation modes for PERSISTENT RESERVE IN and PERSISTENT RESERVE OUT. exceptions noted above. sbin/camcontrol/camcontrol.8: Document the new 'persist' subcommand. In the section on the Transport ID (-I) option, explain what Transport IDs for each protocol should look like. At some point some of this information could probably get moved off in a separate man page, either on Transport IDs alone or a man page documenting the Transport ID parsing code. Add a number of examples of persistent reservation commands. Persistent Reservations are complex enough that the average user probably won't be able to get the commands exactly right by just reading the man page. These examples show a few basic and advanced examples of how to use persistent reservations. sbin/camcontrol/camcontrol.h: Move the definition for camcontrol_optret here, so we can use it for the persistent reservation code. Add a definition for the new scsipersist() function. sbin/camcontrol/camcontrol.c: Add 'persist' to the list of subcommands. Document 'persist' in the help text. sys/cam/scsi/scsi_all.c: Add the scsi_persistent_reserve_in() and scsi_persistent_reserve_out() CCB building functions. Add a new function, scsi_transportid_sbuf(). This takes a SCSI Transport ID (documented in SPC-4), and prints it to an sbuf(9). There are some transports (like ATA, USB, and SSA) for which there is no transport defined. We need to come up with a reasonable thing to do if we're presented with a Transport ID that claims to be for one of those protocols. Add new routines scsi_get_nv() and scsi_nv_to_str(). These functions do a table lookup to go between a string and an integer. There are lots of table lookups needed in the persistent reservation code in camcontrol(8). Add a new function, scsi_parse_transportid(), along with leaf node functions to parse: FC, 1394 and SAS (scsi_parse_transportid_64bit()) iSCSI (scsi_parse_transportid_iscsi()) SPI (scsi_parse_transportid_spi()) RDMA (scsi_parse_transportid_rdma()) PCIe (scsi_parse_transportid_sop()) Transport IDs. Given a string with the general form proto,id these functions create a SCSI Transport ID structure. sys/cam/scsi/scsi_all.h: Update the various persistent reservation data structures to SPC4r36l, but also rename some fields that were previously obsolete with the proper names from older SCSI specs. This allows using older, obsolete persistent reservation types when desired. Add function prototypes for the new persistent reservation CCB building functions. Add a data strucure for the READ FULL STATUS service action of the PERSISTENT RESERVE IN command. Add Transport ID structures for all protocols described in SPC-4. Add a new series of SCSI_PROTO_XXX definitions, and redefine other defines in terms of these new definitions. Add a prototype for scsi_transportid_sbuf(). Change a couple of "obsolete" persistent reservation data structure fields into something more meaningful, based on what the field was called when it was defined in the spec. (e.g. SPC, SPC-2, etc.) Create a new define, SPRI_MAX_LEN, for the maximum allocation length allowed for the PERSISTENT RESERVE IN command. Add data structures and enumerations for the new name/value translation functions. Add data structures for SCSI over PCIe Routing IDs. Bring the PERSISTENT RESERVE OUT Register and Move parameter list structure (struct scsi_per_res_out_parms) up to date with SPC-4. Add a data structure for the transport IDs that can optionally be appended to the basic PERSISTENT RESERVE OUT parameter list. Move SCSI protocol macro definitions out of the VPD page 0x83 definition and combine them with the more up to date protocol definitions higher in the file. Add function prototypes for scsi_nv_to_str(), scsi_get_nv(), scsi_parse_transportid_64bit(), scsi_parse_transportid_spi(), scsi_parse_transportid_rdma(), scsi_parse_transportid_iscsi(), scsi_parse_transportid_sop(), and scsi_parse_transportid(). Sponsored by: Spectra Logic Corporation MFC after: 1 week
* Add an option, -p, which makes gstat(8) to only display physical providersdelphij2014-07-032-5/+13
| | | | | | (those with rank of 1). MFC after: 2 weeks
* Add VHD support to mkimg(1). VHD is used by Xen and Microsoft's Hyper-Vmarcel2014-07-039-14/+364
|\ | | | | | | | | | | | | | | | | | | | | among others. Add an undocumented option for unit testing (-y). When given, the image will have UUIDs and timestamps synthesized in a way that gives identical results across runs. As such, UUIDs stop being unique, globally or otherwise. VHD support requested by: gjb@
| * Sync with head.marcel2014-07-031-3/+3
| |
| * Use image_copyout_region() to write 2MB of user data interleaved withmarcel2014-06-281-6/+14
| | | | | | | | | | the block's sector bitmap. This should complete the support, modulo bug fixing.
| * Add vhd_geometry() to fill in the geometry in the footer. We respectmarcel2014-06-281-1/+44
| | | | | | | | | | the command line arguments if possible, but otherwise implement the algorithm from the specification.
| * Support unit testing:marcel2014-06-281-3/+7
| | | | | | | | | | o use mkimg_uuid() instead of uuidgen(). o Check unit_testing in vhd_timestamp() to synthesize a time.
| * Use mkimg_uuid() instead of uuidgen().marcel2014-06-281-2/+2
| |
| * Add option -y for unit testing. When unit_testing is in effect, fieldsmarcel2014-06-282-1/+26
| | | | | | | | | | | | | | | | | | that have different values for each run, such as UUIDs and timestamps, will have a synthesized value. This allows us to compare images against a known baseline without fails negatives. Add mkimg_uuid() that wraps uuidgen() and provides synthesized values for unit testing.
| * Add image_copyout_region(). It allows a format to write chunks ofmarcel2014-06-282-9/+27
| | | | | | | | the image interleaved with metadata.
| * Previous commit was premature in stating that we could test. Themarcel2014-06-271-2/+9
| | | | | | | | | | | | file must have the footer at the end and we didn't write it yet. With this commit we actually write the footer. Let the testing begin.
| * Construct and write the BAT.marcel2014-06-271-1/+34
| | | | | | | | | | | | | | | | | | | | To allow testing of the code so far, scribble a bitmap before we write the image. This won't work for images that need multiple blocks, because each block starts with a sector bitmap, followed by 4096 sectors of user data. But it works nicely for images that fit in a single block (and are rounded to a block size. With this commit, we can test if the Azura platform accepts our images.
| * o Avoid using strncpy(), as it will confuse Coverity. Use integrals formarcel2014-06-271-27/+29
| | | | | | | | | | cookies and creator information. Just as meaningless; more cryptic. o Construct the dynamuc header and write it out.
| * In vhd_write(), construct the footer and write it out. Next in linemarcel2014-06-261-4/+74
| | | | | | | | | | | | | | | | | | is the dynamic header. After that, the block allocation table and the actual blocks. It's for the blocks we need some infrastructure support, because each data block is preceeded by a bitmap that tells whether a sector in that block has been written, etc. The point is that we interleave metadata with data and we don't have good support functions for writing chunks of the image yet.
| * Implement vhd_resize(): we round to a multiple of the block size,marcel2014-06-261-2/+6
| | | | | | | | which is 4096 sectors per block or 2M bytes per block.
| * Add structure definitions for headers with related constants .marcel2014-06-261-1/+75
| |
| * We don't need APM definitions here.marcel2014-06-262-2/+0
| |
| * Add stubbed vhd.c for VHD support.marcel2014-06-262-0/+64
| |
| * Sync with ^/head.marcel2014-06-266-16/+36
| |
* | Properly advertise that if_arge can handle long frames (if_arge is set toloos2014-07-031-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | handle packets up to 1536 bytes) This fixes the need to frag that could happen when using vlans on top of if_arge (which is a common case for the use the switch ports as individual NICs). Previously to this commit any vlan setup with if_arge as parent would have the MTU of the parent interface reduced by the size of dot1q header (4 bytes). Tested on TP-Link 1043ND (where the WAN port is just a switch port setup to tag packets in a different VLAN than the LAN ports). Reported and tested by: Harm Weites (harm at weites.com)
* | Initialize the switch vlan table at attachment.loos2014-07-031-7/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update some comments on code, specifying the correct vlans used on switch setup. Advertise the proper switch operation mode (the rtl8366rb only support dot1q vlans). This fixes the breakage that i introduced on r249752 and make the rtl8366rb switch works again with etherswitchcfg(8). Tested on TP-Link 1043ND. Tested by: me, Harm Weites (harm at weites.com)
* | The u-boot tarball needed for some boards, BEAGLEBONE forgjb2014-07-031-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | example, explicitly hard-code gcc(1) as the compiler. Partially revert r264703, which did a post-chroot install of gcc(1). This was initially removed because gcc(1) fails to build usr.bin/dtc/ causing the xdev target to fail. So this time, move the gcc(1) installation after xdev is built. This change is likely applicable to stable/10 arm build failures, as well. MFC after: 3 days Sponsored by: The FreeBSD Foundation
* | Merge from OpenSolaris (30-Jun-2009):pfg2014-07-031-2/+6
| | | | | | | | | | | | | | | | | | 6851093 system drops to kmdb with anonymous dtrace probes + kmdb This has no effect on FreeBSD (code is ifdef'ed) but is useful as reference for future merges. MFC after: 1 week
* | Merge from OpenSolaris (22-Apr-2008):pfg2014-07-032-2/+4
| | | | | | | | | | | | 6823388 DTrace ioctl handlers must validate all structure members MFC after: 1 week
* | Display efi framebuffer dimensions on bootemaste2014-07-031-1/+8
| | | | | | | | | | | | | | | | The EFI framebuffer produces corrupted output on certain systems. For now display the framebuffer parameters (address, dimensions, etc.) on boot to aid in tracking down these issues. Sponsored by: The FreeBSD Foundation
* | Merge from OpenSolaris (20-Apr-2008):pfg2014-07-032-1/+22
| | | | | | | | | | | | 6822482 DOF validation needs to handle loadable sections flagged as unloadable MFC after: 1 week
* | Describe kern.vty sc/vt tunable in syscons(4)emaste2014-07-031-1/+25
| | | | | | | | Reviewed by: wblock
* | Note that most errors are possible for all syscalls from utimes(2)kib2014-07-031-46/+20
| | | | | | | | | | | | | | | | | | family. Minor wording corrections. Based on the suggestions by bde. Sponsored by: The FreeBSD Foundation MFC after: 1 week
* | Micro-manage clang to get the expected inlining for cpu_search().kib2014-07-031-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | Mark cpu_search_lowest/cpu_search_highest/cpu_search_both as noinline, while cpu_search() gets always_inline. With the attributes set, cpu_search() is inlined in wrappers, and if()s with constant conditionals are optimized. On some tests on many-core machine, the hwpmc reported samples for cpu_search*() are reduced from 25% total to 9%. Submitted by: "Rang, Anton" <anton.rang@isilon.com> MFC after: 1 week
* | - Disable hardware checksumming until it is properly tested.hselasky2014-07-031-34/+29
| | | | | | | | | | | | | | | | | | - Don't discard frames if the dropped or error flag is set. - Don't remove the last 4-bytes of every packet. - Add extra range check for data position offset when receiving data. MFC after: 1 day PR: 191432
* | Fix a bug in hwpmc(4) callchain retrieval, for both user and kernel.jhibbits2014-07-031-9/+13
| | | | | | | | | | | | | | | | | | The array index for the callchain is getting double-incremented -- both in the loop and the storing. It should only be incremented in one location. Also, constrain the stack pointer range check. MFC after: 2 weeks
* | Rework the BIO_DELETE code slightly. Always queue the BIO_DELETEimp2014-07-031-90/+103
| | | | | | | | | | | | | | | | | | | | requests on the trim_queue, even for the CFA ERASE. This allows us, in the future, to collapse adjacent requests. Since CFA ERASE is only for CF cards, and it is so restrictive in what it can do, the collapse code is not presently here. This also brings the ada driver more in line with the da driver's treatment of BIO_DELETEs. Reviewed by: mav@
* | Use separate memory type M_CTLIO for I/Os.mav2014-07-031-5/+6
| | | | | | | | | | | | CTL allocate large amount of RAM. This change give some more stats. MFC after: 2 weeks
* | More sed(1) usage fixing: the extension -i is not optional.pfg2014-07-031-1/+1
| | | | | | | | | | Pointed out by: jmallet MFC after: 3 days
* | Use correct flag for event index.grehan2014-07-031-1/+1
| | | | | | | | | | | | Submitted by: luigi Obtained from: Vincenzo Maffione, Universita` di Pisa MFC after: 1 week
* | Remove some write only variablesbryanv2014-07-021-6/+0
| | | | | | | | MFC after: 3 days
* | Fix sed(1) usage: the extension -i is not an optional.pfg2014-07-021-1/+1
| | | | | | | | MFC after: 3 days
* | Remove ia64 from the list of known architectures and add an entry tomarcel2014-07-024-33/+8
| | | | | | | | | | | | | | | | | | | | | | | | UPDATING. This is the first step towards the removal of ia64 from head. A buildworld for ia64 will now yield: % make buildworld make[1]: "/usr/src/Makefile.inc1" line 151: Unknown target ia64:ia64. While here, trim the ia64-specific additions from ObsoleteFiles.inc Discussed at: BSDcan
* | Fix a typo and improve readability.hiren2014-07-020-0/+0
| |
* | Improve markup, change references to nonexistent vt_vga(4), remove somewblock2014-07-021-26/+30
| | | | | | | | | | | | | | language redundancy, and move the examples so sections are in the standard order. MFC after: 1 week
OpenPOWER on IntegriCloud