Author: adrian.chadd
Date: Sun Apr 26 07:46:11 2009
New Revision: 13987

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

Log:
Add a function to generate the UFS store directory path stuff.



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 Apr 26 07:46:11 2009
@@ -2,5 +2,6 @@
  #define       __LIBSQSTORE_STORE_FILE_UFS_H__

  extern int store_ufs_createPath(const char *prefix, int swap_filen, int  
L1, int L2, char *buf);
+extern int store_ufs_createDir(const char *prefix, int L1, int L2, char  
*buf);

  #endif

Modified: branches/LUSCA_HEAD/libsqstore/store_log.c
==============================================================================
--- branches/LUSCA_HEAD/libsqstore/store_log.c  (original)
+++ branches/LUSCA_HEAD/libsqstore/store_log.c  Sun Apr 26 07:46:11 2009
@@ -40,3 +40,11 @@
          filn);
      return 1;
  }
+
+int
+store_ufs_createDir(const char *prefix, int L1, int L2, char *buf)
+{
+    buf[0] = '\0';
+    snprintf(buf, SQUID_MAXPATHLEN, "%s/%02X/%02X", prefix, L1, L2);
+    return 1;
+}

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