summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Remove LOG_ODELAY because it does nothing.neel2014-08-171-1/+1
| | | | | Reviewed by: jilles CR: https://reviews.freebsd.org/D611
* Bring in the new automounter, similar to what's provided in most othertrasz2014-08-172-2/+5
| | | | | | | | | | | | | 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 MFC after: 2 weeks Relnotes: yes Sponsored by: The FreeBSD Foundation
* Clean up unused definitions.melifaro2014-08-161-22/+8
|
* * Use standard net/sff8472.h header for sff bits and offsets.melifaro2014-08-161-103/+85
| | | | | | * Convert sff_8472_id to 'const char *' to please clang. Pointed by: np
* Add support for reading i2c SFP/SFP+ data from NIC driver andmelifaro2014-08-164-0/+551
| | | | | | | | presenting most interesting fields via ifconfig -v. This version supports Intel ixgbe driver only. Tested on: Cisco,Intel,Mellanox,ModuleTech,Molex transceivers MFC after: 2 weeks
* Use mount protocol version 3 by default for showmount and umount.peter2014-08-161-1/+1
| | | | | | mount_nfs effectively uses mount protocol v3 by default already. v1 mount protocol is being removed along with nfsv2 by a high profile NFS appliance vendor and our legacy v1 mount protocol usage causes rpc errors.
* Fix atmconfig compilation when MK_ATM == yes and MK_BSNMP == nongie2014-08-152-22/+17
| | | | | | | | | | | | | | | | | | | | | | | | | 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 Approved by: jmmv (mentor) Phabric: D579 PR: 143830 MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* Remove bogus ; at the end of the if condition in order to unbreak gcc buildsbz2014-08-151-2/+2
| | | | | | | after r270004. MFC after: 4 days X-MFX with: r270004
* Convert devd's client socket to type SOCK_SEQPACKET.asomers2014-08-145-38/+276
| | | | | | | | | | | | | | | | | | | | | | | | | 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. CR: https://reviews.freebsd.org/rS266519 MFC after: 5 days Sponsored by: Spectra Logic
* Use "NO NAME" as the default unnamed label.pfg2014-08-131-1/+1
| | | | | | | | | | | | | 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 after: 3 days
* Fix a typo in a comment: s/interprete/interpret/gjb2014-08-121-1/+1
| | | | | | Submitted by: Sam Fourman Jr. MFC after: 3 days Sponsored by: The FreeBSD Foundation
* Turn off kern.geom.part.mbr.enforce_chs by default.ae2014-08-121-1/+1
|
* Remove duplicate entry.ae2014-08-121-7/+0
|
* Add sysctl and loader tunable kern.geom.part.mbr.enforce_chs that is setae2014-08-121-1/+7
| | | | | | | | by default. It can be used to disable automatic alignment to CHS geometry, that GEOM_PART_MBR does. Reviewed by: wblock MFC after: 1 week
* Mention tmpfs(5)skreuzer2014-08-061-0/+1
| | | | | | PR: 192389 Submitted by: yaneurabeya@gmail.com Approved by: hrs (mentor)
* Honour WITH and WITHOUT_INET6_SUPPORT.cy2014-08-051-0/+8
| | | | | Approved by: glebius (mentor) MFC after: 3 days
* Provide -o vers= support for mount_nfs.bz2014-08-052-1/+55
| | | | | | | | | | | | | 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. PR: 192379 Reviewed by: wblock, bjk (man page), rmacklem, emaste MFC after: 3 days Sponsored by: DARPA,AFRL
* Add generic list, status, load and unload docs to gpart(8)issyl02014-08-031-1/+21
| | | | | | | - In the style of gmirror(8). PR: docs/191534 Reviewed by: gavin
* When restoring a UFS dump onto a ZFS filesystem, an assertion inmckusick2014-07-301-3/+5
| | | | | | | | | | | 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 after: 1 week
* mdoc: sort sections.joel2014-07-291-4/+4
|
* When interval is set to very small value with limited amount of packets,delphij2014-07-281-2/+8
| | | | | | | | | | | 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 after: 2 weeks
* Fix spelling of Camellia algorithm. While here, replace blank lineswblock2014-07-251-11/+10
| | | | | | | | between examples with actual .Pp breaks. PR: 192067 Submitted by: dmitry2004@yandex.ru MFC after: 1 week
* Replace all uses of libncurses and libtermcap with their wide characterbrooks2014-07-172-4/+4
| | | | | | | | | | variants. This allows usable file system images (i.e. those with both a shell and an editor) to be created with only one copy of the curses library. Exp-run: antoine PR: 189842 Discussed with: bapt Sponsored by: DARPA, AFRL
* newfs_msdosfs: Respect FSFIXFATpfg2014-07-142-4/+4
| | | | | | | Fix some whitespace issues while here. Obtained from: NetBSD (rev. 1.9) MFC after: 3 days
* msdosfs: Assorted fixes from other BSDs.pfg2014-07-142-15/+33
| | | | | | | | | | | | | | 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 after: 1 week
* 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 after: 3 days
* Minor (mostly cosmetic) cleanupspfg2014-07-142-3/+1
| | | | | | | | Several whitespace fixes convert *rootDir from external to static. Obtained from: NetBSD, OpenBSD (partial) MFC after: 3 days
* Make the description of the "no_prefer_iface" flag easier to understand.jlh2014-07-121-3/+5
| | | | Reviewed by: Silence on -net@ and from ume@
* Fix non-version text after .Fx macro usage.gjb2014-07-081-1/+2
| | | | Sponsored by: The FreeBSD Foundation
* Remove ia64.marcel2014-07-077-640/+1
| | | | | | | | | | | | | | | | | This includes: o All directories named *ia64* o All files named *ia64* o All ia64-specific code guarded by __ia64__ o All ia64-specific makefile logic o Mention of ia64 in comments and documentation This excludes: o Everything under contrib/ o Everything under crypto/ o sys/xen/interface o sys/sys/elf_common.h Discussed at: BSDcan
* Check the number of returned entries before doing any access to ifm_ulist.loos2014-07-051-0/+2
|
* After EFI support was added to the installer, it needed to allow bootnwhitehorn2014-07-041-1/+19
| | | | | | | | | | | | | 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.
* Add persistent reservation support to camcontrol(8).ken2014-07-035-9/+1351
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | camcontrol(8) now supports a new 'persist' subcommand that allows users to issue SCSI PERSISTENT RESERVE IN / OUT commands. sbin/camcontrol/Makefile: Add persist.c. sbin/camcontrol/persist.c: New persistent reservation support for camcontrol(8). We have support for all known operation modes for PERSISTENT RESERVE IN and PERSISTENT RESERVE OUT. exceptions noted above. sbin/camcontrol/camcontrol.8: Document the new 'persist' subcommand. In the section on the Transport ID (-I) option, explain what Transport IDs for each protocol should look like. At some point some of this information could probably get moved off in a separate man page, either on Transport IDs alone or a man page documenting the Transport ID parsing code. Add a number of examples of persistent reservation commands. Persistent Reservations are complex enough that the average user probably won't be able to get the commands exactly right by just reading the man page. These examples show a few basic and advanced examples of how to use persistent reservations. sbin/camcontrol/camcontrol.h: Move the definition for camcontrol_optret here, so we can use it for the persistent reservation code. Add a definition for the new scsipersist() function. sbin/camcontrol/camcontrol.c: Add 'persist' to the list of subcommands. Document 'persist' in the help text. sys/cam/scsi/scsi_all.c: Add the scsi_persistent_reserve_in() and scsi_persistent_reserve_out() CCB building functions. Add a new function, scsi_transportid_sbuf(). This takes a SCSI Transport ID (documented in SPC-4), and prints it to an sbuf(9). There are some transports (like ATA, USB, and SSA) for which there is no transport defined. We need to come up with a reasonable thing to do if we're presented with a Transport ID that claims to be for one of those protocols. Add new routines scsi_get_nv() and scsi_nv_to_str(). These functions do a table lookup to go between a string and an integer. There are lots of table lookups needed in the persistent reservation code in camcontrol(8). Add a new function, scsi_parse_transportid(), along with leaf node functions to parse: FC, 1394 and SAS (scsi_parse_transportid_64bit()) iSCSI (scsi_parse_transportid_iscsi()) SPI (scsi_parse_transportid_spi()) RDMA (scsi_parse_transportid_rdma()) PCIe (scsi_parse_transportid_sop()) Transport IDs. Given a string with the general form proto,id these functions create a SCSI Transport ID structure. sys/cam/scsi/scsi_all.h: Update the various persistent reservation data structures to SPC4r36l, but also rename some fields that were previously obsolete with the proper names from older SCSI specs. This allows using older, obsolete persistent reservation types when desired. Add function prototypes for the new persistent reservation CCB building functions. Add a data strucure for the READ FULL STATUS service action of the PERSISTENT RESERVE IN command. Add Transport ID structures for all protocols described in SPC-4. Add a new series of SCSI_PROTO_XXX definitions, and redefine other defines in terms of these new definitions. Add a prototype for scsi_transportid_sbuf(). Change a couple of "obsolete" persistent reservation data structure fields into something more meaningful, based on what the field was called when it was defined in the spec. (e.g. SPC, SPC-2, etc.) Create a new define, SPRI_MAX_LEN, for the maximum allocation length allowed for the PERSISTENT RESERVE IN command. Add data structures and enumerations for the new name/value translation functions. Add data structures for SCSI over PCIe Routing IDs. Bring the PERSISTENT RESERVE OUT Register and Move parameter list structure (struct scsi_per_res_out_parms) up to date with SPC-4. Add a data structure for the transport IDs that can optionally be appended to the basic PERSISTENT RESERVE OUT parameter list. Move SCSI protocol macro definitions out of the VPD page 0x83 definition and combine them with the more up to date protocol definitions higher in the file. Add function prototypes for scsi_nv_to_str(), scsi_get_nv(), scsi_parse_transportid_64bit(), scsi_parse_transportid_spi(), scsi_parse_transportid_rdma(), scsi_parse_transportid_iscsi(), scsi_parse_transportid_sop(), and scsi_parse_transportid(). Sponsored by: Spectra Logic Corporation MFC after: 1 week
* Document all aliases supported by GEOM_PART class.ae2014-07-011-13/+173
| | | | MFC after: 1 week
* 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
OpenPOWER on IntegriCloud