Deleted Added
full compact
zfsimpl.h (201143) zfsimpl.h (201689)
1/*-
2 * Copyright (c) 2002 McAfee, Inc.
3 * All rights reserved.
4 *
5 * This software was developed for the FreeBSD Project by Marshall
6 * Kirk McKusick and McAfee Research,, the Security Research Division of
7 * McAfee, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as
8 * part of the DARPA CHATS research program

--- 534 unchanged lines hidden (view full) ---

543#define ZPOOL_CONFIG_DEVID "devid"
544#define ZPOOL_CONFIG_METASLAB_ARRAY "metaslab_array"
545#define ZPOOL_CONFIG_METASLAB_SHIFT "metaslab_shift"
546#define ZPOOL_CONFIG_ASHIFT "ashift"
547#define ZPOOL_CONFIG_ASIZE "asize"
548#define ZPOOL_CONFIG_DTL "DTL"
549#define ZPOOL_CONFIG_STATS "stats"
550#define ZPOOL_CONFIG_WHOLE_DISK "whole_disk"
1/*-
2 * Copyright (c) 2002 McAfee, Inc.
3 * All rights reserved.
4 *
5 * This software was developed for the FreeBSD Project by Marshall
6 * Kirk McKusick and McAfee Research,, the Security Research Division of
7 * McAfee, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as
8 * part of the DARPA CHATS research program

--- 534 unchanged lines hidden (view full) ---

543#define ZPOOL_CONFIG_DEVID "devid"
544#define ZPOOL_CONFIG_METASLAB_ARRAY "metaslab_array"
545#define ZPOOL_CONFIG_METASLAB_SHIFT "metaslab_shift"
546#define ZPOOL_CONFIG_ASHIFT "ashift"
547#define ZPOOL_CONFIG_ASIZE "asize"
548#define ZPOOL_CONFIG_DTL "DTL"
549#define ZPOOL_CONFIG_STATS "stats"
550#define ZPOOL_CONFIG_WHOLE_DISK "whole_disk"
551#define ZPOOL_CONFIG_OFFLINE "offline"
552#define ZPOOL_CONFIG_ERRCOUNT "error_count"
553#define ZPOOL_CONFIG_NOT_PRESENT "not_present"
554#define ZPOOL_CONFIG_SPARES "spares"
555#define ZPOOL_CONFIG_IS_SPARE "is_spare"
556#define ZPOOL_CONFIG_NPARITY "nparity"
557#define ZPOOL_CONFIG_HOSTID "hostid"
558#define ZPOOL_CONFIG_HOSTNAME "hostname"
559#define ZPOOL_CONFIG_TIMESTAMP "timestamp" /* not stored on disk */
560
551#define ZPOOL_CONFIG_ERRCOUNT "error_count"
552#define ZPOOL_CONFIG_NOT_PRESENT "not_present"
553#define ZPOOL_CONFIG_SPARES "spares"
554#define ZPOOL_CONFIG_IS_SPARE "is_spare"
555#define ZPOOL_CONFIG_NPARITY "nparity"
556#define ZPOOL_CONFIG_HOSTID "hostid"
557#define ZPOOL_CONFIG_HOSTNAME "hostname"
558#define ZPOOL_CONFIG_TIMESTAMP "timestamp" /* not stored on disk */
559
560/*
561 * The persistent vdev state is stored as separate values rather than a single
562 * 'vdev_state' entry. This is because a device can be in multiple states, such
563 * as offline and degraded.
564 */
565#define ZPOOL_CONFIG_OFFLINE "offline"
566#define ZPOOL_CONFIG_FAULTED "faulted"
567#define ZPOOL_CONFIG_DEGRADED "degraded"
568#define ZPOOL_CONFIG_REMOVED "removed"
569
561#define VDEV_TYPE_ROOT "root"
562#define VDEV_TYPE_MIRROR "mirror"
563#define VDEV_TYPE_REPLACING "replacing"
564#define VDEV_TYPE_RAIDZ "raidz"
565#define VDEV_TYPE_DISK "disk"
566#define VDEV_TYPE_FILE "file"
567#define VDEV_TYPE_MISSING "missing"
568#define VDEV_TYPE_SPARE "spare"

--- 16 unchanged lines hidden (view full) ---

585/*
586 * vdev states are ordered from least to most healthy.
587 * A vdev that's CANT_OPEN or below is considered unusable.
588 */
589typedef enum vdev_state {
590 VDEV_STATE_UNKNOWN = 0, /* Uninitialized vdev */
591 VDEV_STATE_CLOSED, /* Not currently open */
592 VDEV_STATE_OFFLINE, /* Not allowed to open */
570#define VDEV_TYPE_ROOT "root"
571#define VDEV_TYPE_MIRROR "mirror"
572#define VDEV_TYPE_REPLACING "replacing"
573#define VDEV_TYPE_RAIDZ "raidz"
574#define VDEV_TYPE_DISK "disk"
575#define VDEV_TYPE_FILE "file"
576#define VDEV_TYPE_MISSING "missing"
577#define VDEV_TYPE_SPARE "spare"

--- 16 unchanged lines hidden (view full) ---

594/*
595 * vdev states are ordered from least to most healthy.
596 * A vdev that's CANT_OPEN or below is considered unusable.
597 */
598typedef enum vdev_state {
599 VDEV_STATE_UNKNOWN = 0, /* Uninitialized vdev */
600 VDEV_STATE_CLOSED, /* Not currently open */
601 VDEV_STATE_OFFLINE, /* Not allowed to open */
602 VDEV_STATE_REMOVED, /* Explicitly removed from system */
593 VDEV_STATE_CANT_OPEN, /* Tried to open, but failed */
603 VDEV_STATE_CANT_OPEN, /* Tried to open, but failed */
604 VDEV_STATE_FAULTED, /* External request to fault device */
594 VDEV_STATE_DEGRADED, /* Replicated vdev with unhealthy kids */
595 VDEV_STATE_HEALTHY /* Presumed good */
596} vdev_state_t;
597
598/*
599 * vdev aux states. When a vdev is in the CANT_OPEN state, the aux field
600 * of the vdev stats structure uses these constants to distinguish why.
601 */

--- 596 unchanged lines hidden ---
605 VDEV_STATE_DEGRADED, /* Replicated vdev with unhealthy kids */
606 VDEV_STATE_HEALTHY /* Presumed good */
607} vdev_state_t;
608
609/*
610 * vdev aux states. When a vdev is in the CANT_OPEN state, the aux field
611 * of the vdev stats structure uses these constants to distinguish why.
612 */

--- 596 unchanged lines hidden ---