summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Add GUID and alias for Apple Core Storage partition.ae2015-03-121-1/+7
| | | | | PR: 196241 MFC after: 1 week
* - Implement loopback probing state in enhanced DAD algorithm.hrs2015-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.
* Make the "automounted" flag work for FUSE filesystems.trasz2015-03-011-0/+7
| | | | | | | PR: 192852 Submitted by: taku at tackymt.homeip.net (earlier version) MFC after: 1 month Sponsored by: The FreeBSD Foundation
* When gpart(8) is trying automatically determine the first availableae2015-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
* Make sure that the flags for the XPT_DEV_ADVINFO CCB are initializedken2015-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
* add support for specifying an initial buffer size when fetching ajmg2015-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...
* Retrieve counters from kernel if rule timstamping is requested.melifaro2015-02-051-2/+4
| | | | | | PR: kern/197271 Submitted by: lev Sponsored by: Yandex LLC
* Revert the change of flowid output format. [1]vsevolod2015-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
* Style(9) fixes.vsevolod2015-02-022-36/+47
| | | | | Approved by: bapt, ae X-MFC-With: r278080
* Reorganize the list of addresses associated with an interface and group themvsevolod2015-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
* Remove duplicate MK_ISCSI block and sort the conditional blocks so this errorngie2015-02-021-9/+5
| | | | | | | won't crop up again in the future Reported by: gjb MFC after: 1 week
* Fix sysctl name.trasz2015-01-271-2/+2
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Build sbin/iscontrol again if MK_ISCSI != nongie2015-01-261-0/+4
| | | | | | MFC after: 13 days X-MFC with: r277675 Pointyhat to: me
* Add MK_HAST knob for building and installing hastd(8), et alngie2015-01-261-2/+5
| | | | | MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* natd(8) will work with an unconfigured interface and effectively not dojhb2015-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
* Add MK_CCD knob for building and installing ccd(4), ccdconfig, etcngie2015-01-251-1/+4
| | | | | MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* Add MK_ISCSI knob for building the iscsi initiator, iscsi daemon, kernelngie2015-01-251-1/+4
| | | | | | | modules, etc MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* Fix building rcorder with -DDEBUG by using libutil.h instead of util.h fromngie2015-01-252-8/+3
| | | | | | | usr.bin/make MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* After r270929 RAW IP code assumes that all IP fields are in networkae2015-01-231-2/+2
| | | | | byte order. Fix ping(8) to pass an IP header with converted ip_off and ip_len fields, when IP_HDRINCL socket option used.
* Eliminate incorrect IPv6 mask guessing:melifaro2015-01-161-9/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | RFC 2374 concept of 'IPv6 Aggregatable Global Unicast Address Format' was deprecated by RFC 3587 12 years ago. Before: 15:06 [1] edge# netstat -rn6 | grep 2a02:6b8:: 2a02:6b8::/32 2a02:978:2::1 UGS em0 15:06 [1] edge# route -6n get 2a02:6b8:: route: writing to routing socket: No such process After: 15:07 [1] edge# /usr/obj/usr/src/sbin/route/route -n6 get 2a02:6b8:: route to: 2a02:6b8:: destination: 2a02:6b8:: mask: ffff:ffff:: gateway: 2a02:978:2::1 fib: 0 interface: em0 flags: <UP,GATEWAY,DONE,STATIC> recvpipe sendpipe ssthresh rtt,msec mtu weight expire 0 0 0 0 1500 1 0 MFC after: 2 weeks
* Add devd(8) notifications for creation and destruction of GEOM devices.trasz2015-01-141-1/+28
| | | | | | Differential Revision: https://reviews.freebsd.org/D1211 MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Improve camcontrol(8) handling of drive defect data.ken2015-01-082-184/+453
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes a new summary mode (-s) for camcontrol defects that quickly tells the user the most important thing: how many defects are in the requested list. The actual location of the defects is less important. Modern drives frequently have more than the 8191 defects that can be reported by the READ DEFECT DATA (10) command. If they don't have that many grown defects, they certainly have more than 8191 defects in the primary (i.e. factory) defect list. The READ DEFECT DATA (12) command allows for longer parameter lists, as well as indexing into the list of defects, and so allows reporting many more defects. This has been tested with HGST drives and Seagate drives, but does not fully work with Seagate drives. Once I have a Seagate spec I may be able to determine whether it is possible to make it work with Seagate drives. scsi_da.h: Add a definition for the new long block defect format. Add bit and mask definitions for the new extended physical sector and bytes from index defect formats. Add a prototype for the new scsi_read_defects() CDB building function. scsi_da.c: Add a new scsi_read_defects() CDB building function. camcontrol(8) was previously composing CDBs manually. This is long overdue. camcontrol.c: Revamp the camcontrol defects subcommand. We now go through multiple stages in trying to get defect data off the drive while avoiding various drive firmware quirks. We start off by requesting the defect header with the 10 byte command. If we're in summary mode (-s) and the drive reports fewer defects than can be represented in the 10 byte header, we're done. Otherwise, we know that we need to issue the 12 byte command if the drive reports the maximum number of defects. If we're in summary mode, we're done if we get a good response back when asking for the 12 byte header. If the user has asked for the full list, then we use the address descriptor index field in the 12 byte CDB to step through the list in 64K chunks. 64K is small enough to work with most any ancient or modern SCSI controller. Add support for printing the new long block defect format, as well as the extended physical sector and bytes from index formats. I don't have any drives that support the new formats. Add a hexadecimal output format that can be turned on with -X. Add a quiet mode (-q) that can be turned on with the summary mode (-s) to just print out a number. Revamp the error detection and recovery code for the defects command to work with HGST drives. Call the new scsi_read_defects() CDB building function instead of rolling the CDB ourselves. Pay attention to the residual from the defect list request when printing it out, so we don't run off the end of the list. Use the new scsi_nv library routines to convert from strings to numbers and back. camcontrol.8: Document the new defect formats (longblock, extbfi, extphys) and command line options (-q, -s, -S and -X) for the defects subcommand. Explain a little more about what drives generally do and don't support. Sponsored by: Spectra Logic MFC after: 1 week
* Remove old ioctl use and support, once and for all.imp2015-01-064-150/+20
|
* Integrate sbin/ifconfig/tests from NetBSD into atf/kyuangie2015-01-042-0/+17
| | | | Sponsored by: EMC / Isilon Storage Division
* mdoc: paragraph improvements.joel2015-01-042-12/+3
|
* Belatedly commit the patch for SA-14:21 to head. It was not committed todes2015-01-031-0/+4
| | | | | head at the time because it's a band-aid, rather than a complete fix, but the complete fix never materialized.
* mdoc: remove EOL whitespace.joel2014-12-297-17/+17
|
* mdoc: improvements to SEE ALSO.joel2014-12-277-10/+10
|
* Adjust printf format specifiers for dev_t and ino_t in user space.gleb2014-12-171-19/+27
| | | | | | ino_t and dev_t are about to become uint64_t. Reviewed by: kib, mckusick
* Prefix all the vxlan ifconfig commands so they are uniquebryanv2014-12-173-43/+43
| | | | And rehook ifvxlan back into the build.
* Add ability to not specify a zone identifier twice, when both source andae2014-12-161-4/+13
| | | | | | | | | | | destination addresses are specified. For example: # ping6 -S fe80::1%ix0 ff02::1 or # ping6 -S fe80::1 fe80::2%ix0 Obtained from: Yandex LLC Sponsored by: Yandex LLC
* sbin/shutdown: Support time units as in 'shutdown -r +5sec'gleb2014-12-162-3/+32
| | | | | | Units supported: s, sec, m, min, h, hour. Differential Revision: https://reviews.freebsd.org/D1272
* Add fstyp(8). This utility, named after its SVR4 counterpart, detectstrasz2014-12-101-1/+2
| | | | | | | | | | filesystems. It differs from file(1) in that it gives machine-parseable output, it outputs filesystem labels, doesn't get confused by other formats metadata, and runs in Capsicum sandbox. Differential Revision: https://reviews.freebsd.org/D1255 Relnotes: yes Sponsored by: The FreeBSD Foundation
* Move iscsi.conf.5 from sbin/iscontrol/ to usr.bin/iscsictl/, as thetrasz2014-12-052-189/+1
| | | | | | | former is obsolete. MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* Fix inverted logic introduced in r272154.delphij2014-12-011-2/+5
| | | | | Noticed by: trasz MFC after: 2 weeks
* Disable the vxlan code until the people reponsible for it can come up withdes2014-12-011-1/+1
| | | | | | new command names that don't conflict with existing commands. Pointy hat to: bryanv
* Convert sbin/mdconfig/tests from prove format tests to ATF format testsngie2014-11-275-613/+284
| | | | | | | | | | | | | | As a side effect... 1. The tests now checks for the root user before continuing with kyua, which is more visible than the test being skipped with the TAP protocol 2. The tests work with devices that aren't /dev/md0 by caching the device attached during the test to a file, and later use the cached information to detach the device in the cleanup routine 3. The tests no longer require perl to run MFC after: 1 week PR: 191191 Sponsored by: EMC / Isilon Storage Division
* Convert sbin/ to LIBADDbapt2014-11-2564-144/+73
| | | | Reduce overlinking
* Misc mdoc fixes:joel2014-11-231-2/+1
| | | | | | | | - Remove superfluous paragraph macros. - Remove/fix empty or incorrect macros. - Sort sections into conventional order. - Terminate quoted strings properly. - Remove EOL whitespace.
* Cross-reference autounmountd(8) from umount(8).trasz2014-11-221-1/+2
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Cross-reference automount(8) from mount(8).trasz2014-11-221-1/+2
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Recommit r274750.imp2014-11-211-29/+25
|
* Back our r274750 until discussions on proper fix are over.imp2014-11-201-25/+29
|
* Use geom attribute "PART::type" to determine partition type and chooseae2014-11-201-29/+25
| | | | | | relevant fsck_xxx utility. MFC after: 1 week
* Uniformly refer to a file system as "file system".trasz2014-11-201-3/+3
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Add example on how to use gpart before growfs. While here, reorder examplestrasz2014-11-201-6/+6
| | | | | | | so that the simplest one comes first. MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Document growfs(8) feature apparently nobody knows about.trasz2014-11-201-0/+3
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Use proper ordering in EXAMPLES section in growfs(8).trasz2014-11-201-5/+4
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Expose groups by default in ifconfig output. This was never hidden byfeld2014-11-191-3/+2
| | | | | | | | | | | | | OpenBSD; unsure why we chose to do so. As groups are a requirement for pf, exposing them by default will make our pf implementation less confusing. While here add a missing free() that OpenBSD fixed 7 years ago. PR: 194925 Differential Revision: https://reviews.freebsd.org/D1185 Approved by: des Obtained from: OpenBSD
* Fix geom's "usage" generation to not fabricate usage/help output for anyfeld2014-11-171-0/+5
| | | | | | | | imaginary class we give it. Differential Revision: https://reviews.freebsd.org/D1150 Submitted by: homerj Approved by: pjd
OpenPOWER on IntegriCloud