Commit Graph

200370 Commits

Author SHA1 Message Date
trasz
d6b9751caa MFC r287827:
Add a way to specify stripesize and stripeoffset to gnop(8). This makes
it possible to "simulate" 4K media, to eg test alignment handling.

Sponsored by:	The FreeBSD Foundation
2015-10-18 15:02:07 +00:00
trasz
669694f067 MFC r287951:
The "automount" rc script should depend on "automountd", not the other
way around.

Sponsored by:	The FreeBSD Foundation
2015-10-18 14:59:38 +00:00
trasz
da664065e6 MFC 287397:
Fix markup.

Sponsored by:	The FreeBSD Foundation
2015-10-18 14:57:42 +00:00
trasz
20350f262a MFC r286360:
Tweak mdconfig(8) manual page, in particular revise the EXAMPLES
section.  This removes stuff that doesn't really belong there,
and simplifies examples for the basic operations.

MFC r286361:

Whoops, wrong flag.

Sponsored by:	The FreeBSD Foundation
2015-10-18 14:55:09 +00:00
trasz
d3fb3a1ab2 MFC r258909:
Tweak mdconfig(8) manual page, in particular revise the EXAMPLES
section.  This removes stuff that doesn't really belong there,
and simplifies examples for the basic operations.

Sponsored by:	The FreeBSD Foundation
2015-10-18 14:52:31 +00:00
trasz
71228bfa84 MFC r257182 (by jmg@):
bump date forgotten in r257165

Sponsored by:	The FreeBSD Foundation
2015-10-18 14:47:19 +00:00
trasz
2c5302d9d9 MFC r257165 (by jmg@):
Document that -a will output the device name when -u is not specified..
when -u is specified it is not...

update the docs to say that you can use full device names w/ -u, and
update the examples...

Sponsored by:	The FreeBSD Foundation
2015-10-18 14:46:12 +00:00
trasz
a3a538f354 MFC r287033:
After r286237 it should be fine to call vgone(9) on a busy GEOM vnode;
remove KASSERT that would prevent forced devfs unmount from working.

Sponsored by:	The FreeBSD Foundation
2015-10-18 14:41:38 +00:00
trasz
e93b464d00 MFC r286283:
Fix panic triggered by code like this:
open("/dev/md0", O_EXEC);

Sponsored by:	The FreeBSD Foundation
2015-10-18 14:36:04 +00:00
trasz
43f70df899 MFC r286237:
Fix panic that would happen on forcibly unmounting devfs (note that
as it is now, devfs ignores MNT_FORCE anyway, so it needs to be modified
to trigger the panic) with consumers still opened.

Note that this still results in a leak of r/w/e counters.  It seems
to be harmless, though.  If anyone knows a better way to approach
this - please tell.

Sponsored by:	The FreeBSD Foundation
2015-10-18 14:34:13 +00:00
trasz
2f6e19044a MFC r286281:
Mark vgonel() as static.

Sponsored by:	The FreeBSD Foundation
2015-10-18 14:31:54 +00:00
trasz
e345589d28 MFC r286226:
Rework the way iSCSI initiator handles system shutdown. This fixes
hangs on shutdown with LUNs with mounted filesystems over a disconnected
iSCSI session.

Sponsored by:	The FreeBSD Foundation
2015-10-18 14:25:04 +00:00
trasz
7709ac4a9e MFC r285881:
Add md_root example to defaults/loader.conf.

Note that this doesn't quite work yet - the preloaded image
gets loaded twice for some reason.

Sponsored by:	The FreeBSD Foundation
2015-10-18 14:20:11 +00:00
trasz
4b63839e8d MFC r285870:
Document md_root in loader(8). The md(4) manual page mentions it,
but it's hard to find and easy to miss.

Sponsored by:	The FreeBSD Foundation
2015-10-18 14:17:30 +00:00
trasz
104f9e09fa MFC r285847:
Add missing SIGUSR1 description.

Sponsored by:	The FreeBSD Foundation
2015-10-18 14:16:01 +00:00
trasz
ba235dd137 MFC r281726:
Optimize the O_NOCTTY handling hack in linux_common_open().

MFC r281728:

Add back fdrop() missed in r281726.

Sponsored by:	The FreeBSD Foundation
2015-10-18 14:01:20 +00:00
trasz
8ef11ffa16 MFC r281689:
Remove unused code from linux_mount(), and make it possible to mount
any kind of filesystem instead of harcoded three.

Sponsored by:	The FreeBSD Foundation
2015-10-18 13:58:17 +00:00
trasz
3a711d39b4 MFC r280981:
Remove unused code.

Sponsored by:	The FreeBSD Foundation
2015-10-18 13:52:53 +00:00
mav
3143d6bb40 MFC r289136: Remove lock upgrade attempt from ctl_be_block_open_file().
I am not sure what for it was done.  Now open routine should automatically
fall back to read-only if open for writing is impossible.  In such case
attempt to upgrade to write sounds strange.
2015-10-18 06:53:31 +00:00
markj
69ff7e3539 MFC r272455:
Have dtrace(1) handle SIGPIPE, and handle signals when in list mode (-l).
In particular, make sure to detach from child processes before exiting.
2015-10-17 20:38:40 +00:00
wblock
8c200fe8a0 MFC 289067:
Fix a repeated typo: rootir -> rootdir.
2015-10-17 02:49:19 +00:00
kib
100b6d1e0f MFC r289026:
Enforce the maxproc limitation before allocating struct proc.

In collaboration with:	pho
2015-10-16 20:51:25 +00:00
pho
68f48c5dee Fix build with options DIAGNOSTIC.
Sponsored by:	EMC / Isilon storage division
In collaboration with:	 kib
2015-10-16 12:16:35 +00:00
emaste
2560d3d5d7 MFC r289070: Add .gnu.versym VERSYM_HIDDEN flag and related mask
Sponsored by:	The FreeBSD Foundation
2015-10-16 01:31:38 +00:00
cperciva
ac728f85ce MFC r289065: Add --currently-running <release> option to freebsd-update. 2015-10-16 01:23:41 +00:00
adrian
b46146d7b7 if_lem: Bring over the missing pieces from -HEAD to make NIC_PARAVIRT work.
The paravirt support for the driver and netmap code was already MFCed,
but the adapter and ifnet API bits weren't.

This was backported from -HEAD by Eric Melville <eric@freebsd.org>.

Submitted by:	eric
Sponsored by:	Norse Corp, Inc.
2015-10-15 20:37:30 +00:00
adrian
766753c6f7 Add the paravirt.h support from -HEAD.
Submitted by:	eric
Sponsored by:	Norse Corp, Inc.
2015-10-15 20:36:04 +00:00
emaste
fa397f3a4b MFC r265164: Small cleanup: mostly whitespace vs. tabs. 2015-10-15 16:07:15 +00:00
emaste
9bdc4300cd MFC r264889: newfs_msdos: Correct min/max cluster counts for FAT12/16/32
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
2015-10-15 16:06:10 +00:00
mav
2cefe1a092 MFC r289017: Add missing vnode lock in case of file modify request.
Submitted by:	Richard Kojedzinszky
2015-10-15 08:49:52 +00:00
cperciva
0efbd96e26 MFC 289031: Teach gptldr to handle >64k boot2. 2015-10-15 03:48:03 +00:00
ian
9ac08730cc MFC r261994, r275905, r275951, r276106, r283128, r285678: MMC driver fixes...
If no compatible cards were found after probing the bus, say so.

  Don't deselect the card too soon. To set the block size or switch the
  function parameters, the card has to be in transfer state. If it is in
  the idle state, the commands are ignored. This caused us not to set
  the proper parameters that we later assume to be present, leading to
  downstream failures of the card / interface as our state machine
  mismatches the card's.

  Log mmc and sd command failures.  Reporting of routine expected errors,
  such as timeouts while probing a bus or testing for a feature, is
  squelched.  Also, error reporting is limited to 5 events per second,
  because when an sdcard goes bad on a low-end embedded board, flooding
  the console at high speed isn't helpful.

  Always select the card before we do the 4.x specific stuff and
  deselect it after setting the block size. This is a similar bug that
  was fixed elsewhere, but not here. This makes sure that we leave the
  card deselected at the end of the loop, and we don't send any commands
  to the card without it selected.

  Re-select the SD card before getting the SD status. On a couple Atmel
  boards, this prevents some error messages during enumeration and also
  gives us the correct erase block size. They appear to be harmless
  elsewhere.

  Deselect the sd card before re-selecting it when working around a problem
  with some cards that causes them to become deselected after probing for
  switch capabilities.  The old workaround fixes the behavior with some cards,
  but causes problems with the cards the behave correctly and don't become
  deselected.  Forcing a deselect then reselect appears to work correctly
  with all cards in initial testing.
2015-10-14 23:41:41 +00:00
jgh
3c5fa0a296 MFC 288833:
PR:		203440 (based on)
Submitted by:	ceratv@rpi.edu
Approved by:	wblock@ (mentor)
Differential Revision:	https://reviews.freebsd.org/D3813

- address grammar
2015-10-14 17:00:35 +00:00
bapt
9f9e4ddb49 MFC: 288984
Only print the errno string in case sysctl(3) does not file with ENOENT
This reduces the noise in error reporing from sysctl(8):

Before:
$ sysctl bla=something
sysctl: unknown oid 'bla': No such file or directory

After:
$ sysctl bla=something
sysctl: unknown oid 'bla'

Sponsored by:	Gandi.net
2015-10-14 06:31:49 +00:00
bapt
33831fe3b5 Trim spaces at the end of the buffer before trying to convert it to an oid
This allows to write entries in sysctl.conf with spaces before the '=' like
kern.ipc.shmmax = 9663676416

Sponsored by:	Gandi.net
2015-10-14 06:26:55 +00:00
bapt
b21a2490b7 Hook sesutil(8) to the build (forgotten in previous MFC) 2015-10-14 06:24:01 +00:00
hiren
cb1e85a62a MFC r288914
Add a comment specifying how we implement rfc3042.
2015-10-14 05:29:33 +00:00
bdrewery
f8a9ff862c MFC r288266:
Add more SUBDIR_PARALLEL.
2015-10-13 18:56:50 +00:00
bdrewery
353b157d9a MFC r288390:
When stopping ugidfw, it is not enough to just try unloading the module.  If
  the module is built-in to the kernel then the kldunload will fail.  Rather
  than do this just check if there are rules and then remove them all.

Relnotes:	yes
2015-10-13 18:46:11 +00:00
bdrewery
3ce05314f3 MFC r288391:
Fix the .MAKE added in r251750 to properly support the historical -n -n.
2015-10-13 18:44:55 +00:00
bdrewery
3b729f879d MFC r288249:
Add SUBDIR_PARALLEL.
2015-10-13 18:43:49 +00:00
bdrewery
e455e240ab MFC r288248:
Remove disconnected directories.
2015-10-13 18:40:46 +00:00
bdrewery
c9cf945a00 MFC r287983,r288075:
r287983:
    Replace afterinstall: hack with FILES mechanism.
  r288075:
    Use SHAREOWN/SHAREMODE/SHAREGRP rather than LIB* as these are plain ASCII
    scripts that the linker can load rather than binary library objects.
2015-10-13 18:32:47 +00:00
bdrewery
89e7358cd6 MFC r288230,r288233:
r288230:
    Fix emulation ldscripts not being installed since r131832.
  r288233:
    Fix subdir -j build after r287983 by adding missing dependencies.
2015-10-13 18:31:23 +00:00
hselasky
8096b85f20 MFC r288335:
Store PID after becoming a daemon() and not before to ensure the
correct PID gets written to the PID file.

PR:		203252
2015-10-13 08:21:15 +00:00
hselasky
6cdda4a656 MFC r287592 and r287616:
Add new USB ID.

PR:		202968
2015-10-13 08:14:36 +00:00
hselasky
eedaa9616a MFC r288273:
Fix spelling.

PR:		203249
2015-10-13 08:09:16 +00:00
cy
fe0e54ca0d MFC r288910: On some interfaces, ipfilter drops UDP packets with zero
checkum. This commit fixes that.

PR:		166372
Submitted by:	mk@neon1.net
Reviewed by:	Darren Reed <darrenr@reed.wattle.id.au>
2015-10-13 04:19:49 +00:00
andrew
8fe61b7856 MFC of r288447. Only the Marvell driver has been updated as there is no
support for Raspbetty Pi 2 in stable/10.

An IPI must be cleared before it is handled otherwise next IPI could be
missed. In other words, if a new request for an IPI is sent while the
previous request is being handled but the IPI is not cleared yet, the
clearing of the previous IPI request also clears the new one and the
handling is missed.

There are only three MP interrupt controllers in ARM now. Two of them are
fixed by this change, the third one is correct, probably only just by
accident. The fix is minimalistic as new interrupt framework is awaited.

It was debugged on RPi2 where missing IPI handling together with SCHED_ULE
led to situation in which tdq_ipipending was not cleared and so IPI_PREEMPT
was stopped to be sent. Various odditys were found related to slow system
response time like various events timed out, and slow console response.
2015-10-12 13:20:17 +00:00
ae
687e72445c MFC r288528:
Fix possible segmentation fault.

  PR:		203494
2015-10-12 07:50:27 +00:00