diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2002-03-11 00:44:35 +0000 |
---|---|---|
committer | Marcus Brinkmann <marcus@gnu.org> | 2002-03-11 00:44:35 +0000 |
commit | 672565ab1de2548a3c89b968629faba17f854b16 (patch) | |
tree | ac5cfa24c4ec0bd8dcbb18ca37a98abfa4e1e771 /libstore/stripe.c | |
parent | aed44d5c014134a9d5f13d080192d10dfe5fccfd (diff) | |
download | hurd-672565ab1de2548a3c89b968629faba17f854b16.tar.gz hurd-672565ab1de2548a3c89b968629faba17f854b16.tar.bz2 hurd-672565ab1de2548a3c89b968629faba17f854b16.zip |
2002-03-11 Marcus Brinkmann <marcus@gnu.org>
* 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.
Diffstat (limited to 'libstore/stripe.c')
-rw-r--r-- | libstore/stripe.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); |