Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/dm Fix simple typo which made stripe target not work...
details: https://anonhg.NetBSD.org/src/rev/8488b55f9496
branches: trunk
changeset: 765681:8488b55f9496
user: haad <haad%NetBSD.org@localhost>
date: Thu Jun 02 17:49:40 2011 +0000
description:
Fix simple typo which made stripe target not working very at all. Issue
found by mhitch@.
diffstat:
sys/dev/dm/dm_target_stripe.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 1c0f78cb53ff -r 8488b55f9496 sys/dev/dm/dm_target_stripe.c
--- a/sys/dev/dm/dm_target_stripe.c Thu Jun 02 16:41:32 2011 +0000
+++ b/sys/dev/dm/dm_target_stripe.c Thu Jun 02 17:49:40 2011 +0000
@@ -1,4 +1,4 @@
-/*$NetBSD: dm_target_stripe.c,v 1.13 2010/12/23 14:58:14 mlelstv Exp $*/
+/*$NetBSD: dm_target_stripe.c,v 1.14 2011/06/02 17:49:40 haad Exp $*/
/*
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -243,7 +243,7 @@
nestbuf->b_blkno = stripe_blknr * tsc->stripe_chunksize + stripe_off;
tlc = TAILQ_FIRST(&tsc->stripe_devs);
- for (i = 0; i < stripe_devnr && tlc == NULL; i++)
+ for (i = 0; i < stripe_devnr && tlc != NULL; i++)
tlc = TAILQ_NEXT(tlc, entries);
/* by this point we should have an tlc */
Home |
Main Index |
Thread Index |
Old Index