Commit Graph

7515 Commits

Author SHA1 Message Date
trasz
6a2be062a5 MFC r274858:
Cross-reference autounmountd(8) from umount(8).

Sponsored by:	The FreeBSD Foundation
2015-01-01 15:38:57 +00:00
trasz
783c94c87f MFC r274857:
Cross-reference automount(8) from mount(8).

Sponsored by:	The FreeBSD Foundation
2015-01-01 15:37:21 +00:00
ngie
d4c625976a MFC r264400,r265836:
r264400:

  NO_MAN= has been deprecated in favor of MAN= for some time, go ahead
  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.

r265836:

  Remove last two NO_MAN= in the tree. In both of these cases, MAN= is
  what is needed.
2014-12-31 23:25:37 +00:00
trasz
40ef49f52b MFC r274742:
Uniformly refer to a file system as "file system".

Sponsored by:	The FreeBSD Foundation
2014-12-21 11:26:51 +00:00
trasz
84195308d0 MFC r274741:
Add example on how to use gpart before growfs.  While here, reorder examples
so that the simplest one comes first.

Sponsored by:	The FreeBSD Foundation
2014-12-21 11:25:26 +00:00
trasz
950a2d5097 MFC r274738:
Document growfs(8) feature apparently nobody knows about.

Sponsored by:	The FreeBSD Foundation
2014-12-21 11:23:59 +00:00
trasz
83b038683b MFC r274737:
Use proper ordering in EXAMPLES section in growfs(8).

Sponsored by:	The FreeBSD Foundation
2014-12-21 11:22:15 +00:00
bryanv
5ce5864383 MFC r274322:
Attempt to report a better error if sanitize is not supported
2014-12-09 07:03:49 +00:00
ngie
bb7db53959 MFC r275170:
Convert sbin/mdconfig/tests from prove format tests to ATF format tests

  As a side effect...
  1. The tests now checks for the root user before continuing with kyua, which is
     more visible than the test being skipped with the TAP protocol
  2. The tests work with devices that aren't /dev/md0 by caching the device
     attached during the test to a file, and later use the cached information to
     detach the device in the cleanup routine
  3. The tests no longer require perl to run

  PR: 191191
  Sponsored by: EMC / Isilon Storage Division
2014-12-05 12:51:27 +00:00
delphij
0b08d45457 MFC r272044:
Constify a parameter of name2oid.  No functional change.
2014-12-04 23:15:44 +00:00
trasz
39035328b4 MFC r273896:
Build mount_nfs(8) with WARNS=6.

Sponsored by:	The FreeBSD Foundation
2014-11-29 15:57:31 +00:00
trasz
abb884ffe0 MFC r273848:
Get rid of obsolete code in mount_nfs(8).

MFC r273861:

Remove two functions unused after r273848.  Would be nice if clang
or at least scan-build yelled about it.

Sponsored by:	The FreeBSD Foundation
2014-11-29 15:55:35 +00:00
trasz
3c827138a2 MFC r273851:
Note that the "timeout" nfs option is in tenths of a second.

Sponsored by:	The FreeBSD Foundation
2014-11-29 15:43:32 +00:00
trasz
059653a03d MFC r273849:
Add support for "timeo", "actimeo", "noac", and "proto" options
to mount_nfs(8).  They are implemented on Linux, OS X, and Solaris,
and thus can be expected to appear in automounter maps.

Sponsored by:	The FreeBSD Foundation
2014-11-29 15:41:55 +00:00
ae
3a3d4bc315 MFC r274750:
Use geom attribute "PART::type" to determine partition type and choose
  relevant fsck_xxx utility.
2014-11-27 08:41:31 +00:00
nyan
3f0322db38 MFC: r272243
Add missing library dependencies.
2014-11-03 05:35:45 +00:00
ae
456c95b69d MFC r272746:
Add an ability to set dumpdev via loader(8) tunable.

MFC r272747:
  Revert r156046. We support setting dumpdev via loader tunable again.
  Also change default disk name to ada.
2014-10-29 11:07:40 +00:00
skreuzer
d384077778 MFC r269627:
Mention tmpfs(5)

PR:             192389
Submitted by:   yaneurabeya@gmail.com
Approved by:    hrs (mentor)
2014-10-14 19:21:04 +00:00
mav
2cb46b9c51 MFC r271588: Update CAM CCB accounting for the new status quo.
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.
2014-10-14 12:13:01 +00:00
trasz
625b27b4d0 MFC r272932:
Mark iscontrol(8) and iscsi_initiator(4) obsolete.

Differential Revision:	https://reviews.freebsd.org/D931
Reviewed by:	wblock@
Sponsored by:	The FreeBSD Foundation
2014-10-14 07:52:37 +00:00
hrs
72b3bc6083 MFC r272885:
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.
2014-10-11 20:35:36 +00:00
jhb
5595ee4003 MFC 270828,271487,271495:
Add sysctls to export the BIOS SMAP and EFI memory maps along with
handlers in the sysctl(8) binary to format them.
2014-10-10 20:47:23 +00:00
hrs
295bc031b8 MFC r271921:
Fix a typo.
2014-10-09 23:50:31 +00:00
hrs
33c910e72d MFC r271919:
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.
2014-10-09 23:49:36 +00:00
hrs
c1d2c479c7 MFC r271909:
Revert changes in r269180.  It could cause -c N option to enter an
  infinite loop if no reply packet is received.
2014-10-09 23:48:20 +00:00
hrs
ff5a508f69 MFC r271411:
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.
2014-10-09 23:43:13 +00:00
hrs
5500c83bb6 MFC r257036:
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.
2014-10-09 23:17:18 +00:00
hrs
0f665a39d5 MFC r256715:
Use long explicitly for the time difference.
2014-10-09 23:15:26 +00:00
hrs
d602c1189c MFC r256695:
- Add relative specification in expiration time.
  - Add proto3 option for RTF_PROTO3.
  - Use %lu for members of struct rt_metrics.
2014-10-09 23:14:02 +00:00
ae
142c064467 MFC r271307:
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.
2014-10-09 02:49:33 +00:00
bdrewery
bcf511dc04 MFC r271720:
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)
2014-10-02 18:11:13 +00:00
emaste
37dd226a2e MFC EFI support for the installer
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
2014-09-15 17:49:46 +00:00
jhb
27eceb3a0f MFC 270722:
Correct the destroy example.  The -n argument is not needed (and is not
valid).

Approved by:	re (gjb for 10)
2014-09-05 17:44:10 +00:00
se
395db98c3c MFC r270647: Add references to vt(4) and the configuration files in /usr/sha
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
2014-09-04 13:45:16 +00:00
neel
e7f9a84216 MFC r270289:
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.
2014-09-04 01:38:31 +00:00
gavin
982eceeac0 Merge 270872 from head:
Fix character case in examples for "camcontrol security" - should be
  "-U user" not "-u user".

PR:		193179
Submitted by:	milios ccsys com
2014-09-03 23:04:23 +00:00
ngie
68a94ff2b9 MFC r270433:
Garbage collect libl dependency

  The application links and runs without libl

  Approved by: rpaulo (mentor)
  Phabric: D673
  Submitted by: trociny
2014-09-01 03:22:47 +00:00
ngie
442c5e1bb5 MFC r270117:
Add -ll to LDADD to fix "make checkdpadd"

  Phabric: D622
  Approved by: rpaulo (mentor)
2014-09-01 03:20:10 +00:00
trasz
2f448226ce MFC r270209:
Add description for the "automounted" mount flag.

Reviewed by:	emaste@
Sponsored by:	The FreeBSD Foundation
2014-08-31 21:45:07 +00:00
trasz
e8d76f86d2 MFC r270096:
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
2014-08-31 21:18:23 +00:00
ngie
f4fd8ca123 MFC r270027:
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
2014-08-29 18:26:55 +00:00
ae
0f937e3532 MFC r268407 (by gjb):
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.
2014-08-25 12:49:10 +00:00
ngie
ac676e3706 MFC r270118:
Add LIBUTIL to DPADD

 This will fix "make checkdpadd"

 PR: 192759
 Approved by: rpaulo (mentor)
 Phabric: D623
2014-08-23 02:20:49 +00:00
peter
644cd5de6d MFC r270062: switch rpc mount protocol for showmount and umount from
mountv1 to mountv3 - it breaks by default on the new netapp release with
the legacy protocols removed.
2014-08-21 04:31:48 +00:00
asomers
5efc9173fa MFC devd-related changes
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
2014-08-20 19:30:58 +00:00
bz
a771dfd28a MFC r264539:
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
2014-08-16 13:47:04 +00:00
bz
f57b2f8c40 MFC r259916:
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)
2014-08-16 13:20:44 +00:00
bz
1843acbd6d MFC r269583:
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
2014-08-16 13:06:11 +00:00
pfg
2e2e6c6d48 MFC r269953:
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)
2014-08-16 01:06:23 +00:00
gjb
28c99f4366 MFC r269888:
Fix a typo in a comment: s/interprete/interpret/

Sponsored by:	The FreeBSD Foundation
2014-08-15 03:52:40 +00:00