]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - cmd/zed/zed.h
Initial implementation of zed (ZFS Event Daemon)
[FreeBSD/FreeBSD.git] / cmd / zed / zed.h
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license from the top-level
9  * OPENSOLARIS.LICENSE or <http://opensource.org/licenses/CDDL-1.0>.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each file
14  * and include the License file from the top-level OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21
22 /*
23  * Developed at Lawrence Livermore National Laboratory (LLNL-CODE-403049).
24  * Copyright (C) 2013-2014 Lawrence Livermore National Security, LLC.
25  */
26
27 #ifndef ZED_H
28 #define ZED_H
29
30 /*
31  * Absolute path for the default zed configuration file.
32  */
33 #define ZED_CONF_FILE           SYSCONFDIR "/zfs/zed.conf"
34
35 /*
36  * Absolute path for the default zed pid file.
37  */
38 #define ZED_PID_FILE            RUNSTATEDIR "/zed.pid"
39
40 /*
41  * Absolute path for the default zed state file.
42  */
43 #define ZED_STATE_FILE          RUNSTATEDIR "/zed.state"
44
45 /*
46  * Absolute path for the default zed script directory.
47  */
48 #define ZED_SCRIPT_DIR          SYSCONFDIR "/zfs/zed.d"
49
50 /*
51  * Reserved for future use.
52  */
53 #define ZED_MAX_EVENTS          0
54
55 /*
56  * Reserved for future use.
57  */
58 #define ZED_MIN_EVENTS          0
59
60 /*
61  * String prefix for ZED variables passed via environment variables.
62  */
63 #define ZED_VAR_PREFIX          "ZED_"
64
65 /*
66  * String prefix for ZFS event names passed via environment variables.
67  */
68 #define ZEVENT_VAR_PREFIX       "ZEVENT_"
69
70 #endif  /* !ZED_H */