Commit Graph

4036 Commits

Author SHA1 Message Date
Brian Behlendorf fc3e47c6d4 Corrently handle return code in blk_end_request_x
This was caught under Debian Lenny builds because they are one of
the few/only current distros based on a 2.6.26 kernel.  In one
of the build conditionals I accidently failed to assign the
return code to rc before returning.
2010-07-14 12:45:16 -07:00
Brian Behlendorf 7cb1dcada5 Merge commit 'refs/top-bases/linux-kernel-disk' into linux-kernel-disk 2010-07-14 10:42:44 -07:00
Brian Behlendorf dccff58e11 Only make compiler warnings fatal with --enable-debug
While in theory I like the idea of compiler warnings always being
fatal.  In practice this causes problems when small harmless errors
cause build failures for end users.  To handle this I've updated
the build system such that -Werror is only used when --enable-debug
is passed to configure.  This is how I always build when developing
so I'll catch all build warnings and end users will not get stuck
by minor issues.
2010-07-14 10:41:48 -07:00
Brian Behlendorf d1f7e73bd0 Merge commit 'refs/top-bases/linux-kernel-disk' into linux-kernel-disk 2010-07-12 10:23:25 -07:00
Brian Behlendorf 99694a2e81 Merge commit 'refs/top-bases/zfs-branch' into zfs-branch 2010-07-12 10:23:05 -07:00
Brian Behlendorf 4b576456c7 Merge branch 'gcc-branch' into refs/top-bases/zfs-branch 2010-07-12 10:23:04 -07:00
Brian Behlendorf 930b48bd2c Merge commit 'refs/top-bases/gcc-branch' into gcc-branch 2010-07-12 10:23:03 -07:00
Brian Behlendorf b1ac2755a0 Merge branch 'gcc-fortify-source' into refs/top-bases/gcc-branch 2010-07-12 10:23:03 -07:00
Brian Behlendorf 007b891fc7 Fix -Werror=format-security compiler option
Noticed under Ubuntu kernel builds, there were two instances where
printf() was not called with a "%s" and instread directly printed
the string.  This can potentially result in a crash and is considered
bad form by gcc.  It has been fixed by adding the needed "%s".
2010-07-12 10:11:48 -07:00
Brian Behlendorf d7e916a68f Merge commit 'refs/top-bases/linux-kernel-disk' into linux-kernel-disk 2010-07-02 14:02:44 -07:00
Lars Johannsen 77f748fd1c Allow config/build to work with autoconf-2.65
As of autoconf-2.65 the AC_LANG_SOURCE source macro no longer
includes the confdef.h results when expanded.  To handle this
simply explicitly include confdef.h in conftest.c.  This will
cause two copies to of confdef.h to be added to the test for
earlier autoconf versions but this is not harmful.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
2010-07-02 13:56:00 -07:00
Brian Behlendorf 45cb33f64f Ensure devices are always created/removed
Devices were only being created at module load time or when a
dataset was created.  Similiar devices were not always being
removed at all the correct times.  This patch updates all the
places where devices should either be created or removed.  I'm
reasonably sure I got them all but if theres a case I missed
we can catch it with a follow up patch.

        module load/unload
        zfs create/remove
        zpool import/export
        zpool destroy

This patch also adds a simple regression test to zconfig.sh
to ensure zpool import/export is basically working properly.
This test specifically checks that devices are created
properly, removed after export, created after import, and
removed as a consequence of a zpool destroy.
2010-07-02 12:21:39 -07:00
Brian Behlendorf 122e5b44e1 Add missing mutex_exit(&zvol_state_lock)
With the recent ZVOL update zvol_set_volblocksize() accidentally
lost its mutex_exit().  This was noticed when zvol_create_minor()
blocked on the zvol_state_lock while it was holding the
spa_namespace_lock().  This caused everything to get blocked
up and hung the system.
2010-07-02 12:19:54 -07:00
Brian Behlendorf b11386351e Merge commit 'refs/top-bases/linux-kernel-disk' into linux-kernel-disk 2010-07-01 20:45:59 -07:00
Brian Behlendorf 61119d3f5b Linux-2.6.33 compat, check <generated/utsrelease.h> for UTS_RELEASE
It seems the upstream community moved the definition of UTS_RELEASE
yet again as of linux-2.6.33.  Update the build system to check in
all three possible locations where your kernel version may be defined.

    $kernelbuild/include/linux/version.h
    $kernelbuild/include/linux/utsrelease.h
    $kernelbuild/include/generated/utsrelease.h
2010-07-01 20:43:36 -07:00
Brian Behlendorf 6e73835df7 Merge commit 'refs/top-bases/linux-kernel-disk' into linux-kernel-disk 2010-07-01 10:42:21 -07:00
Brian Behlendorf 7f54d558c9 Merge commit 'refs/top-bases/zfs-branch' into zfs-branch 2010-07-01 10:42:01 -07:00
Brian Behlendorf 428d8d8a9b Merge branch 'gcc-branch' into refs/top-bases/zfs-branch 2010-07-01 10:42:00 -07:00
Brian Behlendorf 6de663ff06 Merge commit 'refs/top-bases/gcc-branch' into gcc-branch 2010-07-01 10:41:59 -07:00
Brian Behlendorf 049a26b800 Merge branch 'gcc-fortify-source' into refs/top-bases/gcc-branch 2010-07-01 10:41:59 -07:00
Brian Behlendorf 8db31e251d Update zfs.spec.in to reference updated README.markdown file
The spec file references the README by the previous name which
has changed to make it github friendly.  This results in an
rpm build failure.
2010-07-01 10:36:00 -07:00
Brian Behlendorf 3b54f5030e Use VERIFY() for asprintf due to rpm -D_FORTIFY_SOURCE=2
This check is part of ztest and a memory failure here is unlikely.
However, if this does occur simply exiting is an perfectly valid
way to handle the issue and it resulves the compiler warning.

        ztest.c:5522: error: ignoring return value of 'asprintf',
        declared with attribute warn_unused_result
2010-07-01 10:35:11 -07:00
Brian Behlendorf f5cb411fc1 Merge commit 'refs/top-bases/linux-kernel-disk' into linux-kernel-disk 2010-06-29 16:58:01 -07:00
Brian Behlendorf 5387c446cf Merge branch 'fix-branch' into refs/top-bases/zfs-branch 2010-06-29 16:57:41 -07:00
Brian Behlendorf f28ca65b92 Merge commit 'refs/top-bases/zfs-branch' into zfs-branch 2010-06-29 16:57:41 -07:00
Brian Behlendorf 1a58b78499 Merge commit 'refs/top-bases/fix-branch' into fix-branch 2010-06-29 16:57:39 -07:00
Brian Behlendorf 015677660a Merge branch 'fix-stack-traverse_visitbp' into refs/top-bases/fix-branch 2010-06-29 16:57:39 -07:00
Brian Behlendorf 6f1eda0629 Add configure check for -Wframe-larger-than=<size>
It turns out the gcc option -Wframe-larger-than=<size> which I recently
added to the build system is not supported in older versions of gcc.
Since this is just a flag to ensure I keep stack usage under control
I've added a configure check to detect if gcc supports it.  If it's
available we use it in the proper places, if it's not we don't.
2010-06-29 16:53:02 -07:00
Brian Behlendorf f20301b41b Minor fix to ensure tv_depth is there when debugging is disabled. 2010-06-29 16:52:42 -07:00
Brian Behlendorf 11e342a429 Merge commit 'refs/top-bases/linux-kernel-disk' into linux-kernel-disk 2010-06-29 14:41:57 -07:00
Brian Behlendorf 91f416b497 Merge commit 'refs/top-bases/zfs-branch' into zfs-branch 2010-06-29 14:41:38 -07:00
Brian Behlendorf 3d207a1f0d Merge branch 'fix-branch' into refs/top-bases/zfs-branch 2010-06-29 14:41:37 -07:00
Brian Behlendorf ddb3357f4b Merge commit 'refs/top-bases/fix-branch' into fix-branch 2010-06-29 14:41:35 -07:00
Brian Behlendorf b8bafc851f Merge branch 'fix-stack-ztest' into refs/top-bases/fix-branch 2010-06-29 14:41:35 -07:00
Brian Behlendorf d0ddee3859 Merge commit 'refs/top-bases/fix-stack-ztest' into fix-stack-ztest 2010-06-29 14:41:34 -07:00
Brian Behlendorf 213d6423b5 Merge commit 'refs/top-bases/fix-pthreads' into fix-pthreads 2010-06-29 14:41:34 -07:00
Brian Behlendorf c366e466e3 Merge commit 'refs/top-bases/fix-stack-traverse_visitbp' into fix-stack-traverse_visitbp 2010-06-29 14:41:32 -07:00
Brian Behlendorf f47cc9aac2 Merge branch 'fix-stack-traverse_visitbp' into refs/top-bases/fix-branch 2010-06-29 14:41:32 -07:00
Brian Behlendorf 4b23500c4a Merge branch 'fix-stack-traverse_impl' into refs/top-bases/fix-branch 2010-06-29 14:41:31 -07:00
Brian Behlendorf 490eb4db5c Merge commit 'refs/top-bases/fix-stack-traverse_impl' into fix-stack-traverse_impl 2010-06-29 14:41:30 -07:00
Brian Behlendorf daef43003b Merge branch 'fix-stack-vn_open' into refs/top-bases/fix-branch 2010-06-29 14:41:29 -07:00
Brian Behlendorf 861af03304 Merge commit 'refs/top-bases/fix-stack-vn_open' into fix-stack-vn_open 2010-06-29 14:41:28 -07:00
Brian Behlendorf 33b9043394 Merge branch 'fix-stack-dsl_dataset_destroy' into refs/top-bases/fix-branch 2010-06-29 14:41:27 -07:00
Brian Behlendorf 5721f147c5 Merge commit 'refs/top-bases/fix-stack-dsl_dataset_destroy' into fix-stack-dsl_dataset_destroy 2010-06-29 14:41:27 -07:00
Brian Behlendorf 46acb1b8d2 Merge branch 'fix-stack-dmu_objset_snapshot' into refs/top-bases/fix-branch 2010-06-29 14:41:25 -07:00
Brian Behlendorf 50c15019cb Merge commit 'refs/top-bases/fix-stack-dmu_objset_snapshot' into fix-stack-dmu_objset_snapshot 2010-06-29 14:41:25 -07:00
Brian Behlendorf b8b1c5abb9 Merge branch 'fix-stack-noinline' into refs/top-bases/fix-branch 2010-06-29 14:41:24 -07:00
Brian Behlendorf 002a52896d Merge commit 'refs/top-bases/fix-stack-noinline' into fix-stack-noinline 2010-06-29 14:41:23 -07:00
Brian Behlendorf f568df2d32 Merge branch 'fix-stack-dsl_deleg_get' into refs/top-bases/fix-branch 2010-06-29 14:41:22 -07:00
Brian Behlendorf 89cd45bf85 Merge commit 'refs/top-bases/fix-stack-dsl_deleg_get' into fix-stack-dsl_deleg_get 2010-06-29 14:41:22 -07:00