aboutsummaryrefslogtreecommitdiff
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Add apple-boot, apple-hfs and apple-ufs aliases to MBR scheme.Andrey V. Elsukov2015-05-051-1/+5
| | | | | | | | | | Sort DOSPTYP_* entries in diskmbr.h by value. Document these scheme-specific types in gpart(8). MFC after: 1 week Notes: svn path=/head/; revision=282465
* Remove "capability mode sandbox enabled" messages.Brooks Davis2015-05-041-3/+0
| | | | | | | | | | | | | | These messages serve little purpose and break some consumers. PR: 199855 Differential Revision: https://reviews.freebsd.org/D2440 Reviewed by: rwatson Approved by: pjd MFC after: 1 week Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=282436
* MFV r225523, r282431:Glen Barber2015-05-041-1/+1
| | | | | | | | | | | | | | | | | r225523 (hrs): Import openresolv-3.4.4. r282431: Import openresolv-3.7.0. PR: 199854 Submitted by: yuri@rawbw.com MFC after: 1 week Relnotes: yes Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=282434
* Approved, oprócz użycie RESTORE_ERRNO() do ustawiania errno.Mariusz Zaborski2015-05-022-3/+3
| | | | | | | | | | | | | | | | | | | | Change the nvlist_recv() function to take additional argument that specifies flags expected on the received nvlist. Receiving a nvlist with different set of flags than the ones we expect might lead to undefined behaviour, which might be potentially dangerous. Update consumers of this and related functions and update the tests. Approved by: pjd (mentor) Update man page for nvlist_unpack, nvlist_recv, nvlist_xfer, cap_recv_nvlist and cap_xfer_nvlist. Reviewed by: AllanJude Approved by: pjd (mentor) Notes: svn path=/head/; revision=282346
* Generalize object reference handling in ipfw rules.Alexander V. Chernikov2015-04-263-76/+118
| | | | | | | No ABI changes. Notes: svn path=/head/; revision=282004
* Remove End Of Line whitespacesBaptiste Daroussin2015-04-261-3/+3
| | | | Notes: svn path=/head/; revision=282000
* Fix 2 rendering issue with mandocBaptiste Daroussin2015-04-261-2/+2
| | | | Notes: svn path=/head/; revision=281999
* Fix minor mdoc issues.Joel Dahl2015-04-241-1/+0
| | | | Notes: svn path=/head/; revision=281931
* Fix growfs(8) build with debug enabled (make -DGFSDBG).Edward Tomasz Napierala2015-04-242-5/+5
| | | | | | | | | | PR: 199641 Submitted by: Willem Jan Withagen <wjw at digiware dot nl> MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=281929
* dmesg: accommodate message buffer growth between the sysctl callsEric van Gyzen2015-04-201-0/+3
| | | | | | | | | | | | | Allocate 12.5% extra space to avoid ENOMEM when the message buffer is growing steadily. Reported by: Steve Wahl <steve_wahl@dell.com> (and tested) Approved by: kib (mentor) Obtained from: Dell Inc. MFC after: 1 week Notes: svn path=/head/; revision=281787
* Fix use-after-free.Alexander V. Chernikov2015-04-191-3/+2
| | | | | | | | Reported by: Coverity Scan, pfg CID: 1245747 Notes: svn path=/head/; revision=281740
* Remove some oldnfs remnants.Edward Tomasz Napierala2015-04-184-11/+1
| | | | | | | | | Differential Revision: https://reviews.freebsd.org/D2287 Reviewed by: rmacklem@ Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=281691
* Move ALTQ from contrib to net/altq. The ALTQ code is for many yearsGleb Smirnoff2015-04-164-13/+13
| | | | | | | | | | | | discontinued by its initial authors. In FreeBSD the code was already slightly edited during the pf(4) SMP project. It is about to be edited more in the projects/ifnet. Moving out of contrib also allows to remove several hacks to the make glue. Reviewed by: net@ Notes: svn path=/head/; revision=281613
* - ggatel.8 currently doesn't mention the 'rescue' command andJason Helfman2015-04-091-12/+14
| | | | | | | | | | | | | | | documents a non-existing 'attach' command instead. - while here address a spelling error PR: 199111 Differential Revision: https://reviews.freebsd.org/D2259 Submitted by: fk@fabiankeil.de Obtained from: ElectroBSD Approved by: wblock (mentor) MFC after: 1 week Notes: svn path=/head/; revision=281324
* Update documented OEM string in newfs_msdos(8).Pedro F. Giffuni2015-04-091-2/+2
| | | | | | | | | | This was updated in r203868 to better match the naming scheme in other OSs that use FAT. MFC after: 3 days Notes: svn path=/head/; revision=281320
* ifmedia changes:Eric Joyner2015-04-071-6/+26
| | | | | | | | | | | | | | | | | | | | | | | | - Extend the number of available subtypes for Ethernet media by using some of the ifmedia word's option bits to help denote subtypes. As a result, the number of possible Ethernet subtype values increases from 31 to 511. - Use some of those new values to define new media types. - lacp_compose_key() recgonizes the new Ethernet media types added. (Change made as required by a comment in if_media.h) - New ioctl, SIOGIFXMEDIA, to handle getting the new extended media types. SIOCGIFMEDIA is retained for backwards compatibility. - Changes to ifconfig to allow it to handle the new extended media types. Submitted by: mike@karels.net (original), hselasky Reviewed by: jfvogel, gnn, hselasky Approved by: jfvogel (mentor), gnn (mentor) Differential Revision: http://reviews.freebsd.org/D1965 Notes: svn path=/head/; revision=281236
* Stop including if_var.h from userland.Gleb Smirnoff2015-04-067-7/+0
| | | | | | | Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=281143
* Add articles, avoid use of "you", simplify a few sentences.Warren Block2015-04-021-16/+15
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=280988
* Constify.Xin LI2015-03-311-11/+11
| | | | | | | | Suggested by: rdivacky MFC after: 2 weeks Notes: svn path=/head/; revision=280914
* Fix remaining warnings.Xin LI2015-03-272-5/+2
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=280767
* - Correct type for checkAgainst.Xin LI2015-03-261-5/+5
| | | | | | | | | | | - Staticify flags that are not used outside the file scope. PR: bin/193471 Submitted by: Robert Sprowson <webpages sprow.co.uk> MFC after: 2 weeks Notes: svn path=/head/; revision=280716
* Make GEOM_PART work in presence of previous withered self.Alexander Motin2015-03-261-3/+10
| | | | | | | | MFC after: 2 weeks Sponsored by: iXsystems, Inc. Notes: svn path=/head/; revision=280687
* Convert savecore to libxo. The 'verbose' paths still use printf since they'reScott Long2015-03-222-24/+50
| | | | | | | | | | meant for interactivity on the command line and contain a lot of redundant information. Obtained from: Netflix, Inc. Notes: svn path=/head/; revision=280348
* Add camcontrol subcommands to control APM and AAM levels.Alexander Motin2015-03-192-3/+99
| | | | | | | | MFC after: 1 week Sponsored by: iXsystems, Inc. Notes: svn path=/head/; revision=280249
* Document that nextboot(8) doesn't work as expected with ZFSAllan Jude2015-03-171-1/+7
| | | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D2087 Submitted by: feld (request) Reviewed by: feld Approved by: bcr (mentor) Sponsored by: ScaleEngine Inc. Notes: svn path=/head/; revision=280191
* Make ATA power management commands to work on SCSI HBAs via PASS THROUGH.Alexander Motin2015-03-171-32/+14
| | | | | | | | MFC after: 2 weeks Sponsored by: iXsystems, Inc. Notes: svn path=/head/; revision=280166
* Fix minor fallout from sysctl strings being nulterminated now. The dmesgIan Lepore2015-03-161-2/+6
| | | | | | | | | | | | code can read the buffer via sysctl or from a core file. In the core file case there will be no nulterm, and the code copes with that, but now in the sysctl case there is a nulterm (there didn't used to be). The least disruptive way to restore the old behavior (and eliminate a spurious '\000' at the end of the output) is to remove the nulterm (by decrementing the buffer length) in the sysctl case. Notes: svn path=/head/; revision=280156
* restore: Preserve timestamps to the nanosecond.Jilles Tjoelker2015-03-142-21/+23
| | | | | | | | | | | | The restore utility already knows the full-resolution timestamps, so the only thing to do is to stop converting the timespecs to timevals and use futimens() and utimensat(). Differential Revision: https://reviews.freebsd.org/D2020 Reviewed by: jhb Notes: svn path=/head/; revision=279986
* Properly initialize scope zone id when next hop address storedAndrey V. Elsukov2015-03-131-5/+8
| | | | | | | | | | | directly in the O_FORWARD_IP6 opcode. Use getnameinfo(3) to formatting the IPv6 addresses of such opcodes. Obtained from: Yandex LLC Sponsored by: Yandex LLC Notes: svn path=/head/; revision=279956
* Simplify string mangling in ifmaybeload().John Baldwin2015-03-131-5/+4
| | | | | | | | | | | | | | - Use strlcpy() instead of strcpy(). - Use strlcat() instead of a strlcpy() with a magic number subtracted from the length. - Replace strncmp(..., strlen(foo) + 1) with strcmp(...). Differential Revision: https://reviews.freebsd.org/D1814 Reviewed by: rpaulo MFC after: 2 weeks Notes: svn path=/head/; revision=279951
* Fix `ipfw fwd tablearg'. Use dedicated field nh4 in struct table_valueAndrey V. Elsukov2015-03-132-9/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to obtain IPv4 next hop address in tablearg case. Add `fwd tablearg' support for IPv6. ipfw(8) uses INADDR_ANY as next hop address in O_FORWARD_IP opcode for specifying tablearg case. For IPv6 we still use this opcode, but when packet identified as IPv6 packet, we obtain next hop address from dedicated field nh6 in struct table_value. Replace hopstore field in struct ip_fw_args with anonymous union and add hopstore6 field. Use this field to copy tablearg value for IPv6. Replace spare1 field in struct table_value with zoneid. Use it to keep scope zone id for link-local IPv6 addresses. Since spare1 was used internally, replace spare0 array with two variables spare0 and spare1. Use getaddrinfo(3)/getnameinfo(3) functions for parsing and formatting IPv6 addresses in table_value. Use zoneid field in struct table_value to store sin6_scope_id value. Since the kernel still uses embedded scope zone id to represent link-local addresses, convert next_hop6 address into this form before return from pfil processing. This also fixes in6_localip() check for link-local addresses. Differential Revision: https://reviews.freebsd.org/D2015 Obtained from: Yandex LLC Sponsored by: Yandex LLC Notes: svn path=/head/; revision=279948
* Add GUID and alias for Apple Core Storage partition.Andrey V. Elsukov2015-03-121-1/+7
| | | | | | | | PR: 196241 MFC after: 1 week Notes: svn path=/head/; revision=279935
* - Implement loopback probing state in enhanced DAD algorithm.Hiroki Sato2015-03-053-2/+21
| | | | | | | | | - Add no_dad and ignoreloop per-IF knob. no_dad disables DAD completely, and ignoreloop is to prevent infinite loop in loopback probing state when loopback is permanently expected. Notes: svn path=/head/; revision=279676
* Make the "automounted" flag work for FUSE filesystems.Edward Tomasz Napierala2015-03-011-0/+7
| | | | | | | | | | PR: 192852 Submitted by: taku at tackymt.homeip.net (earlier version) MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=279489
* When gpart(8) is trying automatically determine the first availableAndrey V. Elsukov2015-02-261-1/+1
| | | | | | | | | | | | block of free space after existing partition, take into account provider's stripeoffset, since the result will be adjusted to this value. PR: 197989 MFC after: 1 week Notes: svn path=/head/; revision=279324
* Make sure that the flags for the XPT_DEV_ADVINFO CCB are initializedKenneth D. Merry2015-02-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | properly. If there is garbage in the flags field, it can sometimes include a set CDAI_FLAG_STORE flag, which may cause either an error or perhaps result in overwriting the field that was intended to be read. sys/cam/cam_ccb.h: Add a new flag to the XPT_DEV_ADVINFO CCB, CDAI_FLAG_NONE, that callers can use to set the flags field when no store is desired. sys/cam/scsi/scsi_enc_ses.c: In ses_setphyspath_callback(), explicitly set the XPT_DEV_ADVINFO flags to CDAI_FLAG_NONE when fetching the physical path information. Instead of ORing in the CDAI_FLAG_STORE flag when storing the physical path, set the flags field to CDAI_FLAG_STORE. sys/cam/scsi/scsi_sa.c: Set the XPT_DEV_ADVINFO flags field to CDAI_FLAG_NONE when fetching extended inquiry information. sys/cam/scsi/scsi_da.c: When storing extended READ CAPACITY information, set the XPT_DEV_ADVINFO flags field to CDAI_FLAG_STORE instead of ORing it into a field that isn't initialized. sys/dev/mpr/mpr_sas.c, sys/dev/mps/mps_sas.c: When fetching extended READ CAPACITY information, set the XPT_DEV_ADVINFO flags field to CDAI_FLAG_NONE instead of setting it to 0. sbin/camcontrol/camcontrol.c: When fetching a device ID, set the XPT_DEV_ADVINFO flags field to CDAI_FLAG_NONE instead of 0. sys/sys/param.h: Bump __FreeBSD_version to 1100061 for the new XPT_DEV_ADVINFO CCB flag, CDAI_FLAG_NONE. Sponsored by: Spectra Logic MFC after: 1 week Notes: svn path=/head/; revision=278964
* add support for specifying an initial buffer size when fetching aJohn-Mark Gurney2015-02-132-10/+28
| | | | | | | | | | sysctl... This is useful for kern.arandom which (without -B) will happily return 0 bytes, which isn't too useful or random... fix spelling (thanks igor!) of settable while I'm here... Notes: svn path=/head/; revision=278654
* Retrieve counters from kernel if rule timstamping is requested.Alexander V. Chernikov2015-02-051-2/+4
| | | | | | | | | PR: kern/197271 Submitted by: lev Sponsored by: Yandex LLC Notes: svn path=/head/; revision=278261
* Revert the change of flowid output format. [1]Vsevolod Stakhov2015-02-022-30/+4
| | | | | | | | | | | Reverse the sorting order of the interfaces addresses familise so it should be the same as getifaddrs(3) order. [2] Suggested by: hrs [1], bz [2] Approved by: hrs, bapt Notes: svn path=/head/; revision=278107
* Style(9) fixes.Vsevolod Stakhov2015-02-022-36/+47
| | | | | | | | Approved by: bapt, ae X-MFC-With: r278080 Notes: svn path=/head/; revision=278081
* Reorganize the list of addresses associated with an interface and group themVsevolod Stakhov2015-02-022-5/+196
| | | | | | | | | | | | | | | | | | | based on the address family. This should help to recognize interfaces with multiple AF (e.g. ipv4 and ipv6) with many aliases or additional addresses. The order of addresses inside a single group is strictly preserved. Improve the scope_id output for AF_INET6 families, as the current approach uses hexadecimal string that is basically the ID of an interface, whilst this information is already depicted by getnameinfo(3) call. Therefore, now ifconfig just prints the scope of address as it is defined in 2.4 of RFC 2373. PR: 197270 Approved by: bapt MFC after: 2 weeks Notes: svn path=/head/; revision=278080
* Remove duplicate MK_ISCSI block and sort the conditional blocks so this errorEnji Cooper2015-02-021-9/+5
| | | | | | | | | | won't crop up again in the future Reported by: gjb MFC after: 1 week Notes: svn path=/head/; revision=278070
* Fix sysctl name.Edward Tomasz Napierala2015-01-271-2/+2
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=277799
* Build sbin/iscontrol again if MK_ISCSI != noEnji Cooper2015-01-261-0/+4
| | | | | | | | | MFC after: 13 days X-MFC with: r277675 Pointyhat to: me Notes: svn path=/head/; revision=277726
* Add MK_HAST knob for building and installing hastd(8), et alEnji Cooper2015-01-261-2/+5
| | | | | | | | MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=277725
* natd(8) will work with an unconfigured interface and effectively not doJohn Baldwin2015-01-251-3/+3
| | | | | | | | | | | | | anything until the interface is assigned an address. This fixes ipfw_nat to do the same by using an IP of INADDR_ANY instead of aborting the nat setup if the requested interface is not yet configured. Differential Revision: https://reviews.freebsd.org/D1539 Reviewed by: melifaro, glebius, gnn MFC after: 1 week Notes: svn path=/head/; revision=277714
* Add MK_CCD knob for building and installing ccd(4), ccdconfig, etcEnji Cooper2015-01-251-1/+4
| | | | | | | | MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=277678
* Add MK_ISCSI knob for building the iscsi initiator, iscsi daemon, kernelEnji Cooper2015-01-251-1/+4
| | | | | | | | | | modules, etc MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=277675
* Fix building rcorder with -DDEBUG by using libutil.h instead of util.h fromEnji Cooper2015-01-252-8/+3
|\ | | | | | | | | | | | | | | | | | | usr.bin/make MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=277674
| * - Revert r277670 (#include order is required for fparseln)Enji Cooper2015-01-252-4/+1
| | | | | | | | | | | | | | | | - Remove unnecessary CFLAGS+= -I now that make is no longer required to make rcorder build Notes: svn path=/projects/building-blocks/; revision=277673