Refactored write_not_zeroes to use struct bitset_mapping instead of

repeating all that code (has not fixed earlier bug yet, but lots of
repetition cut).
This commit is contained in:
Matthew Bloch
2012-06-07 11:17:02 +01:00
parent 08f3d42b34
commit 5710431780
4 changed files with 32 additions and 43 deletions

View File

@@ -69,7 +69,7 @@ struct server {
int server_fd;
int control_fd;
char* block_allocation_map;
struct bitset_mapping* allocation_map;
struct { pthread_t thread; union mysockaddr address; }
nbd_client[MAX_NBD_CLIENTS];