mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 18:11:00 +03:00
6283f55ea1
One of the neat tricks an autoconf style project is capable of is allow configurion/building in a directory other than the source directory. The major advantage to this is that you can build the project various different ways while making changes in a single source tree. For example, this project is designed to work on various different Linux distributions each of which work slightly differently. This means that changes need to verified on each of those supported distributions perferably before the change is committed to the public git repo. Using nfs and custom build directories makes this much easier. I now have a single source tree in nfs mounted on several different systems each running a supported distribution. When I make a change to the source base I suspect may break things I can concurrently build from the same source on all the systems each in their own subdirectory. wget -c http://github.com/downloads/behlendorf/zfs/zfs-x.y.z.tar.gz tar -xzf zfs-x.y.z.tar.gz cd zfs-x-y-z ------------------------- run concurrently ---------------------- <ubuntu system> <fedora system> <debian system> <rhel6 system> mkdir ubuntu mkdir fedora mkdir debian mkdir rhel6 cd ubuntu cd fedora cd debian cd rhel6 ../configure ../configure ../configure ../configure make make make make make check make check make check make check This change also moves many of the include headers from individual incude/sys directories under the modules directory in to a single top level include directory. This has the advantage of making the build rules cleaner and logically it makes a bit more sense.
110 lines
4.6 KiB
C
110 lines
4.6 KiB
C
/*
|
|
* CDDL HEADER START
|
|
*
|
|
* The contents of this file are subject to the terms of the
|
|
* Common Development and Distribution License (the "License").
|
|
* You may not use this file except in compliance with the License.
|
|
*
|
|
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
|
* or http://www.opensolaris.org/os/licensing.
|
|
* See the License for the specific language governing permissions
|
|
* and limitations under the License.
|
|
*
|
|
* When distributing Covered Code, include this CDDL HEADER in each
|
|
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
|
* If applicable, add the following below this CDDL HEADER, with the
|
|
* fields enclosed by brackets "[]" replaced with your own identifying
|
|
* information: Portions Copyright [yyyy] [name of copyright owner]
|
|
*
|
|
* CDDL HEADER END
|
|
*/
|
|
/*
|
|
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
|
|
* Use is subject to license terms.
|
|
*/
|
|
|
|
#ifndef _SYS_FM_FS_ZFS_H
|
|
#define _SYS_FM_FS_ZFS_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define ZFS_ERROR_CLASS "fs.zfs"
|
|
|
|
#define FM_EREPORT_ZFS_CHECKSUM "checksum"
|
|
#define FM_EREPORT_ZFS_IO "io"
|
|
#define FM_EREPORT_ZFS_DATA "data"
|
|
#define FM_EREPORT_ZFS_CONFIG_SYNC "config.sync"
|
|
#define FM_EREPORT_ZFS_POOL "zpool"
|
|
#define FM_EREPORT_ZFS_POOL_DESTROY "zpool.destroy"
|
|
#define FM_EREPORT_ZFS_DEVICE_UNKNOWN "vdev.unknown"
|
|
#define FM_EREPORT_ZFS_DEVICE_OPEN_FAILED "vdev.open_failed"
|
|
#define FM_EREPORT_ZFS_DEVICE_CORRUPT_DATA "vdev.corrupt_data"
|
|
#define FM_EREPORT_ZFS_DEVICE_NO_REPLICAS "vdev.no_replicas"
|
|
#define FM_EREPORT_ZFS_DEVICE_BAD_GUID_SUM "vdev.bad_guid_sum"
|
|
#define FM_EREPORT_ZFS_DEVICE_TOO_SMALL "vdev.too_small"
|
|
#define FM_EREPORT_ZFS_DEVICE_BAD_LABEL "vdev.bad_label"
|
|
#define FM_EREPORT_ZFS_DEVICE_REMOVE "vdev.remove"
|
|
#define FM_EREPORT_ZFS_DEVICE_CLEAR "vdev.clear"
|
|
#define FM_EREPORT_ZFS_DEVICE_CHECK "vdev.check"
|
|
#define FM_EREPORT_ZFS_DEVICE_SPARE "vdev.spare"
|
|
#define FM_EREPORT_ZFS_DEVICE_AUTOEXPAND "vdev.autoexpand"
|
|
#define FM_EREPORT_ZFS_IO_FAILURE "io_failure"
|
|
#define FM_EREPORT_ZFS_PROBE_FAILURE "probe_failure"
|
|
#define FM_EREPORT_ZFS_LOG_REPLAY "log_replay"
|
|
#define FM_EREPORT_ZFS_RESILVER_START "resilver.start"
|
|
#define FM_EREPORT_ZFS_RESILVER_FINISH "resilver.finish"
|
|
#define FM_EREPORT_ZFS_SCRUB_START "scrub.start"
|
|
#define FM_EREPORT_ZFS_SCRUB_FINISH "scrub.finish"
|
|
#define FM_EREPORT_ZFS_BOOTFS_VDEV_ATTACH "bootfs.vdev.attach"
|
|
|
|
#define FM_EREPORT_PAYLOAD_ZFS_POOL "pool"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_POOL_FAILMODE "pool_failmode"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_POOL_GUID "pool_guid"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_POOL_CONTEXT "pool_context"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_VDEV_GUID "vdev_guid"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_VDEV_TYPE "vdev_type"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_VDEV_PATH "vdev_path"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_VDEV_DEVID "vdev_devid"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_VDEV_FRU "vdev_fru"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_VDEV_STATE "vdev_state"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_PARENT_GUID "parent_guid"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_PARENT_TYPE "parent_type"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_PARENT_PATH "parent_path"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_PARENT_DEVID "parent_devid"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_ZIO_OBJSET "zio_objset"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_ZIO_OBJECT "zio_object"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_ZIO_LEVEL "zio_level"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_ZIO_BLKID "zio_blkid"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_ZIO_ERR "zio_err"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_ZIO_OFFSET "zio_offset"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_ZIO_SIZE "zio_size"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_PREV_STATE "prev_state"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_CKSUM_EXPECTED "cksum_expected"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_CKSUM_ACTUAL "cksum_actual"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_CKSUM_ALGO "cksum_algorithm"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_CKSUM_BYTESWAP "cksum_byteswap"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_BAD_OFFSET_RANGES "bad_ranges"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_BAD_RANGE_MIN_GAP "bad_ranges_min_gap"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_BAD_RANGE_SETS "bad_range_sets"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_BAD_RANGE_CLEARS "bad_range_clears"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_BAD_SET_BITS "bad_set_bits"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_BAD_CLEARED_BITS "bad_cleared_bits"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_BAD_SET_HISTOGRAM "bad_set_histogram"
|
|
#define FM_EREPORT_PAYLOAD_ZFS_BAD_CLEARED_HISTOGRAM "bad_cleared_histogram"
|
|
|
|
#define FM_EREPORT_FAILMODE_WAIT "wait"
|
|
#define FM_EREPORT_FAILMODE_CONTINUE "continue"
|
|
#define FM_EREPORT_FAILMODE_PANIC "panic"
|
|
|
|
#define FM_EREPORT_RESOURCE_REMOVED "removed"
|
|
#define FM_EREPORT_RESOURCE_AUTOREPLACE "autoreplace"
|
|
#define FM_EREPORT_RESOURCE_STATECHANGE "statechange"
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _SYS_FM_FS_ZFS_H */
|