| 357 | } |
| 358 | |
| 359 | void |
| 360 | Stripe::_init_dir() |
| 361 | { |
| 362 | int b, s, l; |
| 363 | |
| 364 | for (s = 0; s < this->directory.segments; s++) { |
| 365 | this->directory.header->freelist[s] = 0; |
| 366 | Dir *seg = this->directory.get_segment(s); |
| 367 | for (l = 1; l < DIR_DEPTH; l++) { |
| 368 | for (b = 0; b < this->directory.buckets; b++) { |
| 369 | Dir *bucket = dir_bucket(b, seg); |
| 370 | dir_free_entry(dir_bucket_row(bucket, l), s, this); |
| 371 | } |
| 372 | } |
| 373 | } |
| 374 | } |
| 375 | |
| 376 | bool |
| 377 | Stripe::flush_aggregate_write_buffer(int fd) |
no test coverage detected