Displaying 2 results from an estimated 2 matches for "operation2str".
2011 Jun 21
13
VM disk I/O limit patch
...eq, pending_req);
+ ret = dispatch_rw_block_io(blkif, &req, pending_req,&last_done_nr_sects);
break;
case BLKIF_OP_PACKET:
DPRINTK("error: block operation BLKIF_OP_PACKET not implemented\n");
@@ -412,9 +461,29 @@ handle_request:
return more_to_do;
}
+static char* operation2str(int operation)
+{
+ char* ret_str = NULL;
+ switch (operation) {
+ case BLKIF_OP_READ:
+ ret_str = "READ";
+ break;
+ case BLKIF_OP_WRITE:
+ ret_str = "WRITE";
+ break;
+ case BLKIF_OP_WRITE_BARRIER:
+ ret_str = "WRITE_BARRIER";
+ break;
+ default:
+ ret_str = &...
2011 Jun 21
13
VM disk I/O limit patch
...eq, pending_req);
+ ret = dispatch_rw_block_io(blkif, &req, pending_req,&last_done_nr_sects);
break;
case BLKIF_OP_PACKET:
DPRINTK("error: block operation BLKIF_OP_PACKET not implemented\n");
@@ -412,9 +461,29 @@ handle_request:
return more_to_do;
}
+static char* operation2str(int operation)
+{
+ char* ret_str = NULL;
+ switch (operation) {
+ case BLKIF_OP_READ:
+ ret_str = "READ";
+ break;
+ case BLKIF_OP_WRITE:
+ ret_str = "WRITE";
+ break;
+ case BLKIF_OP_WRITE_BARRIER:
+ ret_str = "WRITE_BARRIER";
+ break;
+ default:
+ ret_str = &...