Author: adrian.chadd
Date: Sun May  3 00:21:59 2009
New Revision: 14028

Modified:
    branches/LUSCA_HEAD/libsqstore/store_file_ufs.c
    branches/LUSCA_HEAD/libsqstore/store_file_ufs.h

Log:
add the swaplog path info to the UFS state



Modified: branches/LUSCA_HEAD/libsqstore/store_file_ufs.c
==============================================================================
--- branches/LUSCA_HEAD/libsqstore/store_file_ufs.c     (original)
+++ branches/LUSCA_HEAD/libsqstore/store_file_ufs.c     Sun May  3 00:21:59 2009
@@ -17,9 +17,10 @@
  #include "store_file_ufs.h"

  void
-store_ufs_init(store_ufs_dir_t *sd, const char *path, int l1, int l2)
+store_ufs_init(store_ufs_dir_t *sd, const char *path, int l1, int l2,  
const char * swaplog_path)
  {
        sd->path = xstrdup(path);
+       sd->swaplog_path = xstrdup(swaplog_path);
        sd->l1 = l1;
        sd->l2 = l2;
  }
@@ -28,6 +29,7 @@
  store_ufs_done(store_ufs_dir_t *sd)
  {
        safe_free(sd->path);
+       safe_free(sd->swaplog_path);
  }

  /*

Modified: branches/LUSCA_HEAD/libsqstore/store_file_ufs.h
==============================================================================
--- branches/LUSCA_HEAD/libsqstore/store_file_ufs.h     (original)
+++ branches/LUSCA_HEAD/libsqstore/store_file_ufs.h     Sun May  3 00:21:59 2009
@@ -3,12 +3,13 @@

  struct _store_ufs_dir {
        char *path;
+       char *swaplog_path;
        int l1;
        int l2;
  };
  typedef struct _store_ufs_dir store_ufs_dir_t;

-extern void store_ufs_init(store_ufs_dir_t *sd, const char *path, int l1,  
int l2);
+extern void store_ufs_init(store_ufs_dir_t *sd, const char *path, int l1,  
int l2, const char *swaplog_path);
  extern void store_ufs_done(store_ufs_dir_t *sd);

  extern int store_ufs_createPath(store_ufs_dir_t *sd, int swap_filen, char  
*buf);

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