summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
...
* MFC r271588: Update CAM CCB accounting for the new status quo.mav2014-10-141-2/+2
| | | | | | | | | | devq_openings counter lost its meaning after allocation queues has gone. held counter is still meaningful, but problematic to update due to separate locking of CCB allocation and queuing. To fix that replace devq_openings counter with allocated counter. held is now calculated on request as difference between number of allocated, queued and active CCBs.
* MFC r272932:trasz2014-10-141-1/+10
| | | | | | | | Mark iscontrol(8) and iscsi_initiator(4) obsolete. Differential Revision: https://reviews.freebsd.org/D931 Reviewed by: wblock@ Sponsored by: The FreeBSD Foundation
* MFC r272885:hrs2014-10-111-8/+1
| | | | | Do not add late flag when file= is specified because it has a bad side-effect. The specified file should exist before the fstab line.
* MFC 270828,271487,271495:jhb2014-10-101-10/+133
| | | | | Add sysctls to export the BIOS SMAP and EFI memory maps along with handlers in the sysctl(8) binary to format them.
* MFC r271921:hrs2014-10-091-1/+1
| | | | Fix a typo.
* MFC r271919:hrs2014-10-095-7/+35
| | | | | | | Fix a bug which could make routed(8) daemon exit by sending a special RIP query from a remote machine, and disable accepting it by default. This requests a routed(8) daemon to dump routing information base for debugging purpose. An -i flag to enable it has been added.
* MFC r271909:hrs2014-10-091-8/+2
| | | | | Revert changes in r269180. It could cause -c N option to enter an infinite loop if no reply packet is received.
* MFC r271411:hrs2014-10-091-1/+6
| | | | | | Fix a bug which could break extended attributes in a dump output. This occurred when a file was >892kB long and had a large data (>1kB) in the extended attributes.
* MFC r257036:hrs2014-10-091-6/+12
| | | | | | | | | | | | Return 0 if: 1. "-u N" specified, no -f, and mdN found, 2. no -u, "-f /pathname" specified, and mdN associated with /pathname found, 3. "-u N" specified, "-f /pathname" specified, and both of them found, 4. "-l" specified and no -f, 5. "-l" specified, "-f /pathname" specified, and /pathname found. otherwise return -1.
* MFC r256715:hrs2014-10-091-1/+2
| | | | Use long explicitly for the time difference.
* MFC r256695:hrs2014-10-093-10/+42
| | | | | | - Add relative specification in expiration time. - Add proto3 option for RTF_PROTO3. - Use %lu for members of struct rt_metrics.
* MFC r271307:ae2014-10-092-1/+18
| | | | | | | | Add the ability to set `prefer_source' flag to an IPv6 address. It affects the IPv6 source address selection algorithm (RFC 6724) and allows override the last rule ("longest matching prefix") for choosing among equivalent addresses. The address with `prefer_source' will be preferred source address.
* MFC r271720:bdrewery2014-10-021-1/+5
| | | | | | | | If fgets(3) fails in getbounds(), show strerror(3) if not an EOF. Also fix a FILE* leak in getbounds(). PR: 192032 Approved by: re (gjb)
* MFC EFI support for the installeremaste2014-09-151-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r264978 (nwhitehorn): Add EFI support to the installer. This requires that the kernel provide a sysctl to determine what firmware is in use. This sysctl does not exist yet, so the following blocks are in front of the wheels: - I've provisionally called this "hw.platform" after the equivalent thing on PPC - The logic to check the sysctl is short-circuited to always choose BIOS. There's a comment in the top of the file about how to turn this off. If IA64 acquired a boot1.efifat-like thing (probably with very few modifications), the same code could be adapted there. r265016 (nwhitehorn): Finish connecting up installer UEFI support. If the kernel was booted using EFI, set up the disks for an EFI system. If booted from BIOS/CSM, set up for BIOS. r268256 (nwhitehorn): After EFI support was added to the installer, it needed to allow boot partitions of types other than "freebsd-boot" (in particular, "efi"). This allows the removal of some nasty hacks for supporting PowerPC systems, in particular aliasing freebsd-boot to apple-boot on APM and an IBM-specific code on MBR. This changes the installer to use the correct names, which also breaks a degeneracy in the meaning of "freebsd-boot" that allows the addition of support for some newer IBM systems that can boot from GPT in addition to MBR. Since I have no idea how to detect which those systems are, leave the default on IBM PPC systems as MBR for now. Approved by: re PR: 193658 Relnotes: Yes
* MFC 270722:jhb2014-09-051-2/+2
| | | | | | | Correct the destroy example. The -n argument is not needed (and is not valid). Approved by: re (gjb for 10)
* MFC r270647: Add references to vt(4) and the configuration files in /usr/shase2014-09-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | MFC r270653: Update man-pages to correctly refer to changed pathes and namin MFC r270657: More man pages that need to know about vt in addition to syscon MFC r270659: (by pluknet@) Missed comma. MFC r270660: Back-out the references to vt(4) from this man-page. It appears MFC r270933: Add references to vt(4) to further man-pages. MFC r270934: Final patches to the tools used to convert syscons keymaps for MFC r270935: Add vt(4) support to the console initialisation script, specifi Second batch of MFCs to add support for Unicode keymaps for use with vt(4). It contains the following changes: - Add references to vt(4) to relevant man-pages. - Update comment in defaults/rc.conf to mention vt - Update rc.d/syscons to warn about syscons keymaps used under vt. An attempt is made to identify the vt keymap to load instead. - Minor changes to the conversion tool based on mail comments on keymaps. Relnotes: yes
* MFC r270289:neel2014-09-042-3/+3
| | | | | | | | Change file permissions for some setuid executables so they are "o+r". The executable itself doesn't contain any privileged information. An example of where this is useful is when makefs(8) is creating an image that includes /sbin/shutdown. This can now be done without root privileges.
* Merge 270872 from head:gavin2014-09-031-3/+3
| | | | | | | | Fix character case in examples for "camcontrol security" - should be "-U user" not "-u user". PR: 193179 Submitted by: milios ccsys com
* MFC r270433:ngie2014-09-011-2/+2
| | | | | | | | | | Garbage collect libl dependency The application links and runs without libl Approved by: rpaulo (mentor) Phabric: D673 Submitted by: trociny
* MFC r270117:ngie2014-09-011-1/+1
| | | | | | | Add -ll to LDADD to fix "make checkdpadd" Phabric: D622 Approved by: rpaulo (mentor)
* MFC r270209:trasz2014-08-311-1/+6
| | | | | | | Add description for the "automounted" mount flag. Reviewed by: emaste@ Sponsored by: The FreeBSD Foundation
* MFC r270096:trasz2014-08-312-2/+5
| | | | | | | | | | | | | Bring in the new automounter, similar to what's provided in most other UNIX systems, eg. MacOS X and Solaris. It uses Sun-compatible map format, has proper kernel support, and LDAP integration. There are still a few outstanding problems; they will be fixed shortly. Reviewed by: allanjude@, emaste@, kib@, wblock@ (earlier versions) Phabric: D523 Relnotes: yes Sponsored by: The FreeBSD Foundation
* MFC r270027:ngie2014-08-292-22/+17
| | | | | | | | | | | | | | | | | | | | | tmconfig compilation when MK_ATM == yes and MK_BSNMP == no Makefile.inc1: Always compile gensnmptree with bootstrap-tools when MK_BSNMP != no instead of depending on a potentially stale tool installed on the build host sbin/atm/atmconfig/Makefile: - Always remove oid.h to avoid cluttering up the build/src tree. - Consolidate all of the RESCUE/MK_BSNMP != no logic under one conditional to improve readability - Remove unnecessary ${.OBJDIR} prefixing for oid.h and use ${.TARGET} instead of spelling out oid.h - Add a missing DPADD for ${LIBCRYPTO} when compiled MK_BSNMP == yes and MK_OPENSSL == yes and not compiling for /rescue/rescue sbin/atm/atmconfig/main.c: Change #ifndef RESCUE to #ifdef WITH_BSNMP in main.c to make it clear that we're compiling bsnmp support into atmconfig
* MFC r268407 (by gjb):ae2014-08-251-2/+29
| | | | | | | | | | | | | | | Fix non-version text after .Fx macro usage. MFC r269487 (by issyl0): Add generic list, status, load and unload docs to gpart(8) - In the style of gmirror(8). PR: docs/191534 MFC r269852: Add sysctl and loader tunable kern.geom.part.mbr.enforce_chs that is set by default. It can be used to disable automatic alignment to CHS geometry, that GEOM_PART_MBR does.
* MFC r270118:ngie2014-08-231-0/+1
| | | | | | | | | | Add LIBUTIL to DPADD This will fix "make checkdpadd" PR: 192759 Approved by: rpaulo (mentor) Phabric: D623
* MFC r270062: switch rpc mount protocol for showmount and umount frompeter2014-08-211-1/+1
| | | | | mountv1 to mountv3 - it breaks by default on the new netapp release with the legacy protocols removed.
* MFC devd-related changesasomers2014-08-205-38/+276
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r270004 Convert devd's client socket to type SOCK_SEQPACKET. This change consists of two merges from projects/zfsd/head along with the addition of an ATF test case for the new functionality. sbin/devd/tests/Makefile sbin/devd/tests/client_test.c Add ATF test cases for reading events from both devd socket types. r266519: sbin/devd/devd.8 sbin/devd/devd.cc Create a new socket, of type SOCK_SEQPACKET, for communicating with clients. SOCK_SEQPACKET sockets preserve record boundaries, simplying code in the client. The old SOCK_STREAM socket is retained for backwards-compatibility with existing clients. r269993: sbin/devd/devd.8 Fix grammar bug. r270019 (from bz) Remove bogus ; at the end of the if condition in order to unbreak gcc builds after r270004. MFC after: 4 days X-MFX with: r270004
* MFC r264539:bz2014-08-161-6/+6
| | | | | | | | | | When switching variables to flags in r243185 a few cases were missed. After r263152 (in head) 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 r259916:bz2014-08-164-4/+35
| | | | | | | | | | Use feature_present(3) to determine whether to open an INET or an INET6 socket when needed to allow pfctl to work on noinet and noinet6 kernels (and try to provide a fallback using AF_LINK as best effort). Adjust the Makefile to also respect relevant src.conf(5) options for compile time decisions on INET and INET6 support. Reviewed by: glebius (no objections)
* MFC r269583:bz2014-08-162-1/+55
| | | | | | | | | | | | | | Provide -o vers= support for mount_nfs. Our mount_nfs does use -o nfsv<2|3|4> or -2 or -3 to specify the version. OSX (these days), Solaris, and Linux use -o vers=<2,3,4>. With the upcoming autofs support we can make a lot of (entrerprisy) setups getting mount options from LDAP just work by providing -o vers= compatibility. Reviewed by: wblock, bjk (man page), rmacklem, emaste Sponsored by: DARPA,AFRL PR: 192379
* MFC r269953:pfg2014-08-161-1/+1
| | | | | | | | | | | | | | Use "NO NAME" as the default unnamed label. Microsoft recommends avoiding the use of spaces in the string structures for FAT. Unfortunately they do just that by default in the case of unlabeled filesystems. Follow the default MS behavior to avoid confusion in common tools like file(1). This was actually the default behavior before r203868. Obtained from: NetBSD (CVS rev. 1.39)
* MFC r269888:gjb2014-08-151-1/+1
| | | | | | Fix a typo in a comment: s/interprete/interpret/ Sponsored by: The FreeBSD Foundation
* MFC r269180:delphij2014-08-111-2/+8
| | | | | | | | | | | When interval is set to very small value with limited amount of packets, ping6(8) would quit before the remote side gets a chance to respond. Solve this by resetting the itimer when we have reached the maximum packet number have reached, but let the other handling to continue. PR: bin/151023 Submitted by: tjmao at tjmao.net
* MFC r269585 - Honour WITH and WITHOUT_INET6_SUPPORT.cy2014-08-081-0/+8
| | | | Approved by: glebius (mentor - implicit)
* MFC of r269303:mckusick2014-08-061-3/+5
| | | | | | | | | | | When restoring a UFS dump onto a ZFS filesystem, an assertion in restore was failing because ZFS was reporting a blocksize that was not a multiple of 1024. Replace restore's failed assertion with code that writes restored files in a blocksize that works for restore (a multiple of 1024) despite being non-optimal for ZFS. Submitted by: Dmitry Morozovsky Tested by: Dmitry Morozovsky
* MFC r269091:wblock2014-08-061-11/+10
| | | | | Fix spelling of Camellia algorithm. While here, replace blank lines between examples with actual .Pp breaks.
* MFC r268632:pfg2014-07-212-15/+33
| | | | | | | | | | | | | | | fsck_msdosfs: Assorted fixes from other BSDs. When truncating cluster chains fix the length of the cluster head. http://marc.info/?t=140304310700005&r=1&w=2 Avoid infinite loops in cluster chain linked lists. http://marc.info/?l=openbsd-tech&m=140275150804337&w=2 Avoid off-by-one on FAT12 filesystems. http://marc.info/?l=openbsd-tech&m=140234174104724&w=2 Obtained from: NetBSD (from OpenBSD)
* MFC: r261032bapt2014-07-202-4/+10
| | | | | | | Add quiet support for kldstat -n PR: bin/180014 Submitted by: Olivier Cochard-Labbé <olivier at cochard.me>
* MFC r268628, r268631, r268635:pfg2014-07-173-9/+10
| | | | | | | | | | | | | | | Convert *rootDir from external to static. fsck_msdosfs: be a bit more permissive. The free space value in the FSInfo block is merely unitialized when it is 0xffffffff. This fixes a bug found in NetBSD. Respect FSFIXFAT. Fix some whitespace issues while here. Obtained from: NetBSD (CVS rev. 1.22, rev. 1.9), OpenBSD (misc)
* MFC r267617:wblock2014-07-151-6/+7
| | | | | Fix spelling, typos, missing articles, contractions. Expanded version of patch supplied with PR.
* MFC r268240 (by ken):mav2014-07-155-9/+1351
| | | | | | | Add persistent reservation support to camcontrol(8). camcontrol(8) now supports a new 'persist' subcommand that allows users to issue SCSI PERSISTENT RESERVE IN / OUT commands.
* Revert r268629:pfg2014-07-141-6/+5
| | | | This was supposed to go to head first :(
* fsck_msdosfs: be a bit more permissivepfg2014-07-141-5/+6
| | | | | | | | | | | | | The free space value in the FSInfo block is merely unitialized when it is 0xffffffff. This fixes a bug found in NetBSD. It must be noted that we never supported all the checks that NetBSD does as some of them would cause failures with a freshly created FAT32 from MS-Windows. While here, bring some space fixes. Obtained from: NetBSD (rev. 1.22)
* MFC r268090:ae2014-07-081-13/+173
| | | | Document all aliases supported by GEOM_PART class.
* MFC r268049:ume2014-07-071-9/+13
| | | | | | | | Fix ifconfig to show pltime and vltime with -L option, again after usage change from time_second to time_uptime. PR: 188520 Submitted by: Guy Yur <guyyur__at__gmail.com>
* MFC r267960:hselasky2014-07-041-2/+2
| | | | Don't hide zero-length strings when doing sysctl listings.
* MFC r267355:ae2014-07-011-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add UUIDs for DragonFlyBSD's partition types. MFC r267356: Add DragonFlyBSD's Hammer FS types and type names. MFC r267357: Add aliases for DragonFlyBSD's partition types. MFC r267358: Allow dumping to DragonFlyBSD's swap partition. MFC r267359: Add disklabel64 support to GEOM_PART class. 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; MFC r267360: Add disklabel64 support Relnotes: yes
* Undo bad merge.rodrigc2014-06-231-10/+3
|
* MFC r263795:rodrigc2014-06-231-3/+10
| | | | | | | | | | | | | Strict value checking will cause problem. Bay trail DN2820FYKH is supported on Linux but does not work on FreeBSD. This behaviour is bug-compatible with Linux-3.13.5. References: http://d.hatena.ne.jp/syuu1228/20140326 http://lxr.linux.no/linux+v3.13.5/arch/x86/kernel/acpi/boot.c#L1094 Submitted by: syuu PR: 187966
* MFC: r266483marck2014-05-281-0/+24
| | | | | | Document VMware-related filesystems additions. Reviewed by: jmg
OpenPOWER on IntegriCloud