Author: adrian.chadd
Date: Wed Jul  8 04:41:03 2009
New Revision: 14157

Modified:
    playpen/LUSCA_HEAD_storework/libsqstore/store_log.c
    playpen/LUSCA_HEAD_storework/libsqstore/store_log.h

Log:
Add a function to print a 'completed' swaplog entry




Modified: playpen/LUSCA_HEAD_storework/libsqstore/store_log.c
==============================================================================
--- playpen/LUSCA_HEAD_storework/libsqstore/store_log.c (original)
+++ playpen/LUSCA_HEAD_storework/libsqstore/store_log.c Wed Jul  8 04:41:03  
2009
@@ -51,3 +51,13 @@
      return write(1, sh, sizeof(storeSwapLogData));
  }

+int
+storeSwapLogPrintCompleted(int fd)
+{
+    char buf[sizeof(storeSwapLogData)];
+    storeSwapLogCompleted *sh = (storeSwapLogCompleted *) buf;
+
+    bzero(buf, sizeof(buf));
+    sh->op = SWAP_LOG_COMPLETED;
+    return write(1, sh, sizeof(storeSwapLogData));
+}

Modified: playpen/LUSCA_HEAD_storework/libsqstore/store_log.h
==============================================================================
--- playpen/LUSCA_HEAD_storework/libsqstore/store_log.h (original)
+++ playpen/LUSCA_HEAD_storework/libsqstore/store_log.h Wed Jul  8 04:41:03  
2009
@@ -60,5 +60,6 @@

  extern int storeSwapLogUpgradeEntry(storeSwapLogData *dst,  
storeSwapLogDataOld *src);
  extern int storeSwapLogPrintHeader(int fd);
+extern int storeSwapLogPrintCompleted(int fd);

  #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
-~----------~----~----~----~------~----~------~--~---

Reply via email to