o_append with Perlbal::AIO?
webmaster at generalsynthesis.com
Tue Mar 20 00:57:01 UTC 2007
For the life of me, I can't seem to figure out how to do AIO o_append
in Perlbal. I'm using Perlbal::AIO, which is using Linux::AIO from
What I would like to do, is to use o_append to log the activity of a
custom Perlbal hook that I am developing. However, the only file
writing operations supported by Linux::AIO and IO::AIO seem to be
sendfile and aio_write, neither of which appends bytes atomically to
the end of a file.
I have multiple concurrent processes appending to the same file, and I
would like to use AIO and o_append to be able to atomically AND
asynchronously append to the file from within Perlbal.
Is there any way to use o_append with Perlbal::AIO (or IO::AIO, or
Linux::AIO) that I'm overlooking? Is there a better way of getting
asynchrounous atomic o_append support into Perlbal?
Thanks in advance!
BTW, Perlbal rocks!
More information about the perlbal