]> granicus.if.org Git - zfs/log
zfs
16 years agoFixed that.
behlendo [Fri, 28 Mar 2008 18:22:29 +0000 (18:22 +0000)]
Fixed that.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@58 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoCorrectly functioning 64-bit atomic shim layer. It's not
behlendo [Fri, 28 Mar 2008 18:21:09 +0000 (18:21 +0000)]
Correctly functioning 64-bit atomic shim layer.  It's not
what I would call effecient but it does have the advantage
of being correct which is all I need right now.  I added
a regression test as well.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@57 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoRemove minor lingering CDDL tait of copied headers. Required
behlendo [Thu, 27 Mar 2008 23:40:09 +0000 (23:40 +0000)]
Remove minor lingering CDDL tait of copied headers.  Required
headers rewritten to include minimally what we need.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@56 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years ago- Thinko fix to the SPL module interface
behlendo [Thu, 27 Mar 2008 22:06:59 +0000 (22:06 +0000)]
- Thinko fix to the SPL module interface
- Enhanse the VERIFY() support to output the values which
  failed to compare as expected before crashing.  This make
  debugging much much much easier.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@55 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoRelocated to zfs repo
behlendo [Thu, 27 Mar 2008 17:58:10 +0000 (17:58 +0000)]
Relocated to zfs repo

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@54 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoTwo fixes to the module interface. Could be worse!
behlendo [Fri, 21 Mar 2008 19:16:25 +0000 (19:16 +0000)]
Two fixes to the module interface.  Could be worse!

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@53 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoOK, a first reasonable attempt at a solaris module/chdev shim layer.
behlendo [Thu, 20 Mar 2008 23:30:15 +0000 (23:30 +0000)]
OK, a first reasonable attempt at a solaris module/chdev shim layer.
This should handle the absolute minimum I need for ZFS.  It will
register the chdev with the right callbacks.  Then the generic
registered linux callback will find the right registered solaris
callback for the function and munge the args just right before
passing it on.  Should work, but untested (just compiled), so I
expect bugs.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@52 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoOK, some pretty substantial rework here. I've merged the spl-file
behlendo [Tue, 18 Mar 2008 23:20:30 +0000 (23:20 +0000)]
OK, some pretty substantial rework here.  I've merged the spl-file
stuff which only inclused the getf()/releasef() in to the vnode area
where it will only really be used.  These calls allow a user to
grab an open file struct given only the known open fd for a particular
user context.  ZFS makes use of these, but they're a bit tricky to
test from within the kernel since you already need the file open
and know the fd.  So we basically spook the system calls to setup
the environment we need for the splat test case and verify given
just the know fd we can get the file, create the needed vnode, and
then use the vnode interface as usual to read and write from it.

While I was hacking away I also noticed a NULL termination issue
in the second kobj test case so I fixed that too.  In fact, I fixed
a few other things as well but all for the best!

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@51 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoInitial pass at a file API getf/releasef hooks
behlendo [Tue, 18 Mar 2008 04:56:43 +0000 (04:56 +0000)]
Initial pass at a file API getf/releasef hooks

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@50 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoMinimal signal handling interface.
behlendo [Mon, 17 Mar 2008 18:29:57 +0000 (18:29 +0000)]
Minimal signal handling interface.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@49 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoMissing headers, more minor fixes
behlendo [Sat, 15 Mar 2008 00:05:38 +0000 (00:05 +0000)]
Missing headers, more minor fixes

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@48 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoFix kmem memory accounting
behlendo [Fri, 14 Mar 2008 20:56:26 +0000 (20:56 +0000)]
Fix kmem memory accounting

Adjust kmem slab interface to make a copy of the slab name before
passing it on to the linux slab (we free it latter too)

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@47 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoFix KMEM_DEBUG support (enable by default)
behlendo [Fri, 14 Mar 2008 19:04:41 +0000 (19:04 +0000)]
Fix KMEM_DEBUG support (enable by default)
Add vmem_alloc/vmem_free support (and test case)
Add missing time functions

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@46 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoAdd missing headers
behlendo [Fri, 14 Mar 2008 00:04:01 +0000 (00:04 +0000)]
Add missing headers
Rework vnodes to be based on the slab cache, just like on Solaris.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@45 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoAdd missing headers
behlendo [Thu, 13 Mar 2008 22:52:23 +0000 (22:52 +0000)]
Add missing headers

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@44 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoAdd two more missing headers
behlendo [Thu, 13 Mar 2008 20:41:29 +0000 (20:41 +0000)]
Add two more missing headers

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@43 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoDrop unicode support, provided in ZFS tree libport
behlendo [Thu, 13 Mar 2008 19:49:09 +0000 (19:49 +0000)]
Drop unicode support, provided in ZFS tree libport
Update uio support

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@42 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years ago- Add some more missing headers
behlendo [Wed, 12 Mar 2008 23:48:28 +0000 (23:48 +0000)]
- Add some more missing headers
- Map the LE/BE_* byteorder macros to the linux versions
- More minor vnodes fixes

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@41 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoAdd copyin/copyout mapping
behlendo [Wed, 12 Mar 2008 21:33:28 +0000 (21:33 +0000)]
Add copyin/copyout mapping
Fix some vnode types

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@40 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years ago- Implemented vnode interfaces and 6 test cases to the test suite.
behlendo [Wed, 12 Mar 2008 20:52:46 +0000 (20:52 +0000)]
- Implemented vnode interfaces and 6 test cases to the test suite.
- Re-implmented kobj support based on the vnode support.
- Add TESTS option to check.sh, and removed delay after module load.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@39 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoApply fix from bug239 for rwlock deadlock.
behlendo [Tue, 11 Mar 2008 20:54:40 +0000 (20:54 +0000)]
Apply fix from bug239 for rwlock deadlock.

Update check.sh script to take V=1 env var so you can run it verbosely as
follows if your chasing something: sudo make check V=1

Add new kobj api and needed regression tests to allow reading of files from
within the kernel.  Normally thats not something I support but the spa layer
needs the support for its config file.

Add some more missing stub headers

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@38 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoTwo more GPL only symbols moved to helper functions in the spl module.
behlendo [Tue, 11 Mar 2008 02:08:57 +0000 (02:08 +0000)]
Two more GPL only symbols moved to helper functions in the spl module.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@37 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoRemap gethrestime() with #define to new symbol and export that new
behlendo [Mon, 10 Mar 2008 21:38:39 +0000 (21:38 +0000)]
Remap gethrestime() with #define to new symbol and export that new
symbol to avoid direct use of GPL only symbol.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@36 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoAdd some typedefs to make it clearer when we passing a function,
behlendo [Mon, 10 Mar 2008 19:25:20 +0000 (19:25 +0000)]
Add some typedefs to make it clearer when we passing a function,
Add fm_panic define
Add another bad atomic hack (need to do this right)

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@35 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoFix systemic naming mistake
behlendo [Mon, 10 Mar 2008 19:04:14 +0000 (19:04 +0000)]
Fix systemic naming mistake

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@34 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoAdd missing headers
behlendo [Mon, 10 Mar 2008 17:05:34 +0000 (17:05 +0000)]
Add missing headers

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@33 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoJust filling in more of the env.
behlendo [Sat, 8 Mar 2008 00:58:32 +0000 (00:58 +0000)]
Just filling in more of the env.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@32 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoAdd somre debugging support
behlendo [Sat, 8 Mar 2008 00:18:21 +0000 (00:18 +0000)]
Add somre debugging support

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@31 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoAdd the initial vestigates of vnode support
behlendo [Fri, 7 Mar 2008 23:07:02 +0000 (23:07 +0000)]
Add the initial vestigates of vnode support

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@30 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoAdd missing cred.h functions
behlendo [Fri, 7 Mar 2008 20:48:44 +0000 (20:48 +0000)]
Add missing cred.h functions
Resolve compiler warning with kmem_free (unused len)
Add stub for byteorder.h
Add zlib shim for compress2 and uncompress functions

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@29 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoMinor atomic cleanup, this needs to be done right.
behlendo [Fri, 7 Mar 2008 00:28:32 +0000 (00:28 +0000)]
Minor atomic cleanup, this needs to be done right.
Fixed a bug in the timer code
Added missing macros

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@28 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoAdd some missing rw_lock symbols
behlendo [Thu, 6 Mar 2008 23:42:37 +0000 (23:42 +0000)]
Add some missing rw_lock symbols

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@27 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoAdd highbit func,
behlendo [Thu, 6 Mar 2008 23:12:55 +0000 (23:12 +0000)]
Add highbit func,
Add sloopy atomic declaration which will need to be fixed (eventually)
Fill out more of the Solaris VM hooks
Adjust the create_thread function

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@26 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoCheckpoint for the night,
behlendo [Wed, 5 Mar 2008 00:58:54 +0000 (00:58 +0000)]
Checkpoint for the night,
added a few more stub headers,
fleshed out a few stub headers,
added a FIXME file,
added various compatibility macros

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@25 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoRemove spl.h, just include the headers you need.
behlendo [Tue, 4 Mar 2008 20:06:29 +0000 (20:06 +0000)]
Remove spl.h, just include the headers you need.
Add a few more stubs.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@24 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoFix type
behlendo [Tue, 4 Mar 2008 19:38:27 +0000 (19:38 +0000)]
Fix type

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@23 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoMore stub headers,
behlendo [Tue, 4 Mar 2008 18:22:31 +0000 (18:22 +0000)]
More stub headers,
moved generic to sysmacros,
added some more macros for kernel compatibility

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@22 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoStub out some missing headers which are expected. I'll fill
behlendo [Sat, 1 Mar 2008 18:30:12 +0000 (18:30 +0000)]
Stub out some missing headers which are expected.  I'll fill
in what the contents need to be as I encounter the warnings
about missing prototypes, symbols, and such.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@21 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoRemaining lose ends
behlendo [Sat, 1 Mar 2008 00:51:41 +0000 (00:51 +0000)]
Remaining lose ends

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@20 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoAlmost dropped this!
behlendo [Sat, 1 Mar 2008 00:47:23 +0000 (00:47 +0000)]
Almost dropped this!

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@19 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoReorganize /include/ to add a /sys/, this way we don't need to
behlendo [Sat, 1 Mar 2008 00:45:59 +0000 (00:45 +0000)]
Reorganize /include/ to add a /sys/, this way we don't need to
muck with #includes in existing Solaris style source to get it
to find the right stuff.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@18 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoMinor nit, SOLARIS should be SPL
behlendo [Thu, 28 Feb 2008 00:52:31 +0000 (00:52 +0000)]
Minor nit, SOLARIS should be SPL

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@17 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoOK, I think this is the last of major cleanup and restructuring.
behlendo [Thu, 28 Feb 2008 00:48:31 +0000 (00:48 +0000)]
OK, I think this is the last of major cleanup and restructuring.
We've dropped all the linux- prefixes on the file in favor of spl-
which makes more sense.  And we've cleaned up some of the includes
so everybody should be including their own dependencies properly.
All a module which wants to use the spl support needs to do in
include spl.h and ensure it has access to Module.symvers.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@16 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoAdd top level make check target which runs the validation
behlendo [Thu, 28 Feb 2008 00:16:24 +0000 (00:16 +0000)]
Add top level make check target which runs the validation
suite.  Careful with this right now one of the tests still
causes a lockup on the node.  This happened before the move
from the ZFS repo so its not a new issue.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@15 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoMore cleanup.
behlendo [Wed, 27 Feb 2008 23:42:31 +0000 (23:42 +0000)]
More cleanup.
- Removed all references to kzt and replaced with splat
- Moved portions of include files which do not need to be
  available to all source files in to local.h files in
  proper source subdirs.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@14 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoOK, it builds... and the modules load... now for some more
behlendo [Wed, 27 Feb 2008 21:56:51 +0000 (21:56 +0000)]
OK, it builds... and the modules load...  now for some more
cleanup to remove the remaining vestages of the time it lives
with the ZFS code.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@13 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoQuiet libtool
behlendo [Wed, 27 Feb 2008 20:55:24 +0000 (20:55 +0000)]
Quiet libtool

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@12 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoOK, everything builds now. My initial intent was to place all of
behlendo [Wed, 27 Feb 2008 20:52:44 +0000 (20:52 +0000)]
OK, everything builds now.  My initial intent was to place all of
the directories at the top level but that proved troublesome.  The
kernel buildsystem and autoconf were conflicting too much.  To
resolve the issue I moved the kernel bits in to a modules directory
which can then only use the kernel build system.  We just pass
along the likely make targets to the kernel build system.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@11 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoNew approach
behlendo [Wed, 27 Feb 2008 20:28:52 +0000 (20:28 +0000)]
New approach

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@10 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoMove dir
behlendo [Wed, 27 Feb 2008 19:36:31 +0000 (19:36 +0000)]
Move dir

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@9 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoMove dir
behlendo [Wed, 27 Feb 2008 19:36:20 +0000 (19:36 +0000)]
Move dir

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@8 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoMove dir
behlendo [Wed, 27 Feb 2008 19:36:07 +0000 (19:36 +0000)]
Move dir

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@7 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoMove dir
behlendo [Wed, 27 Feb 2008 19:35:54 +0000 (19:35 +0000)]
Move dir

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@6 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoLots of build fixes. This is turning out to be a very good
behlendo [Wed, 27 Feb 2008 19:09:51 +0000 (19:09 +0000)]
Lots of build fixes.  This is turning out to be a very good
idea since it forcefully codifing the ABI.  Since the shim
layer is no longer linked at build time in to the test suite
we can;'t cut any corners and get away with it.

Everything is working now with the exception of sorting
setting Module.symvers properly.  This may take a little
Makefile reorg.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@5 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoMore build fixes, I have the kernel module almost building and its
behlendo [Wed, 27 Feb 2008 00:59:48 +0000 (00:59 +0000)]
More build fixes, I have the kernel module almost building and its
feeling a lot more sane, cleaner, and linuxy.  I may finish this tonight.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@4 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoUser space build fixes:
behlendo [Tue, 26 Feb 2008 23:20:41 +0000 (23:20 +0000)]
User space build fixes:
- Add list handling compatibility library
- Drop uu_* list handling in favor of local list implementation
- libtoolize
- generic makefile cleanup

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@3 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoWhoops, I knew I'd miss something small in the build system. Fix
behlendo [Tue, 26 Feb 2008 20:37:43 +0000 (20:37 +0000)]
Whoops, I knew I'd miss something small in the build system.  Fix
it

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@2 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c

16 years agoInitial commit. All spl source written up to this point wrapped
behlendo [Tue, 26 Feb 2008 20:36:04 +0000 (20:36 +0000)]
Initial commit.  All spl source written up to this point wrapped
in an initial reasonable autoconf style build system.  This does
not yet build but the configure system does appear to work properly
and integrate with the kernel.  Hopefully the next commit gets
us back to a buildable version we can run the test suite against.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@1 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c