summaryrefslogtreecommitdiffstats
path: root/etc/mtree
Commit message (Collapse)AuthorAgeFilesLines
* Posixify the locales name for variantsbapt2016-07-031-22/+6
| | | | | | | | | | | | | | | | | | | | For all locales with variants: - if no ambiguity on the locale (only one variant) just use the regular name - if ambiguity, pick one as default and append @<variant> to the others respecting POSIX As a result: - All the 3 components locales added recently are renamed to the usual 2 components version for all but sr_RS.UTF-8 - Set sr_RS.UTF-8 to the cyrillic variant - Add sr_RS.UTF-8@latin - Remove the symlinks aliases they were created to represent the 2 components version as aliasas and are now useless - Update the OptionalObsoleteFiles.inc and ObsoleteFiles.inc to reflect those changes Discussed with: ache@ Approved by: re@ (gjb)
* Commit the bits of nda that were missed. This should fix the build.imp2016-06-101-0/+2
| | | | Approved by: re@
* Install/Connect ypldap.conf(5) on examples.araujo2016-06-061-0/+2
|
* Fix "make installworld" with MK_CDDL == no after r300906 byngie2016-05-291-0/+2
| | | | | | | | | adding a missing entry for ${TESTSBASE}/cddl/sbin X-MFC with: r300906 Pointyhat to: asomers Reported by: Shawn Webb <shawn.webb@hardenedbsd.org> Sponsored by: EMC / Isilon Storage Division
* zfsd(8), the ZFS fault management daemonasomers2016-05-283-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add zfsd, which deals with hard drive faults in ZFS pools. It manages hotspares and replements in drive slots that publish physical paths. cddl/usr.sbin/zfsd Add zfsd(8) and its unit tests cddl/usr.sbin/Makefile Add zfsd to the build lib/libdevdctl A C++ library that helps devd clients process events lib/Makefile share/mk/bsd.libnames.mk share/mk/src.libnames.mk Add libdevdctl to the build. It's a private library, unusable by out-of-tree software. etc/defaults/rc.conf By default, set zfsd_enable to NO etc/mtree/BSD.include.dist Add a directory for libdevdctl's include files etc/mtree/BSD.tests.dist Add a directory for zfsd's unit tests etc/mtree/BSD.var.dist Add /var/db/zfsd/cases, where zfsd stores case files while it's shut down. etc/rc.d/Makefile etc/rc.d/zfsd Add zfsd's rc script sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c Fix the resource.fs.zfs.statechange message. It had a number of problems: It was only being emitted on a transition to the HEALTHY state. That made it impossible for zfsd to take actions based on drives getting sicker. It compared the new state to vdev_prevstate, which is the state that the vdev had the last time it was opened. That doesn't make sense, because a vdev can change state multiple times without being reopened. vdev_set_state contains logic that will change the device's new state based on various conditions. However, the statechange event was being posted _before_ that logic took effect. Now it's being posted after. Submitted by: gibbs, asomers, mav, allanjude Reviewed by: mav, delphij Relnotes: yes Sponsored by: Spectra Logic Corp, iX Systems Differential Revision: https://reviews.freebsd.org/D6564
* Remove DTrace tooklkit from the mtree and add the files to removegnn2016-05-201-2/+0
| | | | | | to the ObsoleteFiles list. Sponsored by: DARPA, AFRL
* iconvctl(3): remove superfluous NULL pointer testsvangyzen2016-05-141-0/+2
| | | | | | | | | | | | | | | convname and dst are guaranteed to be non-NULL by iconv_open(3). src is an array. Remove these tests for NULL pointers. While I'm here, eliminate a strlcpy with a correct but suspicious-looking calculation for the third parameter (i.e. not a simple sizeof). Compare the strings in-place instead of copying. Found by: bdrewery Found by: Coverity CID: 1130050, 1130056 MFC after: 3 days Sponsored by: Dell Inc. Differential Revision: https://reviews.freebsd.org/D6338
* MFV r299425:mm2016-05-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update libarchive to 3.2.0 New features: - new bsdcat command-line utility - LZ4 compression (in src only via external utility from ports) - Warc format support - 'Raw' format writer - Zip: Support archives >4GB, entries >4GB - Zip: Support encrypting and decrypting entries - Zip: Support experimental streaming extension - Identify encrypted entries in several formats - New --clear-nochange-flags option to bsdtar tries to remove noschg and similar flags before deleting files - New --ignore-zeros option to bsdtar to handle concatenated tar archives - Use multi-threaded LZMA decompression if liblzma supports it - Expose version info for libraries used by libarchive Patched files (fixed compiler warnings): contrib/libarchive/cat/bsdcat.c (vendor PR #702) contrib/libarchive/cat/bsdcat.h (vendor PR #702) contrib/libarchive/libarchive/archive_read_support_format_mtree.c (PR #701) contrib/libarchive/libarchive_fe/err.c (vendor PR #703) MFC after: 1 month Relnotes: yes
* install: Add some tests.jilles2016-05-081-0/+2
|
* Improve performance and functionality of the bitstring(3) apiasomers2016-05-041-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Two new functions are provided, bit_ffs_at() and bit_ffc_at(), which allow for efficient searching of set or cleared bits starting from any bit offset within the bit string. Performance is improved by operating on longs instead of bytes and using ffsl() for searches within a long. ffsl() is a compiler builtin in both clang and gcc for most architectures, converting what was a brute force while loop search into a couple of instructions. All of the bitstring(3) API continues to be contained in the header file. Some of the functions are large enough that perhaps they should be uninlined and moved to a library, but that is beyond the scope of this commit. sys/sys/bitstring.h: Convert the majority of the existing bit string implementation from macros to inline functions. Properly protect the implementation from inadvertant macro expansion when included in a user's program by prefixing all private macros/functions and local variables with '_'. Add bit_ffs_at() and bit_ffc_at(). Implement bit_ffs() and bit_ffc() in terms of their "at" counterparts. Provide a kernel implementation of bit_alloc(), making the full API usable in the kernel. Improve code documenation. share/man/man3/bitstring.3: Add pre-exisiting API bit_ffc() to the synopsis. Document new APIs. Document the initialization state of the bit strings allocated/declared by bit_alloc() and bit_decl(). Correct documentation for bitstr_size(). The original code comments indicate the size is in bytes, not "elements of bitstr_t". The new implementation follows this lead. Only hastd assumed "elements" rather than bytes and it has been corrected. etc/mtree/BSD.tests.dist: tests/sys/Makefile: tests/sys/sys/Makefile: tests/sys/sys/bitstring.c: Add tests for all existing and new functionality. include/bitstring.h Include all headers needed by sys/bitstring.h lib/libbluetooth/bluetooth.h: usr.sbin/bluetooth/hccontrol/le.c: Include bitstring.h instead of sys/bitstring.h. sbin/hastd/activemap.c: Correct usage of bitstr_size(). sys/dev/xen/blkback/blkback.c Use new bit_alloc. sys/kern/subr_unit.c: Remove hard-coded assumption that sizeof(bitstr_t) is 1. Get rid of unrb.busy, which caches the number of bits set in unrb.map. When INVARIANTS are disabled, nothing needs to know that information. callapse_unr can be adapted to use bit_ffs and bit_ffc instead. Eliminating unrb.busy saves memory, simplifies the code, and provides a slight speedup when INVARIANTS are disabled. sys/net/flowtable.c: Use the new kernel implementation of bit-alloc, instead of hacking the old libc-dependent macro. sys/sys/param.h Update __FreeBSD_version to indicate availability of new API Submitted by: gibbs, asomers Reviewed by: gibbs, ngie MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D6004
* Add a debug dir for /boot/modules.jhb2016-05-031-0/+2
| | | | | | | This provides a place for standalone modules to store debug symbols. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D6190
* Add sdiff test directory to the tests mtreebapt2016-04-301-0/+2
|
* Add ATF tests for usr.sbin/extattrasomers2016-04-221-0/+2
| | | | | | | | | | Add ATF tests for the existing behavior of setextattr, rmextattr, lsextattr, and getextattr. Reviewed by: ngie MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D5889
* Remove Big5HKSCS entries from mtreebapt2016-04-161-4/+0
| | | | Reported by: ache
* MFHgjb2016-04-041-0/+2
|\ | | | | | | Sponsored by: The FreeBSD Foundation
| * Just install ar5523.bin into /usr/share/firmware and stop compiling itimp2016-03-151-0/+2
| | | | | | | | | | | | in. Differential Review: https://reviews.freebsd.org/D5639
* | MFHgjb2016-03-101-0/+2
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * Fix and connect setjmp test.bdrewery2016-03-091-0/+2
| | | | | | | | Sponsored by: EMC / Isilon Storage Division
* | MFHgjb2016-03-062-2/+2
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * Merge ^/head r296007 through r296368.dim2016-03-033-4/+6
| |\
| * \ Merge ^/head r294169 through r294598.dim2016-01-221-0/+2
| |\ \
| * \ \ Merge ^head r294090 through r294168.dim2016-01-161-2/+0
| |\ \ \
| * \ \ \ Merge ^/head r293686 through r293849.dim2016-01-131-0/+26
| |\ \ \ \
| * \ \ \ \ Merge ^/head r293175 through r293279.dim2016-01-061-0/+2
| |\ \ \ \ \
| * \ \ \ \ \ Merge ^/head r293036 through r293174.dim2016-01-042-0/+18
| |\ \ \ \ \ \
| * | | | | | | Update various build glue files for the new llvm/clang version number.dim2015-12-302-2/+2
| | | | | | | |
* | | | | | | | MFHgjb2016-03-023-4/+6
|\ \ \ \ \ \ \ \ | | |_|_|_|_|_|/ | |/| | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation
| * | | | | | | Sort subdirectories in BSD.debug.distemaste2016-02-281-2/+2
| | | | | | | |
| * | | | | | | Restore lib/casper debug directory, reverting r296130emaste2016-02-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reported by: bdrewery Pointy hat to: emaste
| * | | | | | | Remove libexec/casper debug directory missed in r296047emaste2016-02-261-2/+0
| | | | | | | |
| * | | | | | | Add debug /libexec directory for rtld-elf debug filesemaste2016-02-261-0/+2
| | | | | | | |
| * | | | | | | Convert casperd(8) daemon to the libcasper.oshogbo2016-02-253-4/+4
| | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After calling the cap_init(3) function Casper will fork from it's original process, using pdfork(2). Forking from a process has a lot of advantages: 1. We have the same cwd as the original process. 2. The same uid, gid and groups. 3. The same MAC labels. 4. The same descriptor table. 5. The same routing table. 6. The same umask. 7. The same cpuset(1). From now services are also in form of libraries. We also removed libcapsicum at all and converts existing program using Casper to new architecture. Discussed with: pjd, jonathan, ed, drysdale@google.com, emaste Partially reviewed by: drysdale@google.com, bdrewery Approved by: pjd (mentor) Differential Revision: https://reviews.freebsd.org/D4277
* | | | | | | MFHgjb2016-01-251-0/+2
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation
| * | | | | | Provide new socket option TCP_CCALGOOPT, which stands for TCP congestionglebius2016-01-221-0/+2
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | control algorithm options. The argument is variable length and is opaque to TCP, forwarded directly to the algorithm's ctl_output method. Provide new includes directory netinet/cc, where algorithm specific headers can be installed. The new API doesn't yet have any in tree consumers. The original code written by lstewart. Reviewed by: rrs, emax Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D711
* | | | | | MFHgjb2016-01-201-2/+0
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation
| * | | | | Update mandoc to 20160116bapt2016-01-151-2/+0
| | |_|_|/ | |/| | |
* | | | | MFHgjb2016-01-141-0/+26
|\ \ \ \ \ | |/ / / / | | | | | | | | | | Sponsored by: The FreeBSD Foundation
| * | | | Integratengie2016-01-131-0/+26
| |\ \ \ \ | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tools/regression/geom_{concat,eli,gate,mirror,nop,raid3,shsec,stripe,uzip} in to the FreeBSD test suite as tests/sys/geom/class/{concat,eli,gate,mirror,nop,raid3,shsec,stripe,uzip} The tools/regression/geom and tools/regression/geom_part testcases are being left alone because both test sets are both currently broken. The majority of this work was done on ^/user/ngie/more-tests2 . The differences are as follows: - tests/sys/geom/class/Makefile.inc is not present; it was inlined into the class's Makefiles for explicitness. - The testcases officially require root via kyua - The geom_gate(4) tests don't use the pidfile changes proposed in https://reviews.freebsd.org/D4836 . MFC after: 1 month Sponsored by: EMC / Isilon Storage Division
| | * | | MFhead @ r293815ngie2016-01-133-0/+20
| | |\ \ \ | | |/ / / | |/| | |
| | * | | Move sbin/geom/class/tests to tests/sys/geom/class and remove sbin/geom/testsngie2016-01-011-24/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is inspired by parallel efforts being done on projects/zfsd (and makes more sense because these are functional tests of the subsystems, not the geom(8) commands
| | * | | MFhead @ r292618ngie2015-12-293-4/+10
| | |\ \ \ | | | |/ /
| | * | | MFhead @ r292396ngie2015-12-171-0/+4
| | |\ \ \
| | * \ \ \ MFhead@r291879ngie2015-12-062-0/+4
| | |\ \ \ \
| | * \ \ \ \ MFhead @ r291038ngie2015-11-181-0/+14
| | |\ \ \ \ \
| | * | | | | | Integrate tools/regression/geom* into the FreeBSD test suite under sbin/geom/...ngie2015-11-161-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | XXX: test
* | | | | | | | MFHgjb2016-01-071-0/+2
|\ \ \ \ \ \ \ \ | |/ / / / / / / | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation
| * | | | | | | "source routing" in rpcbindasomers2016-01-061-0/+2
| | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a bug in rpcbind for multihomed hosts. If the server had interfaces on two separate subnets, and a client on the first subnet contacted rpcbind at the address on the second subnet, rpcbind would advertise addresses on the first subnet. This is a bug, because it should prefer to advertise the address where it was contacted. The requested service might be firewalled off from the address on the first subnet, for example. usr.sbin/rpcbind/check_bound.c If the address on which a request was received is known, pass that to addrmerge as the clnt_uaddr parameter. That is what addrmerge's comment indicates the parameter is supposed to mean. The previous behavior is that clnt_uaddr would contain the address from which the client sent the request. usr.sbin/rpcbind/util.c Modify addrmerge to prefer to use an IP that is equal to clnt_uaddr, if one is found. Refactor the relevant portion of the function for clarity, and to reduce the number of ifdefs. etc/mtree/BSD.tests.dist usr.sbin/rpcbind/tests/Makefile usr.sbin/rpcbind/tests/addrmerge_test.c Add unit tests for usr.sbin/rpcbind/util.c:addrmerge. usr.sbin/rpcbind/check_bound.c usr.sbin/rpcbind/rpcbind.h usr.sbin/rpcbind/util.c Constify some function arguments Reviewed by: imp MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D4690
* | | | | | | MFH r289384-r293170gjb2016-01-048-71/+167
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation
| * | | | | | Add libsoft to the tree, just like lib32.imp2016-01-032-0/+18
| | |_|_|_|/ | |/| | | |
| * | | | | Upgrade our copies of clang and llvm to 3.7.1 release. This is adim2015-12-252-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bugfix-only release, with no new features. Please note that from 3.5.0 onwards, clang and llvm require C++11 support to build; see UPDATING for more information.
OpenPOWER on IntegriCloud