]> granicus.if.org Git - zfs/log
zfs
14 years agoAdd extra guard space if needed
Ned Bass [Thu, 22 Jul 2010 01:53:14 +0000 (18:53 -0700)]
Add extra guard space if needed

Some buggy NPTL threading implementations include the guard area within
the stack size allocations.  In this case we need to allocate an extra
page to account for the guard area since we only have two pages of usable
stack on Linux.  Added an autoconf test that detects such implementations
by running a test program designed to segfault if the bug is present.
Set a flag NPTL_GUARD_WITHIN_STACK that is tested to decide if extra
stack space must be allocated for the guard area.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
14 years agoFixed typo that set thread STACK_SIZE to 24k instead of 8k
Ned Bass [Wed, 21 Jul 2010 16:58:54 +0000 (09:58 -0700)]
Fixed typo that set thread STACK_SIZE to 24k instead of 8k

__linux__ was mispelled as _linux_ so #ifdef was always
selecting the Solaris STACK_SIZE value.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
14 years agoMerge commit 'refs/top-bases/fix-pthreads' into fix-pthreads
Brian Behlendorf [Tue, 29 Jun 2010 21:41:34 +0000 (14:41 -0700)]
Merge commit 'refs/top-bases/fix-pthreads' into fix-pthreads

14 years agoAdd basic README
Brian Behlendorf [Tue, 29 Jun 2010 21:35:21 +0000 (14:35 -0700)]
Add basic README

A simple README with a short summary of the project and a link
directing people to the online documentation.

14 years agoAdditional pthread related fixes for ztest
Brian Behlendorf [Tue, 29 Jun 2010 06:45:08 +0000 (23:45 -0700)]
Additional pthread related fixes for ztest

There are 3 fixes in thie commit.  First, update ztest_run() to store
the thread id and not the address of the kthread_t.  This will be freed
on thread exit and is not safe to use.  This is pretty close to how
things were done in the original ztest code before I got there.

Second, for extra paranoia update thread_exit() to return a special
TS_MAGIC value via pthread_exit().  This value is then verified in
pthread_join() to ensure the thread exited cleanly.  This can be
done cleanly because the kthread doesn't provide a return code
mechanism we need to worry about.

Third, replace the ztest deadman thread with a signal handler.  We
cannot use the previous approach because the correct behavior for
pthreads is to wait for all threads to exit before terminating the
process.  Since the deadman thread won't call exit by design we
end up hanging in kernel_exit().  To avoid this we just setup a
SIGALRM signal handle and register a deadman alarm.  IMHO this
is simpler and cleaner anyway.

14 years agoAllow joinable threads
Brian Behlendorf [Sun, 27 Jun 2010 22:06:49 +0000 (15:06 -0700)]
Allow joinable threads

There was previous discussion of a race with joinable threads but to
be honest I can neither exactly remember the race, or recrease the
issue.  I believe it may have had to do with pthread_create() returning
without having set kt->tid since this was done in the created thread.
If that was the race then I've 'fixed' it by ensuring the thread id
is set in the thread AND as the first pthread_create() argument.  Why
this wasn't done originally I'm not sure, with luck Ricardo remembers.

Additionally, explicitly set a PAGESIZE guard frame at the end of the
stack to aid in detecting stack overflow.  And add some conditional
logic to set STACK_SIZE correctly for Solaris.

14 years agoAdd fix-pthreads topic branch
Brian Behlendorf [Mon, 14 Jun 2010 23:20:44 +0000 (16:20 -0700)]
Add fix-pthreads topic branch

This is a portability change which removes the dependence of the Solaris
thread library.  All locations where Solaris thread API was used before
have been replaced with equivilant Solaris kernel style thread calls.
In user space the kernel style threading API is implemented in term of
the portable pthreads library.  This includes all threads, mutexs,
condition variables, reader/writer locks, and taskqs.

14 years agoUpdate core ZFS code from build 121 to build 141.
Brian Behlendorf [Fri, 28 May 2010 20:45:14 +0000 (13:45 -0700)]
Update core ZFS code from build 121 to build 141.

14 years agoAdd AUTHORS to master branch
Brian Behlendorf [Tue, 18 May 2010 21:55:01 +0000 (14:55 -0700)]
Add AUTHORS to master branch

14 years agoUpdate COPYRIGHT to reference zpios CDDL exceptions.
Brian Behlendorf [Tue, 18 May 2010 21:25:28 +0000 (14:25 -0700)]
Update COPYRIGHT to reference zpios CDDL exceptions.

14 years agoUpdate COPYRIGHT to include release id LLNL-CODE-403049.
Brian Behlendorf [Tue, 18 May 2010 18:06:56 +0000 (11:06 -0700)]
Update COPYRIGHT to include release id LLNL-CODE-403049.

14 years agoUpdate COPYRIGHT and DISCLAIMER.
Brian Behlendorf [Tue, 18 May 2010 17:32:23 +0000 (10:32 -0700)]
Update COPYRIGHT and DISCLAIMER.

Update the COPYRIGHT and DISCLAIMER in an attempt to be clear about
the copyright and licensing issues.

14 years agoUpdate nvpair's to include nv_alloc_fixed support
Brian Behlendorf [Thu, 29 Apr 2010 18:59:41 +0000 (11:59 -0700)]
Update nvpair's to include nv_alloc_fixed support

14 years agoAdd Solaris FMA style support
Brian Behlendorf [Thu, 29 Apr 2010 17:37:15 +0000 (10:37 -0700)]
Add Solaris FMA style support

14 years agoRename update-zfs.sh -> zfs-update.sh for consistency
Brian Behlendorf [Thu, 11 Mar 2010 17:53:59 +0000 (09:53 -0800)]
Rename update-zfs.sh -> zfs-update.sh for consistency

14 years agoIgnore unsigned module build products
Brian Behlendorf [Tue, 9 Mar 2010 22:14:09 +0000 (14:14 -0800)]
Ignore unsigned module build products

Along with the addition of signed kernel modules in newer kernel
we have a few new build products we need to ignore.   LKLM has the
whole thread for those interested: http://lkml.org/lkml/2007/2/14/164

15 years agoAdd .gitignore files to exclude build products
Brian Behlendorf [Fri, 8 Jan 2010 19:35:17 +0000 (11:35 -0800)]
Add .gitignore files to exclude build products

15 years agoPull in latest man pages as part of update-zfs.sh
Brian Behlendorf [Sat, 12 Dec 2009 00:15:33 +0000 (16:15 -0800)]
Pull in latest man pages as part of update-zfs.sh

The script has been updated to download the latest documentations
packages for Solaris and extract the needed ZFS man pages.  These
will still need a little markup to handle changes between the
Solaris and Linux versions of ZFS.  Howver, they should be pretty
minor I've tried hard to keep the interface the same.

In additional to the script update the zdb, zfs, and zpool man
pages have been added to the repo.

15 years agoRemove zvol.c when updating in update-zfs.sh Linux version available.
Brian Behlendorf [Mon, 16 Nov 2009 00:20:01 +0000 (16:20 -0800)]
Remove zvol.c when updating in update-zfs.sh Linux version available.

15 years agoScript update-zfs.sh updated to include libefi library
Brian Behlendorf [Fri, 9 Oct 2009 22:37:29 +0000 (15:37 -0700)]
Script update-zfs.sh updated to include libefi library

15 years agoRebase master to b121
Brian Behlendorf [Tue, 18 Aug 2009 18:43:27 +0000 (11:43 -0700)]
Rebase master to b121

15 years agoRebase master to b117
Brian Behlendorf [Thu, 2 Jul 2009 22:44:48 +0000 (15:44 -0700)]
Rebase master to b117

15 years agoRebase master to b108
Brian Behlendorf [Wed, 18 Feb 2009 20:51:31 +0000 (12:51 -0800)]
Rebase master to b108

15 years agoRefresh type in topgit git://* reference
Brian Behlendorf [Tue, 27 Jan 2009 05:58:32 +0000 (21:58 -0800)]
Refresh type in topgit git://* reference

15 years agoAdd GIT to master
Brian Behlendorf [Tue, 20 Jan 2009 23:43:44 +0000 (15:43 -0800)]
Add GIT to master

15 years agoRebase master to b105
Brian Behlendorf [Thu, 15 Jan 2009 21:59:39 +0000 (13:59 -0800)]
Rebase master to b105

16 years agoAdd unicode library
Brian Behlendorf [Mon, 5 Jan 2009 20:03:23 +0000 (12:03 -0800)]
Add unicode library

16 years agoRemove zdump, it's an unrelateds command which I added simply due to the z* command...
Brian Behlendorf [Mon, 5 Jan 2009 19:10:13 +0000 (11:10 -0800)]
Remove zdump, it's an unrelateds command which I added simply due to the z* command convention

16 years agoRemove zcommon reference merged in to zpool
Brian Behlendorf [Fri, 12 Dec 2008 21:41:20 +0000 (13:41 -0800)]
Remove zcommon reference merged in to zpool

16 years agoMoving lib/libspl to linux-libspl branch
Brian Behlendorf [Thu, 11 Dec 2008 23:38:59 +0000 (15:38 -0800)]
Moving lib/libspl to linux-libspl branch

16 years agoScript updates
Brian Behlendorf [Thu, 11 Dec 2008 22:21:14 +0000 (14:21 -0800)]
Script updates

16 years agoMove library files to lib
Brian Behlendorf [Thu, 11 Dec 2008 22:16:55 +0000 (14:16 -0800)]
Move library files to lib

16 years agoFix libspl move to the wrong place
Brian Behlendorf [Thu, 11 Dec 2008 19:22:02 +0000 (11:22 -0800)]
Fix libspl move to the wrong place

16 years agoFix typo
Brian Behlendorf [Thu, 11 Dec 2008 19:16:38 +0000 (11:16 -0800)]
Fix typo

16 years agoAdd a few missing files
Brian Behlendorf [Thu, 11 Dec 2008 19:14:49 +0000 (11:14 -0800)]
Add a few missing files

16 years agoMove the world out of /zfs/ and seperate out module build tree
Brian Behlendorf [Thu, 11 Dec 2008 19:08:09 +0000 (11:08 -0800)]
Move the world out of /zfs/ and seperate out module build tree

16 years agoRemove libumem, we will try and remove this dependency entirely. If we can't then...
Brian Behlendorf [Wed, 10 Dec 2008 20:43:20 +0000 (12:43 -0800)]
Remove libumem, we will try and remove this dependency entirely.  If we can't then the best move will simply be to use the official library, or build it as a convenience library

16 years agoMove vmem* to libumem
Brian Behlendorf [Tue, 9 Dec 2008 22:14:00 +0000 (14:14 -0800)]
Move vmem* to libumem

16 years agoTemporarily move taskq+util to libzpool until that directory is broken in to lib...
Brian Behlendorf [Tue, 9 Dec 2008 21:32:01 +0000 (13:32 -0800)]
Temporarily move taskq+util to libzpool until that directory is broken in to lib+module

16 years agoMinor tweak to update script
Brian Behlendorf [Tue, 9 Dec 2008 00:38:46 +0000 (16:38 -0800)]
Minor tweak to update script

16 years agoAttempt move of kernel.c with topgit
Brian Behlendorf [Tue, 9 Dec 2008 00:20:25 +0000 (16:20 -0800)]
Attempt move of kernel.c with topgit

16 years agoAdd userspace zfs_context file
Brian Behlendorf [Wed, 3 Dec 2008 23:43:56 +0000 (15:43 -0800)]
Add userspace zfs_context file

16 years agoRebase to OpenSolaris b103, in the process we are removing any code which did not...
Brian Behlendorf [Wed, 3 Dec 2008 20:09:06 +0000 (12:09 -0800)]
Rebase to OpenSolaris b103, in the process we are removing any code which did not originate from the OpenSolaris source.  These changes will be reintroduced in topic branches for easier tracking

16 years agoRemove stray stub kernel files which should be brought in my linux-kernel-module...
Brian Behlendorf [Tue, 2 Dec 2008 16:47:21 +0000 (08:47 -0800)]
Remove stray stub kernel files which should be brought in my linux-kernel-module patch

16 years agoFinish removing all non-upstream bits from master
Brian Behlendorf [Tue, 2 Dec 2008 00:15:29 +0000 (16:15 -0800)]
Finish removing all non-upstream bits from master

16 years agoRemoved build system from master branch, will relocate to linux-zfs-branch
Brian Behlendorf [Mon, 1 Dec 2008 23:41:33 +0000 (15:41 -0800)]
Removed build system from master branch, will relocate to linux-zfs-branch

16 years agoRemoved build system from master branch, will relocate to linux-zfs-branch
Brian Behlendorf [Mon, 1 Dec 2008 23:38:41 +0000 (15:38 -0800)]
Removed build system from master branch, will relocate to linux-zfs-branch

16 years agoRelocate COPYING+COPYRIGHT, remove README cruft
Brian Behlendorf [Mon, 1 Dec 2008 23:34:53 +0000 (15:34 -0800)]
Relocate COPYING+COPYRIGHT, remove README cruft

16 years agoAdd CDDL license file
Brian Behlendorf [Mon, 1 Dec 2008 22:49:34 +0000 (14:49 -0800)]
Add CDDL license file

16 years agoUpdate zpios for trivial workload
Brian Behlendorf [Wed, 26 Nov 2008 23:48:14 +0000 (15:48 -0800)]
Update zpios for trivial workload

16 years agoWorking version of M4 macro config
Brian Behlendorf [Wed, 26 Nov 2008 23:32:39 +0000 (15:32 -0800)]
Working version of M4 macro config

16 years agoMake everything a M4 macro, it's just cleaner that way
Brian Behlendorf [Wed, 26 Nov 2008 22:29:45 +0000 (14:29 -0800)]
Make everything a M4 macro, it's just cleaner that way

16 years agoAdditional buidl system cleanup. Starting to move all
Brian Behlendorf [Wed, 26 Nov 2008 22:06:23 +0000 (14:06 -0800)]
Additional buidl system cleanup.  Starting to move all
of the kernel specific build info in to config/kernel,
likewise and user specific build flags should go in
config/user.  This seems like a reasonable way to go.

16 years agoPrefix META_ALIAS with ZFS_
Brian Behlendorf [Wed, 26 Nov 2008 21:28:44 +0000 (13:28 -0800)]
Prefix META_ALIAS with ZFS_

16 years agoAdd SPL prefix to META_* #defines
Brian Behlendorf [Wed, 26 Nov 2008 21:11:33 +0000 (13:11 -0800)]
Add SPL prefix to META_* #defines

16 years agoFirst step of META build system cleanup
Brian Behlendorf [Wed, 26 Nov 2008 20:53:24 +0000 (12:53 -0800)]
First step of META build system cleanup

16 years agoMinor autoconf build fixes:
Brian Behlendorf [Mon, 24 Nov 2008 19:56:48 +0000 (11:56 -0800)]
Minor autoconf build fixes:

Fixed BUILDDIR in config/*
Added missing " to ZFS_AC_SCRIPT_CONFIG macro
Removed autoconf/Makefile

16 years agoUse config directory, enable maintainer mode
Brian Behlendorf [Mon, 24 Nov 2008 19:29:11 +0000 (11:29 -0800)]
Use config directory, enable maintainer mode

16 years agoRestructure autoconf around ./config directory
Brian Behlendorf [Mon, 24 Nov 2008 19:16:19 +0000 (11:16 -0800)]
Restructure autoconf around ./config directory

16 years agoUpdate GIT docs, removing remaining patches. They will soon me applies as topic...
Brian Behlendorf [Fri, 21 Nov 2008 18:55:10 +0000 (10:55 -0800)]
Update GIT docs, removing remaining patches.  They will soon me applies as topic branches

16 years agoUpdate GIT documentation to describe the new DAC setup
Brian Behlendorf [Fri, 21 Nov 2008 00:54:29 +0000 (16:54 -0800)]
Update GIT documentation to describe the new DAC setup

16 years agoInitial Linux ZFS GIT Repo
Brian Behlendorf [Thu, 20 Nov 2008 20:01:55 +0000 (12:01 -0800)]
Initial Linux ZFS GIT Repo