From 672565ab1de2548a3c89b968629faba17f854b16 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Mon, 11 Mar 2002 00:44:35 +0000 Subject: 2002-03-11 Marcus Brinkmann * stripe.c (store_concat_class): Add store_concat_open. (store_concat_create): Do not multiply NUM_STORES with 2 to get the number of runs. * kids.c (store_allocate_child_encodings): Call allocate_encoding on child store K, not on STORE. (store_encode_children): Likewise. * decode.c (store_std_leaf_decode): Increment ENC->cur_data by NAME_LEN and MISC_LEN as appropriate. --- libstore/stripe.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libstore/stripe.c') diff --git a/libstore/stripe.c b/libstore/stripe.c index 90af39d5..24faeb80 100644 --- a/libstore/stripe.c +++ b/libstore/stripe.c @@ -150,7 +150,8 @@ store_concat_class = { STORAGE_CONCAT, "concat", stripe_read, stripe_write, concat_allocate_encoding, concat_encode, concat_decode, - store_set_child_flags, store_clear_child_flags, 0, 0, stripe_remap + store_set_child_flags, store_clear_child_flags, 0, 0, stripe_remap, + store_concat_open }; /* Return a new store in STORE that interleaves all the stores in STRIPES @@ -241,7 +242,7 @@ store_concat_create (struct store * const *stores, size_t num_stores, err = _store_create (&store_concat_class, MACH_PORT_NULL, flags | common_flags, block_size, - runs, num_stores * 2, 0, store); + runs, num_stores, 0, store); if (! err) { err = store_set_children (*store, stores, num_stores); -- cgit v1.2.3