diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2013-03-31 15:44:53 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2013-03-31 15:44:53 +0000 |
commit | d0293e4a1744503723c3447d53f04cc90a312bef (patch) | |
tree | 53bc6f058ac279783291962f7c790d1a21c3c62e /sys/dev/softraid_raid1.c | |
parent | 0a467f3593dc1573fec160f4db4748bcb440140b (diff) |
Use consistent error handling when validating the number of chunks
provided.
Diffstat (limited to 'sys/dev/softraid_raid1.c')
-rw-r--r-- | sys/dev/softraid_raid1.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/softraid_raid1.c b/sys/dev/softraid_raid1.c index 56037d4b9c0..9479caf0b57 100644 --- a/sys/dev/softraid_raid1.c +++ b/sys/dev/softraid_raid1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid_raid1.c,v 1.48 2013/03/31 13:31:44 jsing Exp $ */ +/* $OpenBSD: softraid_raid1.c,v 1.49 2013/03/31 15:44:52 jsing Exp $ */ /* * Copyright (c) 2007 Marco Peereboom <marco@peereboom.us> * @@ -78,9 +78,9 @@ int sr_raid1_create(struct sr_discipline *sd, struct bioc_createraid *bc, int no_chunk, int64_t coerced_size) { - if (no_chunk < 2) { - sr_error(sd->sd_sc, "RAID 1 requires two or more chunks"); + sr_error(sd->sd_sc, "%s requires two or more chunks", + sd->sd_name); return EINVAL; } |