[io_generator] Fix address boundary for doing IO
Limit the addresses to be within the specified range
This commit is contained in:
		| @@ -48,8 +48,10 @@ namespace { | ||||
| 		base::sector_t next_offset() { | ||||
| 			sector_t r = current_; | ||||
| 			current_ += block_size_; | ||||
| 			if (current_ > end_) | ||||
| 			if (current_ > end_) { | ||||
| 				current_ = begin_; | ||||
| 				return begin_; | ||||
| 			} | ||||
| 			return r; | ||||
| 		} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user