Stopped NBD writes from committing all-zero blocks to disc (tentative, needs

further testing).
This commit is contained in:
Matthew Bloch
2012-05-18 13:24:35 +01:00
parent 0432fef8f5
commit ca53d6f270
5 changed files with 194 additions and 40 deletions

View File

@@ -31,7 +31,6 @@ struct mode_serve_params {
int server;
int threads;
pthread_mutex_t block_allocation_map_lock;
char* block_allocation_map;
};
@@ -51,7 +50,6 @@ struct client_params {
off64_t size;
char* mapped;
pthread_mutex_t block_allocation_map_lock;
char* block_allocation_map;
};