diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2010-07-02 09:26:06 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2010-07-02 09:26:06 +0000 |
commit | ce4cca98b1fb81acf59245e2c1e9d7fb2ad363c8 (patch) | |
tree | 420ccf3afa0e5883fbf52eda74c6b7a4b8125c54 /sys/dev/softraid.c | |
parent | 91cb8c154b7e31c9d85c8eb9d8b66d0e2457c332 (diff) |
Rename the volume specific flags variable.
ok marco@
Diffstat (limited to 'sys/dev/softraid.c')
-rw-r--r-- | sys/dev/softraid.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c index 196370de27f..f169b88e69a 100644 --- a/sys/dev/softraid.c +++ b/sys/dev/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.208 2010/07/02 09:20:26 jsing Exp $ */ +/* $OpenBSD: softraid.c,v 1.209 2010/07/02 09:26:05 jsing Exp $ */ /* * Copyright (c) 2007, 2008, 2009 Marco Peereboom <marco@peereboom.us> * Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org> @@ -537,7 +537,7 @@ sr_meta_init(struct sr_discipline *sd, struct sr_chunk_head *cl) sm->ssdi.ssd_magic = SR_MAGIC; sm->ssdi.ssd_version = SR_META_VERSION; sm->ssd_ondisk = 0; - sm->ssdi.ssd_flags = sd->sd_meta_flags; + sm->ssdi.ssd_vol_flags = sd->sd_meta_flags; sm->ssd_data_offset = SR_DATA_OFFSET; /* get uuid from chunk 0 */ @@ -988,7 +988,7 @@ sr_meta_native_bootprobe(struct sr_softc *sc, struct device *dv, sr_meta_getdevname(sc, devr, devname, sizeof(devname)); if (sr_meta_validate(fake_sd, devr, md, NULL) == 0) { - if (md->ssdi.ssd_flags & BIOC_SCNOAUTOASSEMBLE) { + if (md->ssdi.ssd_vol_flags & BIOC_SCNOAUTOASSEMBLE) { DNPRINTF(SR_D_META, "%s: don't save %s\n", DEVNAME(sc), devname); } else { @@ -2415,7 +2415,7 @@ sr_hotspare(struct sr_softc *sc, dev_t dev) sm->ssdi.ssd_magic = SR_MAGIC; sm->ssdi.ssd_version = SR_META_VERSION; sm->ssd_ondisk = 0; - sm->ssdi.ssd_flags = 0; + sm->ssdi.ssd_vol_flags = 0; bcopy(&uuid, &sm->ssdi.ssd_uuid, sizeof(struct sr_uuid)); sm->ssdi.ssd_chunk_no = 1; sm->ssdi.ssd_volid = SR_HOTSPARE_VOLID; @@ -2946,9 +2946,9 @@ sr_ioctl_createraid(struct sr_softc *sc, struct bioc_createraid *bc, int user) /* Adjust flags if necessary. */ if ((sd->sd_capabilities & SR_CAP_AUTO_ASSEMBLE) && (bc->bc_flags & BIOC_SCNOAUTOASSEMBLE) != - (sd->sd_meta->ssdi.ssd_flags & BIOC_SCNOAUTOASSEMBLE)) { - sd->sd_meta->ssdi.ssd_flags &= ~BIOC_SCNOAUTOASSEMBLE; - sd->sd_meta->ssdi.ssd_flags |= + (sd->sd_meta->ssdi.ssd_vol_flags & BIOC_SCNOAUTOASSEMBLE)) { + sd->sd_meta->ssdi.ssd_vol_flags &= ~BIOC_SCNOAUTOASSEMBLE; + sd->sd_meta->ssdi.ssd_vol_flags |= bc->bc_flags & BIOC_SCNOAUTOASSEMBLE; } @@ -3093,7 +3093,7 @@ sr_ioctl_deleteraid(struct sr_softc *sc, struct bioc_deleteraid *dr) goto bad; sd->sd_deleted = 1; - sd->sd_meta->ssdi.ssd_flags = BIOC_SCNOAUTOASSEMBLE; + sd->sd_meta->ssdi.ssd_vol_flags = BIOC_SCNOAUTOASSEMBLE; sr_shutdown(sd); rv = 0; @@ -3255,7 +3255,7 @@ sr_ioctl_installboot(struct sr_softc *sc, struct bioc_installboot *bb) /* XXX - Install boot block on disk - MD code. */ /* Save boot details in metadata. */ - sd->sd_meta->ssdi.ssd_flags |= BIOC_SCBOOTABLE; + sd->sd_meta->ssdi.ssd_vol_flags |= BIOC_SCBOOTABLE; /* XXX - Store size of boot block/loader in optional metadata. */ @@ -4138,7 +4138,7 @@ sr_meta_print(struct sr_metadata *m) printf("\tssd_magic 0x%llx\n", m->ssdi.ssd_magic); printf("\tssd_version %d\n", m->ssdi.ssd_version); - printf("\tssd_flags 0x%x\n", m->ssdi.ssd_flags); + printf("\tssd_vol_flags 0x%x\n", m->ssdi.ssd_vol_flags); printf("\tssd_uuid "); sr_uuid_print(&m->ssdi.ssd_uuid, 1); printf("\tssd_chunk_no %d\n", m->ssdi.ssd_chunk_no); |