xref: /freebsd/sys/contrib/openzfs/cmd/zed/zed.h (revision 8ddb146abcdf061be9f2c0db7e391697dafad85c)
1 /*
2  * This file is part of the ZFS Event Daemon (ZED).
3  *
4  * Developed at Lawrence Livermore National Laboratory (LLNL-CODE-403049).
5  * Copyright (C) 2013-2014 Lawrence Livermore National Security, LLC.
6  * Refer to the OpenZFS git commit log for authoritative copyright attribution.
7  *
8  * The contents of this file are subject to the terms of the
9  * Common Development and Distribution License Version 1.0 (CDDL-1.0).
10  * You can obtain a copy of the license from the top-level file
11  * "OPENSOLARIS.LICENSE" or at <http://opensource.org/licenses/CDDL-1.0>.
12  * You may not use this file except in compliance with the license.
13  */
14 
15 #ifndef	ZED_H
16 #define	ZED_H
17 
18 /*
19  * Absolute path for the default zed pid file.
20  */
21 #define	ZED_PID_FILE		RUNSTATEDIR "/zed.pid"
22 
23 /*
24  * Absolute path for the default zed state file.
25  */
26 #define	ZED_STATE_FILE		RUNSTATEDIR "/zed.state"
27 
28 /*
29  * Absolute path for the default zed zedlet directory.
30  */
31 #define	ZED_ZEDLET_DIR		SYSCONFDIR "/zfs/zed.d"
32 
33 /*
34  * String prefix for ZED variables passed via environment variables.
35  */
36 #define	ZED_VAR_PREFIX		"ZED_"
37 
38 /*
39  * String prefix for ZFS event names passed via environment variables.
40  */
41 #define	ZEVENT_VAR_PREFIX	"ZEVENT_"
42 
43 #endif	/* !ZED_H */
44