Commit Graph

257 Commits

Author SHA1 Message Date
Brian Behlendorf
7b66ddcd84 Refresh autogen.sh products 2010-08-09 16:59:53 -07:00
Brian Behlendorf
9d9b599b33 Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch 2010-08-06 11:17:49 -07:00
Brian Behlendorf
615e289a57 Revert "Remove declarations in VERIFY3_IMPL to save stack"
This reverts commit 421d95b3ea.

Ricardo correctly pointed out that there is more going on here than
typecasting.  By removing the locals we are actually causing LEFT and
RIGHT to be evaluated twice which can potentially lead to some
strange side effects as:

1) VERIFY3*() causing a panic but in the panic message the values
look correct such that the assertion shouldn't fail, or:

2) if LEFT or RIGHT are expressions with side-effects (e.g. a call
to a function which changes some state), then when we panic and
examine the crash dump, it may lead to an unexpected state because
we are not expecting certain things to change during the panic,
after the expressions inside VERIFY3*(...) have been evaluated.

3) Also, it may lead to double-panics or deadlocks during panics,
like for example, if the expressions inside VERIFY3*(...) only expect
to be called once (e.g. because they acquire a mutex).
2010-08-06 11:08:24 -07:00
Brian Behlendorf
0fd353341a Revert "remove compiler warning on 32-bit systems"
This reverts commit 80819cc01e.
2010-08-06 11:08:11 -07:00
Brian Behlendorf
04497a6064 Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch 2010-08-04 09:45:03 -07:00
Ned Bass
80819cc01e remove compiler warning on 32-bit systems
commit 421d95b3ea introduced a compiler
warning on 32-bit systems about casting a pointer to an integer of a
different size.  This commit removes the warning by casting the arguments
to snprintf in the same manner as the original VERIFY3_IMPL macro.
2010-08-04 09:38:44 -07:00
Brian Behlendorf
f5a6a98e5c Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch 2010-08-02 13:55:28 -07:00
Ned Bass
421d95b3ea Remove declarations in VERIFY3_IMPL to save stack
This has a minor impact on stack usage of individual functions, but the
VERIFY macros are used so frequently that their overhead may add up.
This macro declared two new local variables to cast its argument types.
Doing the typecast inline eliminates the need for these variables.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
2010-08-02 13:34:48 -07:00
Brian Behlendorf
d825659880 Refresh autogen products 2010-07-28 09:49:38 -07:00
Brian Behlendorf
641f300534 Refresh autogen products 2010-07-23 11:50:26 -07:00
Brian Behlendorf
3992d0811c Refresh autogen products 2010-07-23 10:48:54 -07:00
Brian Behlendorf
f202496925 Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch 2010-07-23 10:46:27 -07:00
Brian Behlendorf
1f3fa4df05 Add -stack-check option to libspl
See commit f16dec7e67fe86f3c3556a67865ee715a2964d70 for full
details of this change.  But in summary -fstack-check is being
restricted in usage only to locations which must already have
small stack frames.
2010-07-23 10:38:44 -07:00
Brian Behlendorf
0d6f8e56b2 Refresh autogen products 2010-07-23 09:49:24 -07:00
Brian Behlendorf
6d650b9587 Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch 2010-07-22 16:43:24 -07:00
Brian Behlendorf
f39d7d2ca2 Remove libspl support for mlslabels
The ZFS update to onnv_141 brought with it support for a
security label attribute called mlslabel.  This feature
depends on zones to work correctly and while I originally
added minimal support for this in libspl that was a mistake.

Supporting this under Linux is not required and this is
just additional troublesome code to support.  Long term
something like this could be supported under Linux but it
will need to be clearly thought through them an implemented.
2010-07-22 16:37:29 -07:00
Brian Behlendorf
7f41f96626 Refresh autogen products 2010-07-14 10:51:41 -07:00
Brian Behlendorf
7dd357a791 Refresh autogen.sh products 2010-07-01 10:49:17 -07:00
Brian Behlendorf
c0fbc0ba27 Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch 2010-07-01 10:44:50 -07:00
Brian Behlendorf
bb4baf0912 Add missing headers to 'make dist' target for RPM build
The following files were being left out the tarball which
is used by the 'make rpm' target.  This results in a build
failure when building packages which use the tarball.

        lib/libspl/include/sys/tsol/*.h
        lib/libspl/include/util/*.h
2010-07-01 10:37:27 -07:00
Brian Behlendorf
e5a5693222 Refresh autogen.sh products 2010-06-29 17:05:00 -07:00
Brian Behlendorf
93664227c7 Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch 2010-06-28 10:38:43 -07:00
Brian Behlendorf
94f23a6856 Ensure NULL is not returned incorrectly after the first call.
I'm surprised this was not caught long ago, but previous the
code actually never did call the function twice so it was
missed.  Anyway, this fixes it.
2010-06-28 10:27:18 -07:00
Brian Behlendorf
321a2639cd Refresh autogen products 2010-06-16 10:09:02 -07:00
Brian Behlendorf
71f9f188cf Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch 2010-06-14 15:54:00 -07:00
Brian Behlendorf
91cc4e35bb Updates to linux-libspl
Added print_timestamp() compatibility function, this will be needed
long term but it's a simply enough addition.

Added Solaris style label functions.  This was done simply to aid in
the initial update to onnv_141.  I'm hopeful that after more careful
inspection all of this can be removed and we can integrate with a
more Linux friendly Solution without breaking any compatibility.

Added several missing headers which are required by the updated
version of ZFS.  As usual I just add empty headers if needed because
it's easier than tracking the change against the core ZFS code.

Added SEC, MILLISEC, MICROSEC defines if unavailable.

Added missing xuio structure and typedefs.  I'm hopeful these can
be removed as well once we crack the zero-copy nut under Linux.
2010-06-14 15:47:54 -07:00
Brian Behlendorf
343bcf823f Refresh autogen products with automake 1.11.1 2010-05-21 16:04:53 -07:00
Brian Behlendorf
a0d5b22e98 Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch 2010-05-18 13:42:36 -07:00
Brian Behlendorf
c98946e318 Add missing CDDL headers. 2010-05-18 13:38:06 -07:00
Brian Behlendorf
b1be987202 Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch 2010-05-18 12:53:06 -07:00
Brian Behlendorf
2a80af91ed Remove nvpair_alloc_system.c change in libspl topic branch.
A change to the nvpair implementation should not have been made in
the libspl-topic branch.  This patch fixes that accident by reverting
the change and providing the missing libspl header to allow the
proper building of nvpair_alloc_system.c without the need to modify it.
2010-05-18 12:47:08 -07:00
Brian Behlendorf
6e06d537fe Refresh autogen products 2010-05-14 13:36:31 -07:00
Brian Behlendorf
e55a65895a Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch 2010-05-14 10:44:14 -07:00
Brian Behlendorf
9b8aa5f57e Extend libspl as required for linux FMA integration.
These changes lay some of the ground work for supporting something
similar to FMA event under Solaris.  In particular these changes
add or modify the following areas.

First off an implementation of the gethrestime() function is added
to libspl.  Secondly, the missing type processorid_t has been added.
And finally the lib/libspl/include/sys/fm/{protocol.h|util.h} stub
headers have been removed in favor of updating the full versions
in module/zfs/include/sys/fm/{protocol.h|util.h} to work cleanly
in both user and kernel space.
2010-05-14 10:33:00 -07:00
Brian Behlendorf
824c6c437b Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch 2010-04-29 12:34:06 -07:00
Brian Behlendorf
c14cca5c07 Add fm_init/fm_fini stubs for user space FMA update. 2010-04-29 12:25:18 -07:00
Brian Behlendorf
34edbcd956 Refresh autogen products 2010-03-26 15:57:19 -07:00
Brian Behlendorf
a235e4b8b9 Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch 2010-03-23 14:58:29 -07:00
Brian Behlendorf
ee2a998f37 Move zfs_config.h include to command line -include
Remove the few places in the code where zfs_config.h is included.
It is now added to the gcc compile line to ensure the config results
2010-03-23 14:54:00 -07:00
Brian Behlendorf
ddb2e7a5c5 Refresh autogen products 2010-03-22 17:01:13 -07:00
Brian Behlendorf
03f51d86b2 Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch 2010-03-10 12:09:35 -08:00
Ricardo M. Correia
c557557e4a Add umem_alloc_aligned() and honor cache_align field for umem caches
Under linux we open block devices with O_DIRECT which means we must
provide aligned memory buffers.  This patch adds the needed umem
interfaces or in the case of caches simply honors alignment provided
at cache creation time.
2010-03-10 11:51:43 -08:00
Brian Behlendorf
02d15b4e4f Refresh autogen products 2010-03-08 10:57:16 -08:00
Brian Behlendorf
9b473082fa Refresh autogen products 2009-12-23 14:53:51 -08:00
Brian Behlendorf
840aa5356d Refresh autogen products 2009-11-20 12:14:59 -08:00
Brian Behlendorf
81c56431ae Refresh autogen products 2009-11-16 10:42:39 -08:00
Brian Behlendorf
75b67634af Refresh autogen products. 2009-11-12 12:57:46 -08:00
Brian Behlendorf
3275bca123 Refresh autogen products 2009-11-02 14:19:27 -08:00
Brian Behlendorf
5981947b63 Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch 2009-11-02 14:16:50 -08:00
Brian Behlendorf
238511d277 Add missing sys/dktp/*.h headers to package. 2009-11-02 14:08:08 -08:00