From 12982205255a286aa9949676295d37663d6559ed Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Tue, 8 Nov 2011 18:02:38 +0000 Subject: Typo. BIOC_SSOFFLINE is the ioctl command. Pass BIOC_SDOFFLINE to sd_set_chunk_state() as the new state. ok jsing@ --- sys/dev/softraid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/softraid.c') diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c index 4d4bf1a7b80..c2791904662 100644 --- a/sys/dev/softraid.c +++ b/sys/dev/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.251 2011/09/19 21:47:37 jsing Exp $ */ +/* $OpenBSD: softraid.c,v 1.252 2011/11/08 18:02:37 krw Exp $ */ /* * Copyright (c) 2007, 2008, 2009 Marco Peereboom * Copyright (c) 2008 Chris Kuethe @@ -2470,7 +2470,7 @@ sr_ioctl_setstate(struct sr_softc *sc, struct bioc_setstate *bs) } /* XXX: check current state first */ - sd->sd_set_chunk_state(sd, c, BIOC_SSOFFLINE); + sd->sd_set_chunk_state(sd, c, BIOC_SDOFFLINE); if (sr_meta_save(sd, SR_META_DIRTY)) { printf("%s: could not save metadata to %s\n", -- cgit v1.2.3