On Mon, May 15, 2006, Henrik Nordstrom wrote:
> m??n 2006-05-15 klockan 12:54 +0800 skrev Adrian Chadd:
>
> > I just noticed that the aufs squidaio_do_write() doesn't call lseek() before
> > write(). This means that the offset value when aioWrite() is called isn't
> > paid attention to.
>
> In 2.5 aufs the filedescriptor is exclusively for write and all writes
> done sequentially starting at offset 0, one at a time.
Ah, the API is confusing (as it has an offset parameter in aioWrite()).
Its a shame I can't queue multiple read()s and write()s to the same FD; threads
don't have a 'local' seek pointer to an FD as far as I can tell. It would
have been nice; I could've then used the aiops code to implement the async
stuff for COSS.
adrian
Received on Mon May 15 2006 - 04:07:09 MDT
This archive was generated by hypermail pre-2.1.9 : Thu Jun 01 2006 - 12:00:04 MDT