# HG changeset patch # User Paul Boddie # Date 1619039852 -7200 # Node ID a4cfd888428a2345efab44f428e67744544d5aa7 # Parent 9c16274efd4e3e4494916f8d26079d3808df00f8 Allow the client library to automatically map memory for the file. diff -r 9c16274efd4e -r a4cfd888428a tests/dstest_block_client_simple.cc --- a/tests/dstest_block_client_simple.cc Wed Apr 21 23:16:38 2021 +0200 +++ b/tests/dstest_block_client_simple.cc Wed Apr 21 23:17:32 2021 +0200 @@ -49,19 +49,6 @@ return 1; } - /* Map some memory. */ - - void *addr = client_mmap(file, 0, 1024); - - if (addr == NULL) - { - printf("Could not map memory.\n"); - return 1; - } - - printf("At mapped region from %ld to %ld with data at %ld to %ld.\n", - file->start_pos, file->end_pos, file->data_current, file->data_end); - /* Copy the sampled data to another file region. */ offset_t size = file->size;