summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* 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
* kldconfig: Remove some code for compatibility with FreeBSD 4.x.jilles2014-03-091-27/+0
| | | | Verified using md5(1).
* sbin/devd/devd.8asomers2014-03-072-13/+19
| | | | | | | | | | sbin/devd/devd.cc Add a -q flag to devd that will suppress syslog logging at LOG_NOTICE or below. Requested by: ian@ and imp@ MFC after: 3 weeks Sponsored by: Spectra Logic Corporation
* Slight if reordering to make error branch last.imp2014-03-071-3/+3
|
* Fix compilation for 32-bit machines.glebius2014-03-051-6/+7
|
* Log the name of the device that we failed to open rather than anmarkj2014-03-051-1/+1
| | | | | | uninitialized buffer. MFC after: 3 days
* Instead of playing games with casts simply add 3 more members to theglebius2014-03-051-8/+6
| | | | | | | structure pf_rule, that are used when the structure is passed via ioctl(). PR: 187074
* Arguments for malloc and calloc should be size_t, not int.mckusick2014-02-252-3/+5
| | | | | | | | Use proper bounds check when trying to free cached memory. Spotted by: Xin Li Tested by: Dmitry Sivachenko MFC after: 2 weeks
* Better build fix.glebius2014-02-151-6/+7
|
* Fix build on 32bit arches broken by me in r261882.glebius2014-02-141-4/+5
|
* Once pf became not covered by a single mutex, many counters in it becameglebius2014-02-141-4/+4
| | | | | | | | | | | | | | | | | | | | race prone. Some just gather statistics, but some are later used in different calculations. A real problem was the race provoked underflow of the states_cur counter on a rule. Once it goes below zero, it wraps to UINT32_MAX. Later this value is used in pf_state_expires() and any state created by this rule is immediately expired. Thus, make fields states_cur, states_tot and src_nodes of struct pf_rule be counter(9)s. Thanks to Dennis for providing me shell access to problematic box and his help with reproducing, debugging and investigating the problem. Thanks to: Dennis Yusupoff <dyr smartspb.net> Also reported by: dumbbell, pgj, Rambler Sponsored by: Nginx, Inc.
* Fix world build WITHOUT_PF.glebius2014-02-122-2/+13
| | | | Sponsored by: Nginx, Inc.
* If the main casperd process exits, zygote process should exit as wellpjd2014-02-091-1/+6
| | | | | | instead of spinning. Reported by: Mikhail <mp@lenta.ru>
* Refer newfs and growfs users to fsck_ffs instead ofbrueffer2014-02-092-2/+2
| | | | | | | | | | | fsck, the latter does not accept the referred to "-b" flag. This change was accidently committed directly to 9-STABLE in r237505. PR: 82720 Submitted by: David D.W. Downey MFC after: 1 week
* init: Remove code to track line numbers in /etc/ttys.jilles2014-02-081-16/+4
| | | | | | | The tracking generated warnings when the line number of an existing tty in /etc/ttys changed, which would corrupt utmp (as it was indexed by the line number). With utmpx, the line number no longer matters, so the tracking is no longer needed.
* Use CAP_EVENT instead of the deprecated CAP_POLL_EVENT.brueffer2014-02-062-2/+2
| | | | | | | PR: 185382 (based on) Submitted by: Loganaden Velvindron Reviewed by: pjd MFC after: 1 week
* Drop the 3rd clause from all 3 clause BSD licenses where I am the solejhb2014-02-051-3/+0
| | | | | | holder to convert them to 2 clause BSD licenses. MFC after: 1 week
OpenPOWER on IntegriCloud