Author: adrian.chadd
Date: Mon Apr 20 00:03:48 2009
New Revision: 13949

Modified:
    playpen/LUSCA_HEAD_ufs/src/fs/aufs/store_asyncufs.h
    playpen/LUSCA_HEAD_ufs/src/fs/aufs/store_dir_aufs.c

Log:
Start making the individual disk operations configurable.



Modified: playpen/LUSCA_HEAD_ufs/src/fs/aufs/store_asyncufs.h
==============================================================================
--- playpen/LUSCA_HEAD_ufs/src/fs/aufs/store_asyncufs.h (original)
+++ playpen/LUSCA_HEAD_ufs/src/fs/aufs/store_asyncufs.h Mon Apr 20 00:03:48  
2009
@@ -20,6 +20,13 @@
      int l2;
      fileMap *map;
      int suggest;
+    struct {
+       int async_open:1;
+       int async_close:1;
+       int async_create:1;
+       int async_read:1;
+       int async_write:1;
+    } flags;
  };

  struct _squidaiostate_t {

Modified: playpen/LUSCA_HEAD_ufs/src/fs/aufs/store_dir_aufs.c
==============================================================================
--- playpen/LUSCA_HEAD_ufs/src/fs/aufs/store_dir_aufs.c (original)
+++ playpen/LUSCA_HEAD_ufs/src/fs/aufs/store_dir_aufs.c Mon Apr 20 00:03:48  
2009
@@ -1883,6 +1883,12 @@
      if (aioinfo == NULL)
        fatal("storeAufsDirParse: couldn't xmalloc() squidaioinfo_t!\n");

+    aioinfo->flags.async_open = ASYNC_OPEN;
+    aioinfo->flags.async_close = ASYNC_CLOSE;
+    aioinfo->flags.async_create = ASYNC_CREATE;
+    aioinfo->flags.async_write = ASYNC_WRITE;
+    aioinfo->flags.async_read = ASYNC_READ;
+
      sd->index = index;
      sd->path = xstrdup(path);
      sd->max_size = size;

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