summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2013-01-14 16:38:43 +0000
committermav <mav@FreeBSD.org>2013-01-14 16:38:43 +0000
commit7ed3ee172aa11cd143c08046767a78f1378e8cd6 (patch)
tree3bf677371f50ec35adb634b91dd9f1375c290233 /sys/geom
parent116782d430313a251c4282eb08899d97e0a5bcb2 (diff)
downloadFreeBSD-src-7ed3ee172aa11cd143c08046767a78f1378e8cd6.zip
FreeBSD-src-7ed3ee172aa11cd143c08046767a78f1378e8cd6.tar.gz
Small cosmetic tuning of the IRRT status constants.
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/raid/md_intel.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/geom/raid/md_intel.c b/sys/geom/raid/md_intel.c
index 2bf9703..2d92b0e 100644
--- a/sys/geom/raid/md_intel.c
+++ b/sys/geom/raid/md_intel.c
@@ -98,8 +98,9 @@ struct intel_raid_vol {
uint8_t cng_master_disk;
uint16_t cache_policy;
uint8_t cng_state;
-#define INTEL_SNGST_NEEDS_UPDATE 1
-#define INTEL_SNGST_MASTER_MISSING 2
+#define INTEL_CNGST_UPDATED 0
+#define INTEL_CNGST_NEEDS_UPDATE 1
+#define INTEL_CNGST_MASTER_MISSING 2
uint8_t cng_sub_state;
uint32_t filler_0[10];
@@ -2366,9 +2367,11 @@ g_raid_md_write_intel(struct g_raid_md_object *md, struct g_raid_volume *tvol,
mvol->cng_master_disk = pv->pv_cng_master_disk;
if (vol->v_subdisks[pv->pv_cng_master_disk].sd_state ==
G_RAID_SUBDISK_S_NONE)
- mvol->cng_state = INTEL_SNGST_MASTER_MISSING;
+ mvol->cng_state = INTEL_CNGST_MASTER_MISSING;
else if (vol->v_state != G_RAID_VOLUME_S_OPTIMAL)
- mvol->cng_state = INTEL_SNGST_NEEDS_UPDATE;
+ mvol->cng_state = INTEL_CNGST_NEEDS_UPDATE;
+ else
+ mvol->cng_state = INTEL_CNGST_UPDATED;
}
/* Check for any recovery in progress. */
OpenPOWER on IntegriCloud