flash-bench.cpp
// Tests with a set number of 4K blocks.
Tests with a set number of 4K blocks.
Tests with a set number of 4K blocks .
static int SequentialRead() {
	int fd = open(test_filename, O_RDONLY | extra_mode_access_flags);
	CheckFDError(fd);
	for (int i = 0; i < nu_blocks; i++) {
		read_with_check(fd, buffer, 4096);
	}
	close(fd);
	return nu_blocks;
}
static int SequentialRead ( ) { int fd = open ( test_filename , O_RDONLY | extra_mode_access_flags ) ; CheckFDError ( fd ) ; for ( int i = 0 ; i < nu_blocks ; i ++ ) { read_with_check ( fd , buffer , 4096 ) ; } close ( fd ) ; return nu_blocks ; }
Tests with a set number of 4K blocks.
Tests with a set number of 4K blocks .