Re: src/fs/coss/store_dir_coss.c

From: Adrian Chadd <adrian@dont-contact.us>
Date: Fri, 4 May 2001 22:55:31 +0800

On Fri, May 04, 2001, Andres Kroonmaa wrote:
>
> While fixing src to use new style memPoolDestroy() I came across
> that coss_index_pool is not destroyed.
> I hope somebody familiar with COSS would say if its right.

Oh? Hrm. ok. Do it. :-)

>
> /*
> * initial setup/done code
> */
> static void
> storeCossDirDone(void)
> {
> memPoolDestroy(&coss_state_pool);
> /* memPoolDestroy(&coss_index_pool); XXX Should be here? */
> coss_initialised = 0;
> }
>
> void
> storeFsSetup_coss(storefs_entry_t * storefs)
> {
> assert(!coss_initialised);
>
> storefs->parsefunc = storeCossDirParse;
> storefs->reconfigurefunc = storeCossDirReconfigure;
> storefs->donefunc = storeCossDirDone;
> coss_state_pool = memPoolCreate("COSS IO State data", sizeof(CossState));
> coss_index_pool = memPoolCreate("COSS index data", sizeof(CossIndexNode));
> coss_initialised = 1;
> }
>
>
>
> ------------------------------------
> Andres Kroonmaa <andre@online.ee>
> CTO, Delfi Online
> Tel: 6501 731, Fax: 6501 708
> Pärnu mnt. 158, Tallinn,
> 11317 Estonia
>

-- 
Adrian Chadd			"How could we possibly use sex to get
<adrian@creative.net.au>	  what we want?
			 	   Sex _IS_ what we want!" -- Fraser
Received on Fri May 04 2001 - 08:59:49 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:58 MST