WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] little fix to remote read path

ChangeSet 1.1340, 2005/03/21 21:32:31+00:00, akw27@xxxxxxxxxxxxxxxxxxxxxx

        little fix to remote read path
        
        Signed-off-by: andrew.warfield.cl.cam.ac.uk



 blockstore.c |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)


diff -Nru a/tools/blktap/blockstore.c b/tools/blktap/blockstore.c
--- a/tools/blktap/blockstore.c 2005-03-22 05:03:27 -05:00
+++ b/tools/blktap/blockstore.c 2005-03-22 05:03:27 -05:00
@@ -14,6 +14,8 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include "blockstore.h"
+#include "parallax-threaded.h"
+
 #define BLOCKSTORE_REMOTE
 
 #ifdef BLOCKSTORE_REMOTE
@@ -156,10 +158,13 @@
         fprintf(stderr, "readblock recv short (%u)\n", len);
         goto err;
     }
+    /* akw: memory leak here? */
+    /*
     if ((block = malloc(BLOCK_SIZE)) == NULL) {
         perror("readblock malloc");
         goto err;
     }
+    */
     //memcpy(block, qe->message.block, BLOCK_SIZE);
     block = qe->block;
 
@@ -416,7 +421,6 @@
 
 #else /* /BLOCKSTORE_REMOTE */
 
-#include "parallax-threaded.h"
  
 /**
  * readblock: read a block from disk
@@ -688,8 +692,7 @@
     
 #ifdef BLOCKSTORE_REMOTE
     struct hostent *addr;
-    int i;
-
+/* james's list
     bsservers[0].hostname = "firebug.cl.cam.ac.uk";
     bsservers[1].hostname = "tetris.cl.cam.ac.uk";
     bsservers[2].hostname = "donkeykong.cl.cam.ac.uk";
@@ -698,6 +701,15 @@
     bsservers[5].hostname = "firetrack.cl.cam.ac.uk";
     bsservers[6].hostname = "funfair.cl.cam.ac.uk";
     bsservers[7].hostname = "felix.cl.cam.ac.uk";
+*/
+    bsservers[0].hostname = "arcadians.cl.cam.ac.uk";
+    bsservers[1].hostname = "uridium.cl.cam.ac.uk";
+    bsservers[2].hostname = "shep.cl.cam.ac.uk";
+    bsservers[3].hostname = "centipede.cl.cam.ac.uk";
+    bsservers[4].hostname = "ghouls.cl.cam.ac.uk";
+    bsservers[5].hostname = "phoenix.cl.cam.ac.uk";
+    bsservers[6].hostname = "swarm.cl.cam.ac.uk";
+    bsservers[7].hostname = "freefall.cl.cam.ac.uk";
     bsservers[8].hostname = NULL;
     bsservers[9].hostname = NULL;
     bsservers[10].hostname = NULL;


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] little fix to remote read path, BitKeeper Bot <=