Commit Graph

3340 Commits

Author SHA1 Message Date
Brian Behlendorf 6a2e2f428f Merge branch 'fix-newlines' into refs/top-bases/fix-branch 2010-05-18 10:39:00 -07:00
Brian Behlendorf ce4cb18602 Merge commit 'refs/top-bases/fix-newlines' into fix-newlines 2010-05-18 10:38:59 -07:00
Brian Behlendorf ff7b97849b Merge commit 'refs/top-bases/fix-get-configs' into fix-get-configs 2010-05-18 10:38:58 -07:00
Brian Behlendorf 8750eceacb Merge branch 'fix-get-configs' into refs/top-bases/fix-branch 2010-05-18 10:38:58 -07:00
Brian Behlendorf c514f119be Merge commit 'refs/top-bases/fix-evict-dbufs' into fix-evict-dbufs 2010-05-18 10:38:57 -07:00
Brian Behlendorf 67ee7919ea Merge branch 'fix-evict-dbufs' into refs/top-bases/fix-branch 2010-05-18 10:38:57 -07:00
Brian Behlendorf 0ca07d95e2 Merge branch 'fix-dsl_pool_t' into refs/top-bases/fix-branch 2010-05-18 10:38:56 -07:00
Brian Behlendorf b45aa2081e Merge commit 'refs/top-bases/fix-dsl_pool_t' into fix-dsl_pool_t 2010-05-18 10:38:55 -07:00
Brian Behlendorf 9c4d1367a2 Merge branch 'fix-dnode-cons' into refs/top-bases/fix-branch 2010-05-18 10:38:55 -07:00
Brian Behlendorf e4de1eac10 Merge commit 'refs/top-bases/fix-dnode-cons' into fix-dnode-cons 2010-05-18 10:38:54 -07:00
Brian Behlendorf 6bcbd721e8 Merge commit 'refs/top-bases/fix-dbuf_dirty_record_t' into fix-dbuf_dirty_record_t 2010-05-18 10:38:53 -07:00
Brian Behlendorf 2a31babc32 Merge branch 'fix-dbuf_dirty_record_t' into refs/top-bases/fix-branch 2010-05-18 10:38:53 -07:00
Brian Behlendorf 05b681529f Merge branch 'fix-clock-wrap' into refs/top-bases/fix-branch 2010-05-18 10:38:52 -07:00
Brian Behlendorf 0ee39c6bcf Merge commit 'refs/top-bases/fix-clock-wrap' into fix-clock-wrap 2010-05-18 10:38:51 -07:00
Brian Behlendorf 761a21b703 Merge commit 'refs/top-bases/gcc-branch' into gcc-branch 2010-05-18 10:38:46 -07:00
Brian Behlendorf 7f98bd6058 Merge branch 'gcc-branch' into refs/top-bases/zfs-branch 2010-05-18 10:38:46 -07:00
Brian Behlendorf 507095183c Merge branch 'gcc-fortify-source' into refs/top-bases/gcc-branch 2010-05-18 10:38:45 -07:00
Brian Behlendorf e807a794b5 Merge commit 'refs/top-bases/gcc-fortify-source' into gcc-fortify-source 2010-05-18 10:38:44 -07:00
Brian Behlendorf d9351fcfa1 Merge branch 'gcc-missing-braces' into refs/top-bases/gcc-branch 2010-05-18 10:38:42 -07:00
Brian Behlendorf fa1d5826a8 Merge commit 'refs/top-bases/gcc-missing-braces' into gcc-missing-braces 2010-05-18 10:38:41 -07:00
Brian Behlendorf d4718e3561 Merge branch 'gcc-ident-pragmas' into refs/top-bases/gcc-branch 2010-05-18 10:38:39 -07:00
Brian Behlendorf da67a21e25 Merge commit 'refs/top-bases/gcc-ident-pragmas' into gcc-ident-pragmas 2010-05-18 10:38:38 -07:00
Brian Behlendorf 4c66d1f365 Merge branch 'gcc-64bit-constants' into refs/top-bases/gcc-branch 2010-05-18 10:38:36 -07:00
Brian Behlendorf 4315638f97 Merge commit 'refs/top-bases/gcc-64bit-constants' into gcc-64bit-constants 2010-05-18 10:38:35 -07:00
Brian Behlendorf 4d47e60fd2 Merge branch 'gcc-shadow' into refs/top-bases/gcc-branch 2010-05-18 10:38:33 -07:00
Brian Behlendorf 13a3534f0f Merge commit 'refs/top-bases/gcc-shadow' into gcc-shadow 2010-05-18 10:38:32 -07:00
Brian Behlendorf 060a12639f Merge branch 'gcc-unused' into refs/top-bases/gcc-branch 2010-05-18 10:38:30 -07:00
Brian Behlendorf 7c1702bd20 Merge commit 'refs/top-bases/gcc-unused' into gcc-unused 2010-05-18 10:38:29 -07:00
Brian Behlendorf b445157739 Merge branch 'gcc-uninit' into refs/top-bases/gcc-branch 2010-05-18 10:38:27 -07:00
Brian Behlendorf 54a92ad587 Merge commit 'refs/top-bases/gcc-uninit' into gcc-uninit 2010-05-18 10:38:25 -07:00
Brian Behlendorf 36e419eef6 Merge branch 'gcc-no-parenthesis' into refs/top-bases/gcc-branch 2010-05-18 10:38:23 -07:00
Brian Behlendorf 9db753ebe1 Merge commit 'refs/top-bases/gcc-no-parenthesis' into gcc-no-parenthesis 2010-05-18 10:38:22 -07:00
Brian Behlendorf 048587908d Merge branch 'gcc-missing-case' into refs/top-bases/gcc-branch 2010-05-18 10:38:20 -07:00
Brian Behlendorf 9cf9d0120f Merge commit 'refs/top-bases/gcc-missing-case' into gcc-missing-case 2010-05-18 10:38:19 -07:00
Brian Behlendorf a192d7c98e Merge branch 'gcc-invalid-prototype' into refs/top-bases/gcc-branch 2010-05-18 10:38:17 -07:00
Brian Behlendorf 62926f6f71 Merge commit 'refs/top-bases/gcc-invalid-prototype' into gcc-invalid-prototype 2010-05-18 10:38:16 -07:00
Brian Behlendorf de5a9a8a8c Merge branch 'gcc-init-pragmas' into refs/top-bases/gcc-branch 2010-05-18 10:38:14 -07:00
Brian Behlendorf dca183a93d Merge commit 'refs/top-bases/gcc-init-pragmas' into gcc-init-pragmas 2010-05-18 10:38:13 -07:00
Brian Behlendorf 7e53b83095 Merge branch 'gcc-debug' into refs/top-bases/gcc-branch 2010-05-18 10:38:11 -07:00
Brian Behlendorf 4faf0f20b5 Merge commit 'refs/top-bases/gcc-debug' into gcc-debug 2010-05-18 10:38:09 -07:00
Brian Behlendorf 678c3e9143 Merge branch 'gcc-cast' into refs/top-bases/gcc-branch 2010-05-18 10:38:07 -07:00
Brian Behlendorf c8c7d1ce8e Merge commit 'refs/top-bases/gcc-cast' into gcc-cast 2010-05-18 10:38:06 -07:00
Brian Behlendorf 4a57dc24d7 Merge branch 'gcc-c90' into refs/top-bases/gcc-branch 2010-05-18 10:38:04 -07:00
Brian Behlendorf cc14ed0471 Merge commit 'refs/top-bases/gcc-c90' into gcc-c90 2010-05-18 10:38:03 -07:00
Brian Behlendorf 91ac110c9c Update COPYRIGHT and DISCLAIMER.
Update the COPYRIGHT and DISCLAIMER in an attempt to be clear about
the copyright and licensing issues.
2010-05-18 10:32:23 -07:00
Brian Behlendorf d404dd1dad Minor spec file cleanup for srpm case.
Ensure kpkg is defined is srpm case before using it to define
the krequires macro.  Interestingly this is not an issue for
rpm-4.7.1-4 but it is for rpm-4.4.2.3-18.
2010-05-18 10:08:29 -07:00
Brian Behlendorf 97d19a5e45 Add linux-events topic branch for zevent handling.
This topic branch leverages the Solaris style FMA call points
in ZFS to create a user space visible event notification system
under Linux.  This new system is called zevent and it unifies
all previous Solaris style ereports and sysevent notifications.

Under this Linux specific scheme when a sysevent or ereport event
occurs an nvlist describing the event is created which looks almost
exactly like a Solaris ereport.  These events are queued up in the
kernel when they occur and conditionally logged to the console.
It is then up to a user space application to consume the events
and do whatever it likes with them.

To make this possible the existing /dev/zfs ABI has been extended
with two new ioctls which behave as follows.

* ZFS_IOC_EVENTS_NEXT
Get the next pending event.  The kernel will keep track of the last
event consumed by the file descriptor and provide the next one if
available.  If no new events are available the ioctl() will block
waiting for the next event.  This ioctl may also be called in a
non-blocking mode by setting zc.zc_guid = ZEVENT_NONBLOCK.  In the
non-blocking case if no events are available ENOENT will be returned.
It is possible that ESHUTDOWN will be returned if the ioctl() is
called while module unloading is in progress.  And finally ENOMEM
may occur if the provided nvlist buffer is not large enough to
contain the entire event.

* ZFS_IOC_EVENTS_CLEAR
Clear are events queued by the kernel.  The kernel will keep a fairly
large number of recent events queued, use this ioctl to clear the
in kernel list.  This will effect all user space processes consuming
events.

The zpool command has been extended to use this events ABI with the
'events' subcommand.  You may run 'zpool events -v' to output a
verbose log of all recent events.  This is very similar to the
Solaris 'fmdump -ev' command with the key difference being it also
includes what would be considered sysevents under Solaris.  You
may also run in follow mode with the '-f' option.  To clear the
in kernel event queue use the '-c' option.

$ sudo cmd/zpool/zpool events -fv
TIME                        CLASS
May 13 2010 16:31:15.777711000 ereport.fs.zfs.config.sync
        class = "ereport.fs.zfs.config.sync"
        ena = 0x40982b7897700001
        detector = (embedded nvlist)
                version = 0x0
                scheme = "zfs"
                pool = 0xed976600de75dfa6
        (end detector)

        time = 0x4bec8bc3 0x2e5aed98
        pool = "zpios"
        pool_guid = 0xed976600de75dfa6
        pool_context = 0x0

While the 'zpool events' command is handy for interactive debugging
it is not expected to be the primary consumer of zevents.  This ABI
was primarily added to facilitate the addition of a user space
monitoring daemon.  This daemon would consume all events posted by
the kernel and based on the type of event perform an action.  For
most events simply forwarding them on to syslog is likely enough.
But this interface also cleanly allows for more sophisticated
actions to be taken such as generating an email for a failed drive
2010-05-14 12:40:44 -07:00
Brian Behlendorf 98d5d8bd50 Add missing include path for FMA aware zpool command. 2010-05-14 11:57:48 -07:00
Brian Behlendorf 20ee89f0f2 Add nvpair_alloc_fixed.c in to libnvpair build. 2010-05-14 10:55:02 -07:00
Brian Behlendorf 98660aec20 Merge commit 'refs/top-bases/zfs-branch' into zfs-branch 2010-04-29 12:32:01 -07:00