| 225 | } |
| 226 | |
| 227 | static void |
| 228 | prepare_buf(void) |
| 229 | { |
| 230 | int ops; |
| 231 | |
| 232 | /* write random data into buffer */ |
| 233 | for (ops = 0; ops < DEFAULT_XLOG_SEG_SIZE; ops++) |
| 234 | full_buf[ops] = random(); |
| 235 | |
| 236 | buf = (char *) TYPEALIGN(XLOG_BLCKSZ, full_buf); |
| 237 | } |
| 238 | |
| 239 | static void |
| 240 | test_open(void) |