Fix simple typo which made stripe target not working very at all. Issue
found by mhitch@.
This commit is contained in:
parent
ed377eee5f
commit
b08f594364
|
@ -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 @@ dm_target_stripe_strategy(dm_table_entry_t * table_en, struct buf * bp)
|
|||
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 */
|
||||
|
|
Loading…
Reference in New Issue