5 #include "tests/filesys/base/syn-write.h"
10 main (int argc, char *argv[])
17 CHECK (argc == 2, "argc must be 2, actually %d", argc);
18 child_idx = atoi (argv[1]);
21 random_bytes (buf, sizeof buf);
23 CHECK ((fd = open (filename)) > 1, "open \"%s\"", filename);
24 seek (fd, CHUNK_SIZE * child_idx);
25 CHECK (write (fd, buf + CHUNK_SIZE * child_idx, CHUNK_SIZE) > 0,
26 "write \"%s\"", filename);
27 msg ("close \"%s\"", filename);