Commit Graph

3327 Commits

Author SHA1 Message Date
Brian Behlendorf cb074ec815 Merge commit 'refs/top-bases/linux-have-sysevent' into linux-have-sysevent 2010-03-08 16:08:09 -08:00
Brian Behlendorf 5f2477452f Merge commit 'refs/top-bases/linux-kernel-module' into linux-kernel-module 2010-03-08 16:08:09 -08:00
Brian J. Murrell 3f30f74414 Check for spl in ../spl if not found in install path
If the spl source could not be found in /usr/src/spl-*, also try to
find it in ../spl.  This makes finding it in a development sandbox
more natural.
2010-03-08 16:04:25 -08:00
Brian Behlendorf e8fdf3a7e1 Merge commit 'refs/top-bases/linux-have-sysevent' into linux-have-sysevent 2010-03-08 14:57:04 -08:00
Brian Behlendorf 328ae92733 Merge commit 'refs/top-bases/linux-kernel-module' into linux-kernel-module 2010-03-08 14:57:04 -08:00
Brian J. Murrell 0ec3b7e122 When no kernel source has been pointed to, first attempt to use
/lib/modules/$(uname -r)/source.  This will likely fail when building
under a mock (http://fedoraproject.org/wiki/Projects/Mock) chroot
environment since `uname -r` will report the running kernel which
likely is not the kernel in your chroot.  To cleanly handle this
we fallback to using the first kernel in your chroot.

The kernel-devel package which contains all the kernel headers and
a few build products such as Module.symver{s} is all the is required.
Full source is not needed.
2010-03-08 14:53:13 -08:00
Brian Behlendorf 7be37fe5f3 Merge commit 'refs/top-bases/linux-have-sysevent' into linux-have-sysevent 2010-03-08 13:48:16 -08:00
Brian Behlendorf 9974a98a5d Merge commit 'refs/top-bases/linux-kernel-module' into linux-kernel-module 2010-03-08 13:48:15 -08:00
Brian Behlendorf 3d7cfde000 Remove Module.markers and Module.symver{s} in clean target
Split 'modules' and 'clean' Makefile targets to allow us to
cleanly remove the Module.* build products with a 'make clean'.
2010-03-08 13:45:51 -08:00
Brian Behlendorf df688225a3 Merge commit 'refs/top-bases/linux-have-sysevent' into linux-have-sysevent 2010-03-08 10:51:37 -08:00
Brian Behlendorf cb5949e65a Merge commit 'refs/top-bases/linux-kernel-module' into linux-kernel-module 2010-03-08 10:51:36 -08:00
Brian Behlendorf 7121867aea Configure checks for kernel build options incompatible with the license
Changes for linux-kernel-module topic branch, see commit fd75782.
2010-03-08 10:45:19 -08:00
Brian Behlendorf fd7578215e Configure checks for kernel build options incompatible with the license
Twice now I've been bitten by building agaist a kernel which is
configured such that it is incompatible with the CDDL license.  These
build failures don't occur until the linking phase at which point they
simply callout the offending symbol.  No location information can be
provided at this point so it often can be confusing what the problem is
particularly when building against a new kernel for the first time.

To help address this I've added a configure check which can be extended
over time to detect known kernel config options which if set will break
the ZFS build.  Currently I have just added CONFIG_DEBUG_LOCK_ALLOC which
makes mutex's GPL-only and is on by default in the RHEL6 alpha builds.
I know for a fact there are other similiar options which can be added
as they are encountered.
2010-03-08 10:27:42 -08:00
Brian Behlendorf 9abaa78c6f Merge commit 'refs/top-bases/linux-have-sysevent' into linux-have-sysevent 2010-03-02 10:04:14 -08:00
Brian Behlendorf 5455070ca1 Merge commit 'refs/top-bases/linux-kernel-module' into linux-kernel-module 2010-03-02 10:04:12 -08:00
Brian Behlendorf 7df02c0f57 Split the udev rule from a specific configuration
While I completely agree the udev is the lesser of many possibles
evils when solving the device issue... it is still evil.  After
attempting to craft a single rule which will work for various
versions of udev in various distros.  I've come to the conclusion
the only maintainable way to solve this issue is to split the rule
from any particular configuration.

This commit provides a generic 60-zpool.rules file which use a
small helper util 'zpool_id' to parse a configuration file by
default located in /etc/zfs/zdev.conf.  The helper script maps
a by-path udev name to a more friendly name of <channel><rank>
for large configurations.

As part of this change all of the support scripts why rely on
this udev naming convention have been updated as needed.  Example
zdev.conf files have also been added for 3 different systems by
you will always need to add one for your exact hardware.

Finally, included in these changes are the proper tweaks to the
build system to ensure everything still get's packaged properly
in the rpms and can run in or out of tree.
2010-03-01 16:51:21 -08:00
Brian Behlendorf 237341f2ce Merge commit 'refs/top-bases/linux-have-sysevent' into linux-have-sysevent 2010-01-08 11:39:52 -08:00
Brian Behlendorf 39d8b611e3 Merge commit 'refs/top-bases/linux-kernel-module' into linux-kernel-module 2010-01-08 11:39:52 -08:00
Brian Behlendorf 303d9f010d Merge commit 'refs/top-bases/zfs-branch' into zfs-branch 2010-01-08 11:39:31 -08:00
Brian Behlendorf 75bc637b6d Merge branch 'feature-branch' into refs/top-bases/zfs-branch 2010-01-08 11:39:30 -08:00
Brian Behlendorf b991553702 Merge commit 'refs/top-bases/feature-branch' into feature-branch 2010-01-08 11:39:30 -08:00
Brian Behlendorf efd53d2969 Merge branch 'feature-pthreads' into refs/top-bases/feature-branch 2010-01-08 11:39:30 -08:00
Brian Behlendorf 710e779a08 Merge commit 'refs/top-bases/feature-pthreads' into feature-pthreads 2010-01-08 11:39:30 -08:00
Brian Behlendorf a240c39095 Merge commit 'refs/top-bases/feature-commit-cb' into feature-commit-cb 2010-01-08 11:39:29 -08:00
Brian Behlendorf eaf2e3231c Merge branch 'feature-zap-cursor-to-key' into refs/top-bases/feature-branch 2010-01-08 11:39:28 -08:00
Brian Behlendorf ee3aa7773b Merge commit 'refs/top-bases/feature-zap-cursor-to-key' into feature-zap-cursor-to-key 2010-01-08 11:39:28 -08:00
Brian Behlendorf cad00c2fc1 Merge branch 'fix-branch' into refs/top-bases/zfs-branch 2010-01-08 11:39:27 -08:00
Brian Behlendorf 27ae099e65 Merge commit 'refs/top-bases/fix-branch' into fix-branch 2010-01-08 11:39:27 -08:00
Brian Behlendorf d285c096c9 Merge branch 'fix-acl' into refs/top-bases/fix-branch 2010-01-08 11:39:27 -08:00
Brian Behlendorf 3d5d35b616 Merge branch 'fix-deadcode' into refs/top-bases/fix-branch 2010-01-08 11:39:26 -08:00
Brian Behlendorf da35bd5b60 Merge commit 'refs/top-bases/fix-acl' into fix-acl 2010-01-08 11:39:26 -08:00
Brian Behlendorf 050c1617d8 Merge commit 'refs/top-bases/fix-deadcode' into fix-deadcode 2010-01-08 11:39:26 -08:00
Brian Behlendorf fe9ad9171a Merge branch 'fix-strncat' into refs/top-bases/fix-branch 2010-01-08 11:39:25 -08:00
Brian Behlendorf 34c0ae76d9 Merge commit 'refs/top-bases/fix-strncat' into fix-strncat 2010-01-08 11:39:25 -08:00
Brian Behlendorf 4fc3a7710c Merge branch 'fix-list' into refs/top-bases/fix-branch 2010-01-08 11:39:24 -08:00
Brian Behlendorf 4d11d8d3ef Merge commit 'refs/top-bases/fix-list' into fix-list 2010-01-08 11:39:24 -08:00
Brian Behlendorf 6ef95d5968 Merge branch 'fix-taskq' into refs/top-bases/fix-branch 2010-01-08 11:39:23 -08:00
Brian Behlendorf 233a1d9191 Merge branch 'fix-stack' into refs/top-bases/fix-branch 2010-01-08 11:39:23 -08:00
Brian Behlendorf 259647c1f1 Merge commit 'refs/top-bases/fix-taskq' into fix-taskq 2010-01-08 11:39:23 -08:00
Brian Behlendorf c6b28bd987 Merge branch 'fix-rwlocks' into refs/top-bases/fix-branch 2010-01-08 11:39:22 -08:00
Brian Behlendorf 385839654a Merge commit 'refs/top-bases/fix-stack' into fix-stack 2010-01-08 11:39:22 -08:00
Brian Behlendorf 5bd6eac343 Merge commit 'refs/top-bases/fix-rwlocks' into fix-rwlocks 2010-01-08 11:39:22 -08:00
Brian Behlendorf f70a3b3889 Merge branch 'fix-no-zmod' into refs/top-bases/fix-branch 2010-01-08 11:39:21 -08:00
Brian Behlendorf 1248d0da1a Merge commit 'refs/top-bases/fix-no-zmod' into fix-no-zmod 2010-01-08 11:39:21 -08:00
Brian Behlendorf 9b32e1cc61 Merge branch 'fix-newlines' into refs/top-bases/fix-branch 2010-01-08 11:39:20 -08:00
Brian Behlendorf 9aa7432a39 Merge branch 'fix-get-configs' into refs/top-bases/fix-branch 2010-01-08 11:39:20 -08:00
Brian Behlendorf 39235e0172 Merge commit 'refs/top-bases/fix-newlines' into fix-newlines 2010-01-08 11:39:20 -08:00
Brian Behlendorf 9002f847df Merge branch 'fix-evict-dbufs' into refs/top-bases/fix-branch 2010-01-08 11:39:19 -08:00
Brian Behlendorf 94872fcdab Merge commit 'refs/top-bases/fix-get-configs' into fix-get-configs 2010-01-08 11:39:19 -08:00
Brian Behlendorf c5a22252ab Merge commit 'refs/top-bases/fix-evict-dbufs' into fix-evict-dbufs 2010-01-08 11:39:19 -08:00