summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Fix ifconfig to show pltime and vltime with -L option,ume2014-06-301-9/+13
| | | | | | | | again after usage change from time_second to time_uptime. PR: 188520 Submitted by: Guy Yur <guyyur__at__gmail.com> MFC after: 1 week
* Don't hide zero-length strings when doing sysctl listings.hselasky2014-06-271-2/+2
| | | | MFC after: 1 week
* Remove duplicated includes.pjd2014-06-262-4/+0
| | | | Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org>
* mdoc: remove superfluous paragraph macros.joel2014-06-235-5/+0
|
* use .Mt to mark up email addresses consistently (part1)bapt2014-06-2057-93/+92
| | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de>
* Fix spelling, typos, missing articles, contractions. Expanded versionwblock2014-06-181-6/+7
| | | | | | | | of patch supplied with PR. PR: 191001 Submitted by: olgeni MFC after: 1 week
* Add disklabel64 support to GEOM_PART class.ae2014-06-111-1/+7
| | | | | | | | | | | | | | This partitioning scheme is used in DragonFlyBSD. It is similar to BSD disklabel, but has the following improvements: * metadata has own dedicated place and isn't accessible through partitions; * all offsets are 64-bit; * supports 16 partitions by default (has reserved place for more); * has reserved place for backup label (but not yet implemented); * has UUIDs for partitions and partition types; No objections from: geom MFC after: 2 weeks Relnotes: yes
* In preparation for ASLR [1] support add WITH_PIE to support building with -fPIE.bdrewery2014-06-089-0/+18
| | | | | | | | | | | | | | | | This is currently an opt-in build flag. Once ASLR support is ready and stable it should changed to opt-out and be enabled by default along with ASLR. Each application Makefile uses opt-out to ensure that ASLR will be enabled by default in new directories when the system is compiled with PIE/ASLR. [2] Mark known build failures as NO_PIE for now. The only known runtime failure was rtld. [1] http://www.bsdcan.org/2014/schedule/events/452.en.html Submitted by: Shawn Webb <lattera@gmail.com> Discussed between: des@ and Shawn Webb [2]
* Minor mdoc improvements.joel2014-06-062-2/+1
|
* The 'create' subcommand doesn't have '-h' option.pjd2014-06-061-1/+1
|
* Style cleanups on ifconfig.8allanjude2014-06-061-14/+20
| | | | | | | | | fix igor warnings uppercase all instances of Ethernet replace bad e.g. CR: D91 Approved by: wblock (mentor)
* Bulk document the kern.geom.label.*.enable sysctls and tunables.ivoras2014-06-041-0/+13
|
* Document the diskid automatic label class.ivoras2014-06-021-2/+20
| | | | | | | While there, also document the glabel "native" labels and explain why there are additional nodes created for nested GEOM classes. Reminded by: jmg
* ECN marking implenetation for dummynet.hiren2014-06-013-10/+26
| | | | | | | | | | Changes include both DCTCP and RFC 3168 ECN marking methodology. DCTCP draft: http://tools.ietf.org/html/draft-bensley-tcpm-dctcp-00 Submitted by: Midori Kato (aoimidori27@gmail.com) Worked with: Lars Eggert (lars@netapp.com) Reviewed by: luigi, hiren
* improve ifconfig(8) man page by describing special behaviour of -l etherallanjude2014-05-271-0/+17
| | | | | | PR: docs/187644 Submitted by: Andrew Merenbach (original patch) Approved by: bcr (mentor)
* If called without -T or -t, fsck attempts to detect thetrhodes2014-05-231-1/+13
| | | | | | | file system type. If this fails, fsck will fail with "unknown file system type" message. PR: 188214
* Document VMware-related filesystems additions.marck2014-05-211-0/+24
| | | | | Reviewed by: jmg MFC after: 1 week
* Assorted updates to md5.1bjk2014-05-181-7/+9
| | | | | | | | | | | | | | | Note that the -c argument's parameter is compared against the digest of the file, not the file. [1] Update the "current time" parentheticals for notes about reversing and colliding the hash functions. [1] Some general mdoc updates. PR: docs/188043 [1] Submitted by: Jamie Landeg-Jones [1] Approved by: hrs (mentor) MFC after: 1 week
* Fix wrong formatting of 0.0.0.0/X table records in ipfw(8).melifaro2014-05-171-1/+1
| | | | | | | | | | | | | | Add `flags` u16 field to the hole in ipfw_table_xentry structure. Kernel has been guessing address family for supplied record based on xent length size. Userland, however, has been getting fixed-size ipfw_table_xentry structures guessing address family by checking address by IN6_IS_ADDR_V4COMPAT(). Fix this behavior by providing specific IPFW_TCF_INET flag for IPv4 records. PR: bin/189471 Submitted by: Dennis Yusupoff <dyr@smartspb.net> MFC after: 2 weeks
* Add mention of metadata version 7 in FreeBSD 10.0thomas2014-05-131-0/+2
| | | | | Reviewed by: pjd MFC after: 1 day
* Fix incorrect netmasks being passed via rtsock.melifaro2014-05-081-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since radix has been ignoring sa_family in passed sockaddrs, no one ever has bothered filling valid sa_family in netmasks. Additionally, radix adjusts sa_len field in every netmask not to compare zero bytes at all. This leads us to rt_mask with sa_family of AF_UNSPEC (-1) and arbitrary sa_len field (0 for default route, for example). However, rtsock have been passing that rt_mask intact for ages, requiring all rtsock consumers to make ther own local hacks. We even have unfixed on in base: do `route -n monitor` in one window and issue `route -n get addr` for some directly-connected address. You will probably see the following: got message of size 304 on Thu May 8 15:06:06 2014 RTM_GET: Report Metrics: len 304, pid: 30493, seq 1, errno 0, flags:<UP,DONE,PINNED> locks: inits: sockaddrs: <DST,GATEWAY,NETMASK,IFP,IFA> 10.0.0.0 link#1 (255) ffff ffff ff em0:8.0.27.c5.29.d4 10.0.0.92 _________________^^^^^^^^^^^^^^^^^^ after the change: got message of size 312 on Thu May 8 15:44:07 2014 RTM_GET: Report Metrics: len 312, pid: 2895, seq 1, errno 0, flags:<UP,DONE,PINNED> locks: inits: sockaddrs: <DST,GATEWAY,NETMASK,IFP,IFA> 10.0.0.0 link#1 255.255.255.0 em0:8.0.27.c5.29.d4 10.0.0.92 _________________^^^^^^^^^^^^^^^^^^ Sponsored by: Yandex LLC MFC after: 1 month
* - Sprinkle const and static as appropriate.marius2014-05-071-98/+90
| | | | | | | | | - Fix whitespace bugs. - Remove pointless returns in void functions. - Nuke pointless switch cases mirroring the default. MFC after: 3 days Sponsored by: Bally Wulff Games & Entertainment GmbH
* - Allow foot shooting with the resetconfig command via the -f option.marius2014-05-062-21/+36
| | | | | | | | | - Fix typos preventing -f to actually work with the create command. - Initialize flags to zero rather than using stack garbage when handling the grow command. MFC after: 3 days Sponsored by: Bally Wulff Games & Entertainment GmbH
* Use src.opts.mk in preference to bsd.own.mk except where we need stuffimp2014-05-0616-16/+16
| | | | from the latter.
* Remove the ifconfig test added in rev 263445. After discussion withasomers2014-05-053-139/+0
| | | | | | | | | | | | | | | | | melifaro, we agreed that ifconfig's behavior was not a bug. The main motivation for bin/187551 was to partially resolve kern/187549, but we resolved kern/187549 in a different way instead. ObsoleteFiles.inc etc/mtree/BSD.tests.dist sbin/ifconfig/tests/fibs_test.sh sbin/ifconfig/tests/Makefile sbin/ifconfig/Makefile Remove /usr/tests/sbin/ifconfig PR: bin/187551 MFC after: 3 days Sponsored by: Spectra Logic
* Allow GEOM_VINUM to be statically compiled into the kernel.marius2014-05-022-7/+11
| | | | | Submitted by: gleb MFC after: 3 days
* Small cleanup: mostly whitespace vs. tabs.pfg2014-04-301-31/+31
|
* Correct min/max cluster counts for FAT12/16/32emaste2014-04-241-5/+5
| | | | | | | | | | | | FAT12 1..4084 FAT16 4085..65524 FAT32 65525.. This is required for interoperability with other FAT implementations, and in particular UEFI. Obtained from: NetBSD Sponsored by: The FreeBSD Foundation
* Add information about supported NCQ functionality to camcontrol identify.smh2014-04-241-0/+26
| | | | MFC after: 2 weeks
* When switching variables to flags in r243185 a few cases were missed.bz2014-04-161-5/+5
| | | | | | | | | | After r263152 this leaves unused variables if route(8) is compiled without INET support. Switch the remaining variable accesses to flags and remove now obsolete variables. Reviewed by: glebius MFC after: 1 week
* Add a missing break in option parsing.brueffer2014-04-151-0/+1
| | | | | | CID: 1011452 Found with: Coverity Prevent(tm) MFC after: 1 week
* Fix double fclose() in an error case.brueffer2014-04-141-1/+1
| | | | | | CID: 1006120 Found with: Coverity Prevent(tm) MFC after: 1 week
* In tree makefile shouldn't be setting policy piecemeal. Don't setimp2014-04-131-1/+0
| | | | NO_MANCOMPRESS here.
* NO_MAN= has been deprecated in favor of MAN= for some time, go aheadimp2014-04-132-2/+2
| | | | | | and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit.
* Detach from controlling session of parent. This is similardelphij2014-04-031-0/+3
| | | | | | | | to what is done in daemon(3), which we can not use directly in this context. Reviewed by: pjd MFC after: 2 weeks
* Document more parition types.ae2014-04-021-1/+26
| | | | | Requested by: glebius MFC after: 1 week
* Fix path to the run.pl script to let these tests run.jmmv2014-03-271-1/+1
| | | | | Submitted by: Peel, Casey Obtained from: freebsd-testing
* Add a SUBDIR_PARALLEL option to bsd.subdir.mk, to allow make to processdim2014-03-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | all the SUBDIR entries in parallel, instead of serially. Apply this option to a selected number of Makefiles, which can greatly speed up the build on multi-core machines, when using make -j. This can be extended to more Makefiles later on, whenever they are verified to work correctly with parallel building. I tested this on a 24-core machine, with make -j48 buildworld (N = 6): before stddev after stddev ======= ====== ======= ====== real time 1741.1 16.5 959.8 2.7 user time 12468.7 16.4 14393.0 16.8 sys time 1825.0 54.8 2110.6 22.8 (user+sys)/real 8.2 17.1 E.g. the build was approximately 45% faster in real time. On machines with less cores, or with lower -j settings, the speedup will not be as impressive. But at least you can now almost max out a machine with buildworld! Submitted by: jilles MFC after: 2 weeks
* Revert r263694, and apply a better fix to squelch unnecessary warningsdim2014-03-261-1/+0
| | | | | | | | | | from clang about possible keywords being treated as identifiers for the remainder of the translation unit (a.k.a. -Wkeyword-compat), when using libstdc++ in combination with -Wsystem-headers. This will not only fix devd, but any C++ program using libstdc++. MFC after: 3 days X-MFC-With: r263694
* Update userspace users of hw.bus.devctl_disable.mjg2014-03-261-4/+4
| | | | | | | | This fixes breakage resulting from r263754. Reported by: AN <andy@neu.net> Reviewed by: imp Pointy hat to: me
* Apply a temporary band-aid for building devd with clang 3.4, libstdc++dim2014-03-241-0/+1
| | | | | | | | and -Wsystem-headers enabled (which is the default for any non-zero WARNS level, crazily enough!). This is primarily meant to be MFC'd as soon as possible. MFC after: 3 days
* Add several ATF tests that deal with multiple fibs. They're described inasomers2014-03-203-0/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | several different PRs, but the tests share some common code, so I'm committing them together. sbin/ifconfig/tests sbin/ifconfig/tests/fibs_test.sh sbin/ifconfig/tests/Makefile sbin/ifconfig/Makefile Add fibs_test.sh, which regresses bin/187551 tests/sys/netinet tests/sys/netinet/fibs_test.sh tests/sys/netinet/udp_dontroute.c tests/sys/netinet/Makefile tests/sys/Makefile Add fibs_test.sh, which regresses kern/167947, kern/187552 kern/187549, kern/187550, and kern/187553 etc/mtree/BSD.tests.dist Add newly created directories PR: bin/187551 PR: kern/167947 PR: kern/187552 PR: kern/187549 PR: kern/187550 PR: kern/187553 Discussed with: melifaro MFC after: 3 weeks Sponsored by: Spectra Logic Corporation
* Fix statically-linked build (WITHOUT_DYNAMICROOT).jilles2014-03-162-4/+4
|
* Update most userspace consumers of capability.h to use capsicum.h instead.rwatson2014-03-166-8/+8
| | | | | | | auditdistd is not updated as I will make the change upstream and then do a vendor import sometime in the next week or two. MFC after: 3 weeks
* Add Makefile missed in r263220.jmmv2014-03-161-0/+13
|
* Migrate tools/regression/sbin/ to the new tests layout.jmmv2014-03-1613-0/+1142
| | | | | Pretty much all that this change does is shuffles the code around and hooks it into the regular build. The code of the old tests has not changed.
* Remove AppleTalk support.glebius2014-03-146-294/+2
| | | | | | | | | | AppleTalk was a network transport protocol for Apple Macintosh devices in 80s and then 90s. Starting with Mac OS X in 2000 the AppleTalk was a legacy protocol and primary networking protocol is TCP/IP. The last Mac OS X release to support AppleTalk happened in 2009. The same year routing equipment vendors (namely Cisco) end their support. Thus, AppleTalk won't be supported in FreeBSD 11.0-RELEASE.
* multiple: Remove 3rd clause from BSD license where approved by theeadler2014-03-141-5/+1
| | | | | | | | | regents and renumber. This patch skips files in contrib/ and crypto/ Acked by: imp Discussed with: emaste
* Remove IPX support.glebius2014-03-145-149/+0
| | | | | | | | | | | IPX was a network transport protocol in Novell's NetWare network operating system from late 80s and then 90s. The NetWare itself switched to TCP/IP as default transport in 1998. Later, in this century the Novell Open Enterprise Server became successor of Novell NetWare. The last release that claimed to still support IPX was OES 2 in 2007. Routing equipment vendors (e.g. Cisco) discontinued support for IPX in 2011. Thus, IPX won't be supported in FreeBSD 11.0-RELEASE.
* Avoid segment fault when attempting to clean up cylinder groupmckusick2014-03-121-6/+8
| | | | | | | | | buffer cache. PR: 187221 Submitted by: Petr Lampa <lampa@fit.vutbr.cz> Obtained from: Petr Lampa <lampa@fit.vutbr.cz> MFC after: 1 week
OpenPOWER on IntegriCloud