Author: adrian.chadd
Date: Fri Apr 3 22:57:06 2009
New Revision: 13908
Modified:
branches/LUSCA_HEAD/libasyncio/aiops.c
branches/LUSCA_HEAD/libasyncio/async_io.c
Log:
Remove the USE_TRUNCATE optional stuff in the async io code.
Its now up to the user (ie, aufs atm) to select between aioTruncate()
and aioUnlink().
Modified: branches/LUSCA_HEAD/libasyncio/aiops.c
==============================================================================
--- branches/LUSCA_HEAD/libasyncio/aiops.c (original)
+++ branches/LUSCA_HEAD/libasyncio/aiops.c Fri Apr 3 22:57:06 2009
@@ -108,9 +108,7 @@
static void squidaio_do_close(squidaio_request_t *);
static void squidaio_do_stat(squidaio_request_t *);
static void squidaio_do_unlink(squidaio_request_t *);
-#if USE_TRUNCATE
static void squidaio_do_truncate(squidaio_request_t *);
-#endif
#if AIO_OPENDIR
static void *squidaio_do_opendir(squidaio_request_t *);
#endif
@@ -339,11 +337,9 @@
case _AIO_OP_UNLINK:
squidaio_do_unlink(request);
break;
-#if USE_TRUNCATE
case _AIO_OP_TRUNCATE:
squidaio_do_truncate(request);
break;
-#endif
#if AIO_OPENDIR /* Opendir not implemented yet */
case _AIO_OP_OPENDIR:
squidaio_do_opendir(request);
@@ -695,7 +691,6 @@
}
-#if USE_TRUNCATE
int
squidaio_truncate(const char *path, off_t length, squidaio_result_t *
resultp)
{
@@ -719,8 +714,6 @@
requestp->ret = truncate(requestp->path, requestp->offset);
requestp->err = errno;
}
-
-#endif
#if AIO_OPENDIR
Modified: branches/LUSCA_HEAD/libasyncio/async_io.c
==============================================================================
--- branches/LUSCA_HEAD/libasyncio/async_io.c (original)
+++ branches/LUSCA_HEAD/libasyncio/async_io.c Fri Apr 3 22:57:06 2009
@@ -419,7 +419,6 @@
dlinkAdd(ctrlp, &ctrlp->node, &used_list);
} /* aioUnlink */
-#if USE_TRUNCATE
/*!
* @function
* aioTruncate
@@ -448,7 +447,6 @@
squidaio_truncate(path, length, &ctrlp->result);
dlinkAdd(ctrlp, &ctrlp->node, &used_list);
} /* aioTruncate */
-#endif
int
aioCheckCallbacks(void)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"lusca-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/lusca-commit?hl=en
-~----------~----~----~----~------~----~------~--~---