Re: post modio

From: Adrian Chadd <adrian@dont-contact.us>
Date: Mon, 22 May 2000 16:15:22 +0800

On Mon, May 15, 2000, Duane Wessels wrote:
>
>
> On Sun, 14 May 2000, Adrian Chadd wrote:
>
> > Hrm. Thats what I had initially for callback and sync due to AUFS. If
> > people think that having sync and callback per-fs type rather than per-fs
> > instance then I'll go through and change the API back. If we do this then
> > it'll be up to the fs code to maintain a list of swapdirs of their type,
> > or they have to walk the swapDir array and strcmp("type", SD->type) to
> > figure out whether is a swapdir of theirs.
>
> I think maybe all you have to do is change storeDirCallback,
> and the return value of STCALLBACK:

[snip]

> - SD->callback returns 1 if it did some work (processed
> an I/O event).
> - SD->callback also returns 1 if its "queue" is full.
> Thus, we stay in the do loop if any one of the dirs
> needs to be "drained."
> - The 'ndir' weirdness cycles the starting dir, so it
> doesn't always start with #0.

Neat. Ok, I will do the grunt work and commit this change to modio and test
it out over the next day.

Neat idea.

Adrian
Received on Mon May 22 2000 - 02:15:28 MDT

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