[io_generator] Fix address boundary for doing IO
Limit the addresses to be within the specified range
This commit is contained in:
1 parent
8aaea7f45b
commit
ce8945e829
1 file changed
+3
-1
@@ -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