diff options
author | 2007-05-30 16:54:07 +0000 | |
---|---|---|
committer | 2007-05-30 16:54:07 +0000 | |
commit | 10f872d81c02e3d2c864adf252c35fc93a83b2a4 (patch) | |
tree | cd1e09a9f5c0e83d47c6cb1662bba4b4e26d587e /sys/dev/softraid.c | |
parent | simplify script handling a bit (they're going to disappear probably anyways). (diff) | |
download | wireguard-openbsd-10f872d81c02e3d2c864adf252c35fc93a83b2a4.tar.xz wireguard-openbsd-10f872d81c02e3d2c864adf252c35fc93a83b2a4.zip |
Remove ugly print and don't panic when doing a partial bringup.
Diffstat (limited to 'sys/dev/softraid.c')
-rw-r--r-- | sys/dev/softraid.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c index cf06191cfc7..2f9033ea33d 100644 --- a/sys/dev/softraid.c +++ b/sys/dev/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.59 2007/05/30 15:59:35 marco Exp $ */ +/* $OpenBSD: softraid.c,v 1.60 2007/05/30 16:54:07 marco Exp $ */ /* * Copyright (c) 2007 Marco Peereboom <marco@peereboom.us> * @@ -831,10 +831,8 @@ sr_ioctl_createraid(struct sr_softc *sc, struct bioc_createraid *bc, int user) strlcpy(sd->sd_name, "RAID 1", sizeof(sd->sd_name)); break; case 'c': - if (no_chunk != 1) { - printf("too many c chunks\n"); + if (no_chunk != 1) goto unwind; - } strlcpy(sd->sd_name, "RAID C", sizeof(sd->sd_name)); break; default: @@ -892,7 +890,8 @@ sr_ioctl_createraid(struct sr_softc *sc, struct bioc_createraid *bc, int user) "assemble it\n"); goto unwind; } - panic("not yet partial bringup"); + printf("%s: not yet partial bringup", DEVNAME(sc)); + goto unwind; } /* XXX metadata SHALL be fully filled in at this point */ |