Correct autodetection of bootfs property

Remove lines that contain only a hyphen (match '^-$' instead of '-').

I had a root fs with a hyphen in the name (fedora/ROOT/Fedora20-Dev),
it was not detected because sed eliminated that line of output from
'zpool list -Ho bootfs'.

Signed-off-by: Evan Susarret <evansus@gmail.com>
Signed-off-by: Turbo Fredriksson <turbo@bayour.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #2196
Include sys/taskq.h in linux/vfs_compat.h

We should have included sys/taskq.h directly because we use the taskq
code here, but we instead had files that included sys/taskq.h also
include sys/kmem.h, which happened to include sys/taskq.h. sys/kmem.h no
longer does this, so we must define the include as we should
have done in the first place.

Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #2411
cast ptr to ulong in cpu_seqid

This patch adds a cast of pthread_self in CPU_SEQID definition.
This fixes a build time error, resulting from comparing types
pthread_t and int, on alternate platforms.
ensure arc.c finds HZ

Current glibc includes linux/param.h from sys/param.h. When
building with alternate libc, build error results from lack
of HZ definition. This patch adds a direct include for
linux/param.h, to ensure that HZ gets defined.
ensure dev_t defined

Current glibc includes sys/types.h from stdlib.h. When
building with alternate libc, a build error results from
undefined type. This patch adds an include for sys/types.h,
to ensure that dev_t gets defined.
ensure rlim64_infinity defined

Several files make use of the RLIM64_INFINITY macro available
from current glibc's sys/resource.h. This patch adds a local
sys/resource.h, to offer a fallback for alternate libc's
that do not provide this macro, and updates the relevant
files to include the new header.