Module Name: src
Committed By: haad
Date: Thu Jun 2 17:49:40 UTC 2011
Modified Files:
src/sys/dev/dm: dm_target_stripe.c
Log Message:
Fix simple typo which made stripe target not working very at all. Issue
found by mhitch@.
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/dm/dm_target_stripe.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/dm/dm_target_stripe.c
diff -u src/sys/dev/dm/dm_target_stripe.c:1.13 src/sys/dev/dm/dm_target_stripe.c:1.14
--- src/sys/dev/dm/dm_target_stripe.c:1.13 Thu Dec 23 14:58:14 2010
+++ src/sys/dev/dm/dm_target_stripe.c Thu Jun 2 17:49:40 2011
@@ -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 */