Author: adrian.chadd
Date: Wed May 20 23:46:21 2009
New Revision: 14054
Added:
branches/LUSCA_HEAD/src/fs/coss/store_log_coss.c
branches/LUSCA_HEAD/src/fs/coss/store_log_coss.h
Modified:
branches/LUSCA_HEAD/src/fs/Makefile.am
branches/LUSCA_HEAD/src/fs/coss/store_dir_coss.c
Log:
Add in some empty swaplog writing functions for COSS.
Modified: branches/LUSCA_HEAD/src/fs/Makefile.am
==============================================================================
--- branches/LUSCA_HEAD/src/fs/Makefile.am (original)
+++ branches/LUSCA_HEAD/src/fs/Makefile.am Wed May 20 23:46:21 2009
@@ -11,7 +11,7 @@
EXTRA_libaufs_a_SOURCES = aufs/aiops.c aufs/aiops_win32.c
libaufs_a_SOURCES = aufs/store_asyncufs.h aufs/store_dir_aufs.c
aufs/store_io_aufs.c aufs/store_bitmap_aufs.h aufs/store_bitmap_aufs.c
aufs/store_rebuild_aufs.h aufs/store_rebuild_aufs.c aufs/store_log_aufs.h
aufs/store_log_aufs.c
-libcoss_a_SOURCES = coss/store_coss.h coss/store_io_coss.c
coss/store_dir_coss.c coss/store_rebuild_coss.h coss/store_rebuild_coss.c
+libcoss_a_SOURCES = coss/store_coss.h coss/store_io_coss.c
coss/store_dir_coss.c coss/store_rebuild_coss.h coss/store_rebuild_coss.c
coss/store_log_coss.c coss/store_log_coss.h
libnull_a_SOURCES = null/store_null.c
LDADD = $(top_builddir)/lib/libmiscutil.a @XTRA_LIBS@
Modified: branches/LUSCA_HEAD/src/fs/coss/store_dir_coss.c
==============================================================================
--- branches/LUSCA_HEAD/src/fs/coss/store_dir_coss.c (original)
+++ branches/LUSCA_HEAD/src/fs/coss/store_dir_coss.c Wed May 20 23:46:21
2009
@@ -39,6 +39,7 @@
#include "../../libasyncio/async_io.h"
#include "store_coss.h"
#include "store_rebuild_coss.h"
+#include "store_log_coss.h"
#define STORE_META_BUFSZ 4096
#define HITONLY_BUFS 2
@@ -406,9 +407,10 @@
sd->obj.unlink = storeCossUnlink;
sd->obj.recycle = storeCossRecycle;
- sd->log.open = NULL;
- sd->log.close = NULL;
- sd->log.write = NULL;
+ sd->log.open = storeCossDirOpenSwapLog;
+ sd->log.close = storeCossDirCloseSwapLog;
+ sd->log.write = storeCossDirSwapLog;
+
sd->log.clean.start = NULL;
sd->log.clean.write = NULL;
sd->log.clean.nextentry = NULL;
Added: branches/LUSCA_HEAD/src/fs/coss/store_log_coss.c
==============================================================================
--- (empty file)
+++ branches/LUSCA_HEAD/src/fs/coss/store_log_coss.c Wed May 20 23:46:21
2009
@@ -0,0 +1,56 @@
+
+/*
+ * $Id: store_rebuild_coss.c 14048 2009-05-08 13:34:06Z adrian.chadd $
+ *
+ * DEBUG: section 47 Store COSS Directory Routines
+ * AUTHOR: Eric Stern
+ *
+ * SQUID Web Proxy Cache http://www.squid-cache.org/
+ * ----------------------------------------------------------
+ *
+ * Squid is the result of efforts by numerous individuals from
+ * the Internet community; see the CONTRIBUTORS file for full
+ * details. Many organizations have provided support for Squid's
+ * development; see the SPONSORS file for full details. Squid is
+ * Copyrighted (C) 2001 by the Regents of the University of
+ * California; see the COPYRIGHT file for full details. Squid
+ * incorporates software developed and/or copyrighted by other
+ * sources; see the CREDITS file for full details.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
+ *
+ */
+
+#include "squid.h"
+
+#include "../../libasyncio/aiops.h"
+#include "../../libasyncio/async_io.h"
+#include "store_coss.h"
+#include "store_log_coss.h"
+
+void
+storeCossDirOpenSwapLog(SwapDir * sd)
+{
+}
+
+void
+storeCossDirCloseSwapLog(SwapDir * sd)
+{
+}
+
+void
+storeCossDirSwapLog(const SwapDir * sd, const StoreEntry * e, int op)
+{
+}
Added: branches/LUSCA_HEAD/src/fs/coss/store_log_coss.h
==============================================================================
--- (empty file)
+++ branches/LUSCA_HEAD/src/fs/coss/store_log_coss.h Wed May 20 23:46:21
2009
@@ -0,0 +1,9 @@
+#ifndef __STORE_LOG_COSS_H__
+#define __STORE_LOG_COSS_H__
+
+extern void storeCossDirOpenSwapLog(SwapDir *sd);
+extern void storeCossDirCloseSwapLog(SwapDir *sd);
+extern void storeCossDirSwapLog(const SwapDir * sd, const StoreEntry * e,
int op);
+
+
+#endif
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---