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