Author: adrian.chadd
Date: Wed Jul 8 01:36:14 2009
New Revision: 14151
Modified:
playpen/LUSCA_HEAD_storework/app/ufs_rebuild/ufs_build_log.c
Log:
Fix log rebuild code to work
Modified: playpen/LUSCA_HEAD_storework/app/ufs_rebuild/ufs_build_log.c
==============================================================================
--- playpen/LUSCA_HEAD_storework/app/ufs_rebuild/ufs_build_log.c
(original)
+++ playpen/LUSCA_HEAD_storework/app/ufs_rebuild/ufs_build_log.c Wed Jul
8
01:36:14 2009
@@ -38,6 +38,7 @@
#include "libsqstore/store_mgr.h"
#include "libsqstore/store_log.h"
+#include "libsqstore/store_file_ufs.h"
int num_objects = 0;
int num_valid_objects = 0;
@@ -84,14 +85,14 @@
}
void
-rebuild_from_log(const char *swapfile)
+rebuild_from_log(store_ufs_dir_t *ufs)
{
FILE *fp;
storeSwapLogHeader hdr;
int r;
int version = -1; /* -1 = not set, 0 = old, 1 = new */
- fp = fopen(swapfile, "r");
+ fp = fopen(ufs->swaplog_path, "r");
if (! fp) {
perror("fopen");
return;
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---